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:
parent
60ccb8e425
commit
07e2e87fde
2 changed files with 29 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
CONFIG_TEST_USERSPACE=n
|
|
@ -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";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue