Skip to contentSkip to conversation

ARM: dts: add pwm status for r40.

PATCH Superseded hao_zhang 2 participants 2 messages Feb 25, 2018 – Feb 28, 2018

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

hao_zhang

author
#0 lore raw

PATCH v2 3/4 ARM: dts: add pwm status for r40.

This patch adds pwm status for r40.

---
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +6 -0
index 8c5efe2..e4eb074 100644
@@ -196,6 +196,12 @@
 	status = "okay";
 };
 
+&pwm {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pwm_ch0_pin>;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pb_pins>;
Signature · 1 line
2.7.4
#1 lore raw

Hi,

the subject line should mention the BananaPi M2 Ultra board.

Otherwise this looks good, although I wonder if this should somehow mention "LCD-PWM" (in the commit message?), since this is how this pin is described in the BananaPi GPIO documentation for this board. And it seems to be dedicated for this purpose here.

Cheers,
Andre.

Quoted 25 lines · hao_zhang

This patch adds pwm status for r40.

---
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +6 -0
index 8c5efe2..e4eb074 100644
@@ -196,6 +196,12 @@
 	status = "okay";
 };
 
+&pwm {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pwm_ch0_pin>;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pb_pins>;