Skip to content

Commit 3a4e128

Browse files
cyliangtwfabiobaltieri
authored andcommitted
tests: drivers: pwm: pwm_loopback: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1. Signed-off-by: cyliang tw <[email protected]>
1 parent a5f8645 commit 3a4e128

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include <zephyr/dt-bindings/pwm/pwm.h>
4+
5+
&pinctrl {
6+
epwm1_default: epwm1_default {
7+
group0 {
8+
/* EVB's D5, D4 --> PC12, PC11 */
9+
pinmux = <PC12MFP_EPWM1_CH0>,
10+
<PC11MFP_EPWM1_CH1>;
11+
};
12+
};
13+
};
14+
15+
/ {
16+
pwm_loopback_0 {
17+
compatible = "test-pwm-loopback";
18+
pwms = <&epwm1 0 0 PWM_POLARITY_NORMAL>,
19+
<&epwm1 1 0 PWM_POLARITY_NORMAL>;
20+
};
21+
};
22+
23+
&epwm1 {
24+
status = "okay";
25+
prescaler = <19>;
26+
pinctrl-0 = <&epwm1_default>;
27+
pinctrl-names = "default";
28+
};

0 commit comments

Comments
 (0)