File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
tests/drivers/pwm/pwm_loopback/boards Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments