diff mbox series

[4/4] ARM: pxa: dts: add pinctrl for charger pins

Message ID 20190422084745.9064-5-daniel@zonque.org
State New
Headers show
Series ARM: pxa3xx: introduce bias-pull{up,down} pinctrl | expand

Commit Message

Daniel Mack April 22, 2019, 8:47 a.m. UTC
The PEN2 line needs to be pulled up for the charger to enter high-current
mode. Do this with a static pull on the GPIO.

Signed-off-by: Daniel Mack <daniel@zonque.org>
---
 arch/arm/boot/dts/pxa300-raumfeld-controller.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Robert Jarzmik April 24, 2019, 10:46 a.m. UTC | #1
Daniel Mack <daniel@zonque.org> writes:

Hi Daniel,

Is there any reason for the patch subject to begin with "ARM: pxa: dts" instead
of "ARM: pxa: raumfeld-controller:" as the one in 2/4 ?

Apart of that, if no comment is done in next week, I'll queue it up in my tree.

Cheers.

--
Robert
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/pxa300-raumfeld-controller.dts b/arch/arm/boot/dts/pxa300-raumfeld-controller.dts
index c57428ed5cf0..c8d2aab788fc 100644
--- a/arch/arm/boot/dts/pxa300-raumfeld-controller.dts
+++ b/arch/arm/boot/dts/pxa300-raumfeld-controller.dts
@@ -39,6 +39,8 @@ 
 	};
 
 	charger: charger {
+		pinctrl-names = "default";
+		pinctrl-0 = <&charger_pins>;
 		compatible = "gpio-charger";
 		charger-type = "mains";
 		gpios = <&gpio 101 GPIO_ACTIVE_LOW>;
@@ -236,6 +238,14 @@ 
 		pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_FLOAT);
 	};
 
+	charger_pins: charger_pins {
+		pinctrl-single,pins = <
+			MFP_PIN_PXA300(31) MFP_AF0	/* PEN2	*/
+		>;
+		pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_HIGH);
+		pinctrl-single,bias-pullup = MPF_PULL_UP;
+	};
+
 	dock_detect_pins: dock_detect_pins {
 		pinctrl-single,pins = <
 			MFP_PIN_PXA300(116) MFP_AF0	/* DOCK_DETECT	*/