File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
tests/drivers/pwm/pwm_loopback/boards Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments