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: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
cyliang tw 2024-05-14 17:32:17 +08:00 committed by Anas Nashif
commit 07e2e87fde
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_TEST_USERSPACE=n

View file

@ -0,0 +1,28 @@
/* 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";
};