Skip to contentSkip to conversation

ARM: dts: sunxi: h3/h5: add r_pwm node

PATCH Superseded Mans Rullgard 2 participants 2 messages Feb 26, 2020 – Feb 27, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sunxi: h3/h5: add r_pwm node

There is a second PWM unit available in the PL I/O block. Add a node and pinmux definition for it.

---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/sunxi-h3-h5.dtsi +13 -0
index 107eeafad20a..1842c9f12c36 100644
@@ -871,6 +871,19 @@
 				pins = "PL0", "PL1";
 				function = "s_i2c";
 			};
+
+			r_pwm_pins: r-pwm-pins {
+				pins = "PL10";
+				function = "s_pwm";
+			};
+		};
+
+		r_pwm: pwm@1f03800 {
+			compatible = "allwinner,sun8i-h3-pwm";
+			reg = <0x01f03800 0x8>;
+			clocks = <&osc24M>;
+			#pwm-cells = <3>;
+			status = "disabled";
 		};
 	};
 };
Signature · 1 line
2.25.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Mans Rullgard

There is a second PWM unit available in the PL I/O block. Add a node and pinmux definition for it.

---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/sunxi-h3-h5.dtsi +0 -0
index 107eeafad20a..1842c9f12c36 100644

arch/arm/boot/dts/sunxi-h3-h5.dtsi line 875

Quoted 5 lines
arch/arm/boot/dts/sunxi-h3-h5.dtsi +2 -0
@@ -871,6 +871,19 @@
                                pins = "PL0", "PL1";
                                function = "s_i2c";
                        };
+
+                       r_pwm_pins: r-pwm-pins {

Since it's just one pin, you could use the singular form instead. And also set it as the default.

With that,

Quoted 22 lines
arch/arm/boot/dts/sunxi-h3-h5.dtsi +11 -1
+                               pins = "PL10";
+                               function = "s_pwm";
+                       };
+               };
+
+               r_pwm: pwm@1f03800 {
+                       compatible = "allwinner,sun8i-h3-pwm";
+                       reg = <0x01f03800 0x8>;
+                       clocks = <&osc24M>;
+                       #pwm-cells = <3>;
+                       status = "disabled";
                };
        };
 };
--

2.25.0

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel