File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
tests/drivers/pwm/pwm_loopback/boards Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 STMicroelectronics
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
+ /* first index must be a 32-Bit timer */
13
+ pwms = <&pwm2 4 0 PWM_POLARITY_NORMAL>,
14
+ <&pwm5 1 0 PWM_POLARITY_NORMAL>;
15
+ };
16
+ };
17
+
18
+ /* 32-Bit timers */
19
+ &timers2 {
20
+ status = "okay";
21
+ pwm2: pwm {
22
+ status = "okay";
23
+ pinctrl-0 = <&tim2_ch4_pa3>; /* CN9 PIN1 A0 */
24
+ pinctrl-names = "default";
25
+ };
26
+ };
27
+
28
+ &timers5 {
29
+ status = "okay";
30
+ pwm5: pwm {
31
+ status = "okay";
32
+ pinctrl-0 = <&tim5_ch1_pa0>; /* CN10 PIN29 */
33
+ pinctrl-names = "default";
34
+
35
+ /* At least one of the test devices need to verify
36
+ * the four-channel-capture-support in this test.
37
+ */
38
+ four-channel-capture-support;
39
+ };
40
+ };
You can’t perform that action at this time.
0 commit comments