Skip to content

Commit 9444db8

Browse files
djiatsaf-stjhedberg
authored andcommitted
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 e0c7679 commit 9444db8

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
32+
pwm2: pwm {
33+
status = "okay";
34+
pinctrl-0 = <&tim2_ch4_pa3>; /* CN9 PIN1 A0 */
35+
pinctrl-names = "default";
36+
};
37+
};
38+
39+
&timers5 {
40+
status = "okay";
41+
42+
pwm5: pwm {
43+
status = "okay";
44+
pinctrl-0 = <&tim5_ch1_pa0>; /* CN10 PIN29 */
45+
pinctrl-names = "default";
46+
47+
/* At least one of the test devices need to verify
48+
* the four-channel-capture-support in this test.
49+
*/
50+
four-channel-capture-support;
51+
};
52+
};

0 commit comments

Comments
 (0)