[PATCH/DNI 11/11] arm64: dts: renesas: ironhide: Enable PWM
Geert Uytterhoeven
geert+renesas at glider.be
Mon Oct 26 07:55:27 PDT 2026
Pulse Width Modulation (PWM) instances 0 to 5 and 16-Bit Timer Pulse
Unit (TPU) channels 0 and 1 are wired to PWM CN (CN48).
Note that TPU channels 0 and 1 are mutually-exclusive with PWM instances
4 and 5.
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
---
This depends on out-of-tree pin control support.
---
.../boot/dts/renesas/r8a78000-ironhide.dts | 84 +++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts b/arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts
index 5d919953efe4970e..c2d814da9fd97802 100644
--- a/arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts
+++ b/arch/arm64/boot/dts/renesas/r8a78000-ironhide.dts
@@ -242,10 +242,87 @@ msiof6_pins: msiof6 {
};
+ pwm0_pins: pwm0 {
+ groups = "pwm0_a";
+ function = "pwm0";
+ };
+
+ pwm1_pins: pwm1 {
+ groups = "pwm1";
+ function = "pwm1";
+ };
+
+ pwm2_pins: pwm2 {
+ groups = "pwm2";
+ function = "pwm2";
+ };
+
+ pwm3_pins: pwm3 {
+ groups = "pwm3";
+ function = "pwm3";
+ };
+
+ pwm4_pins: pwm4 {
+ groups = "pwm4";
+ function = "pwm4";
+ };
+
+ pwm5_pins: pwm5 {
+ groups = "pwm5";
+ function = "pwm5";
+ };
+
scif_clk_pins: scif-clk {
groups = "scif_clk";
function = "scif_clk";
};
+
+ tpu_pins: tpu {
+ groups = "tpu_to0", "tpu_to1";
+ function = "tpu";
+ };
+};
+
+&pwm0 {
+ pinctrl-0 = <&pwm0_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pwm1 {
+ pinctrl-0 = <&pwm1_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pwm2 {
+ pinctrl-0 = <&pwm2_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pwm3 {
+ pinctrl-0 = <&pwm3_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pwm4 {
+ pinctrl-0 = <&pwm4_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pwm5 {
+ pinctrl-0 = <&pwm5_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
};
&scif_clk {
@@ -263,3 +340,10 @@ scmi_rx_shmem: sram at 1300 {
reg = <0x1300 0x100>;
};
};
+
+&tpu {
+ pinctrl-0 = <&tpu_pins>;
+ pinctrl-names = "default";
+
+ //status = "okay"; // Mutually-exclusive with pwm4 and pwm5
+};
--
2.43.0
More information about the linux-arm-kernel
mailing list