Skip to content

Commit be2ab1f

Browse files
Hieu Nguyenjhedberg
authored andcommitted
tests: drivers: pwm: Add PWM support for Renesas RZ/T2M, N2L, V2L
Add PWM test support for Renesas RZ/T2M-RSK, RZ/N2L-RSK, RZ/V2L-SMARC Signed-off-by: Hieu Nguyen <[email protected]> Signed-off-by: Tien Nguyen <[email protected]>
1 parent 0a9e500 commit be2ab1f

File tree

6 files changed

+153
-0
lines changed

6 files changed

+153
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&gpt4 {
8+
status = "okay";
9+
10+
pwm4: pwm {
11+
status = "okay";
12+
pinctrl-0 = <&gpt4_pins>;
13+
pinctrl-names = "default";
14+
};
15+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&gpt0 {
8+
status = "okay";
9+
10+
pwm0: pwm {
11+
status = "okay";
12+
pinctrl-0 = <&gpt0_pins>;
13+
pinctrl-names = "default";
14+
};
15+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&gpt32e6 {
8+
status = "okay";
9+
10+
pwm6: pwm {
11+
status = "okay";
12+
pinctrl-0 = <&gpt6_pins>;
13+
pinctrl-names = "default";
14+
};
15+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
#include <zephyr/dt-bindings/pwm/renesas_rz_pwm.h>
9+
10+
/ {
11+
pwm_loopback_0 {
12+
compatible = "test-pwm-loopback";
13+
pwms = <&pwm4 RZ_PWM_GPT_IO_A 0 PWM_POLARITY_NORMAL>,
14+
<&pwm5 RZ_PWM_GPT_IO_B 0 PWM_POLARITY_NORMAL>;
15+
};
16+
};
17+
18+
&gpt4 {
19+
status = "okay";
20+
21+
pwm4: pwm {
22+
status = "okay";
23+
pinctrl-0 = <&gpt4_pins>;
24+
pinctrl-names = "default";
25+
};
26+
};
27+
28+
&gpt5 {
29+
status = "okay";
30+
31+
pwm5: pwm {
32+
status = "okay";
33+
pinctrl-0 = <&gpt5_pins>;
34+
pinctrl-names = "default";
35+
};
36+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
#include <zephyr/dt-bindings/pwm/renesas_rz_pwm.h>
9+
10+
/ {
11+
pwm_loopback_0 {
12+
compatible = "test-pwm-loopback";
13+
pwms = <&pwm0 RZ_PWM_GPT_IO_A 0 PWM_POLARITY_NORMAL>,
14+
<&pwm4 RZ_PWM_GPT_IO_A 0 PWM_POLARITY_NORMAL>;
15+
};
16+
};
17+
18+
&gpt0 {
19+
status = "okay";
20+
21+
pwm0: pwm {
22+
status = "okay";
23+
pinctrl-0 = <&gpt0_pins>;
24+
pinctrl-names = "default";
25+
};
26+
};
27+
28+
&gpt4 {
29+
status = "okay";
30+
31+
pwm4: pwm {
32+
status = "okay";
33+
pinctrl-0 = <&gpt4_pins>;
34+
pinctrl-names = "default";
35+
};
36+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
#include <zephyr/dt-bindings/pwm/renesas_rz_pwm.h>
9+
10+
/ {
11+
pwm_loopback_0 {
12+
compatible = "test-pwm-loopback";
13+
pwms = <&pwm6 RZ_PWM_GPT_IO_A 0 PWM_POLARITY_NORMAL>,
14+
<&pwm7 RZ_PWM_GPT_IO_A 0 PWM_POLARITY_NORMAL>;
15+
};
16+
};
17+
18+
&gpt32e6 {
19+
status = "okay";
20+
21+
pwm6: pwm {
22+
status = "okay";
23+
pinctrl-0 = <&gpt6_pins>;
24+
pinctrl-names = "default";
25+
};
26+
};
27+
28+
&gpt32e7 {
29+
status = "okay";
30+
31+
pwm7: pwm {
32+
status = "okay";
33+
pinctrl-0 = <&gpt7_pins>;
34+
pinctrl-names = "default";
35+
};
36+
};

0 commit comments

Comments
 (0)