File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
tests/drivers/pwm/pwm_loopback/boards Expand file tree Collapse file tree 1 file changed +50
-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
+
8
+ /* PWM pins connection :
9
+ *
10
+ * Perih Pin Hdr
11
+ * pwm2 PA3 CN9:1
12
+ * pwm5 PA0 CN10:29
13
+ *
14
+ * Short Pin PA3 to PA0, for the test to pass.
15
+ */
16
+
17
+ #include <zephyr/dt-bindings/pwm/pwm.h>
18
+
19
+ / {
20
+ pwm_loopback_0 {
21
+ compatible = "test-pwm-loopback";
22
+ /* first index must be a 32-Bit timer */
23
+ pwms = <&pwm2 4 0 PWM_POLARITY_NORMAL>,
24
+ <&pwm5 1 0 PWM_POLARITY_NORMAL>;
25
+ };
26
+ };
27
+
28
+ /* 32-Bit timers */
29
+ &timers2 {
30
+ status = "okay";
31
+ pwm2: pwm {
32
+ status = "okay";
33
+ pinctrl-0 = <&tim2_ch4_pa3>; /* CN9 PIN1 A0 */
34
+ pinctrl-names = "default";
35
+ };
36
+ };
37
+
38
+ &timers5 {
39
+ status = "okay";
40
+ pwm5: pwm {
41
+ status = "okay";
42
+ pinctrl-0 = <&tim5_ch1_pa0>; /* CN10 PIN29 */
43
+ pinctrl-names = "default";
44
+
45
+ /* At least one of the test devices need to verify
46
+ * the four-channel-capture-support in this test.
47
+ */
48
+ four-channel-capture-support;
49
+ };
50
+ };
You can’t perform that action at this time.
0 commit comments