Commit 07e2e87f authored by cyliang tw's avatar cyliang tw Committed by Anas Nashif
Browse files

tests: drivers: pwm: pwm_loopback: support numaker_m2l31ki



Add support for Nuvoton numaker board numaker_m2l31ki.
m2l31x has 4 MPU regions and can't afford one more region
for TEST_USERSPACE, so set CONFIG_TEST_USERSPACE=n.

Signed-off-by: default avatarcyliang tw <cyliang@nuvoton.com>
parent 60ccb8e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
CONFIG_TEST_USERSPACE=n
+28 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: Apache-2.0 */

#include <zephyr/dt-bindings/pwm/pwm.h>

&pinctrl {
	epwm1_default: epwm1_default {
		group0 {
			/* EVB's D2, D5 --> PC4, PA6 */
			pinmux = <PC4MFP_EPWM1_CH1>,
				 <PA6MFP_EPWM1_CH5>;
		};
	};
};

/ {
	pwm_loopback_0 {
		compatible = "test-pwm-loopback";
		pwms = <&epwm1 1 0 PWM_POLARITY_NORMAL>,
		       <&epwm1 5 0 PWM_POLARITY_NORMAL>;
	};
};

&epwm1 {
	status = "okay";
	prescaler = <19>;
	pinctrl-0 = <&epwm1_default>;
	pinctrl-names = "default";
};