Skip to content

Commit 3a35562

Browse files
tests: drivers: pwm: Add support test PWM for ek_ra4c1
Add support test app pwm_loopback for ek_ra4c1 board Signed-off-by: Khoa Nguyen <[email protected]>
1 parent fa94793 commit 3a35562

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/ra_pwm.h>
9+
10+
/ {
11+
pwm_loopback_0 {
12+
compatible = "test-pwm-loopback";
13+
pwms = <&pwm0 0 0 PWM_POLARITY_NORMAL>,
14+
<&pwm4 0 0 PWM_POLARITY_NORMAL>;
15+
};
16+
};
17+
18+
&pinctrl {
19+
pwm0_default: pwm0_default {
20+
group1 {
21+
/* GTIOC0A*/
22+
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 15)>;
23+
};
24+
};
25+
};
26+
27+
&pwm0 {
28+
pinctrl-0 = <&pwm0_default>;
29+
pinctrl-names = "default";
30+
interrupts = <62 1>, <63 1>;
31+
interrupt-names = "gtioca", "overflow";
32+
status = "okay";
33+
};

0 commit comments

Comments
 (0)