File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Renesas Electronics Corporation
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ &mtu1 {
8
+ prescaler = <4>;
9
+ status = "okay";
10
+
11
+ pwm1: pwm {
12
+ status = "okay";
13
+ pinctrl-0 = <&mtu1_pins>;
14
+ pinctrl-names = "default";
15
+ };
16
+ };
Original file line number Diff line number Diff line change 59
59
#elif DT_HAS_COMPAT_STATUS_OKAY (renesas_rz_gpt_pwm )
60
60
#define PWM_DEV_NODE DT_INST(0, renesas_rz_gpt_pwm)
61
61
62
+ #elif DT_HAS_COMPAT_STATUS_OKAY (renesas_rz_mtu_pwm )
63
+ #define PWM_DEV_NODE DT_INST(0, renesas_rz_mtu_pwm)
64
+
62
65
#else
63
66
#error "Define a PWM device"
64
67
#endif
Original file line number Diff line number Diff line change
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 = <&pwm1 RZ_PWM_MTIOCxA 0 PWM_POLARITY_NORMAL>,
14
+ <&pwm3 RZ_PWM_MTIOCxA 0 PWM_POLARITY_NORMAL>;
15
+ };
16
+ };
17
+
18
+ &mtu1 {
19
+ prescaler = <1024>;
20
+ status = "okay";
21
+
22
+ pwm1: pwm {
23
+ status = "okay";
24
+ pinctrl-0 = <&mtu1_pins>;
25
+ pinctrl-names = "default";
26
+ };
27
+ };
28
+
29
+ &mtu3 {
30
+ status = "okay";
31
+
32
+ pwm3: pwm {
33
+ status = "okay";
34
+ pinctrl-0 = <&mtu3_pins>;
35
+ pinctrl-names = "default";
36
+ };
37
+ };
You can’t perform that action at this time.
0 commit comments