Skip to content

Commit 400859d

Browse files
khoa-nguyen-18kartben
authored andcommitted
tests: drivers: pwm: Add support pwm_loopback for ek_ra8p1 cm33
Add support test app ``pwm_loopback`` for Renesas ek_ra8p1 cm33 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent b94cc5f commit 400859d

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+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/pwm/pwm.h>
7+
#include <zephyr/dt-bindings/pwm/ra_pwm.h>
8+
9+
/ {
10+
pwm_loopback_0 {
11+
compatible = "test-pwm-loopback";
12+
/* first index must be a 32-Bit timer */
13+
pwms = <&pwm1 0 0 PWM_POLARITY_NORMAL>,
14+
<&pwm2 0 0 PWM_POLARITY_NORMAL>;
15+
};
16+
};
17+
18+
&pinctrl {
19+
pwm2_default: pwm2_default {
20+
group1 {
21+
/* GTIOC2A */
22+
psels = <RA_PSEL(RA_PSEL_GPT1, 1, 3)>;
23+
};
24+
};
25+
};
26+
27+
&pwm2 {
28+
pinctrl-0 = <&pwm2_default>;
29+
pinctrl-names = "default";
30+
interrupts = <94 1>, <95 1>;
31+
interrupt-names = "gtioca", "overflow";
32+
status = "okay";
33+
};

0 commit comments

Comments
 (0)