Skip to content

Commit 8ba6dc5

Browse files
committed
tests: drivers: pwm: pwm_loopback: add support for nucleo_h753zi
add overlay with appropriate configuration for nucleo_h753zi Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent a24bfe5 commit 8ba6dc5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
};

0 commit comments

Comments
 (0)