Skip to content

Commit a7feeaa

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 d7efc53 commit a7feeaa

File tree

1 file changed

+50
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)