Skip to content

Commit 7e2600d

Browse files
manuarguecarlescufi
authored andcommitted
tests: drivers: pwm: add overlays for ucans32k1sic
Enable pwm tests on ucans32k1sic board. Signed-off-by: Manuel Argüelles <[email protected]>
1 parent a38eb9b commit 7e2600d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
9+
/ {
10+
pwm_loopback_0 {
11+
compatible = "test-pwm-loopback";
12+
pwms = <&ftm1 1 0 PWM_POLARITY_NORMAL>, /* PTB3, P1.3 */
13+
<&ftm0 4 0 PWM_POLARITY_NORMAL>; /* PTB4, P1.4 */
14+
};
15+
};
16+
17+
&pinctrl {
18+
ftm0_loopback: ftm0_loopback {
19+
group0 {
20+
pinmux = <FTM0_CH4_PTB4>;
21+
drive-strength = "low";
22+
};
23+
};
24+
25+
ftm1_loopback: ftm1_loopback {
26+
group0 {
27+
pinmux = <FTM1_CH1_PTB3>;
28+
drive-strength = "low";
29+
};
30+
};
31+
};
32+
33+
&ftm0 {
34+
pinctrl-0 = <&ftm0_loopback>;
35+
prescaler = <32>;
36+
status = "okay";
37+
};
38+
39+
&ftm1 {
40+
pinctrl-0 = <&ftm1_loopback>;
41+
prescaler = <128>;
42+
status = "okay";
43+
};

0 commit comments

Comments
 (0)