diff options
author | Daniel Mack <daniel@zonque.org> | 2019-04-24 21:58:57 +0300 |
---|---|---|
committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2019-06-24 12:35:01 +0300 |
commit | 79e60810503eb3dd1b3316e8757b3d177d78e48b (patch) | |
tree | c1cf2ed85681dbf0c6eba1a7e6e86d8905d735d6 | |
parent | 6205661df99d6537f7e7a0e0e57618f25e60db9c (diff) | |
download | linux-79e60810503eb3dd1b3316e8757b3d177d78e48b.tar.xz |
ARM: pxa: raumfeld-controller: add pinctrl for charger pins
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>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
-rw-r--r-- | arch/arm/boot/dts/pxa300-raumfeld-controller.dts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/pxa300-raumfeld-controller.dts b/arch/arm/boot/dts/pxa300-raumfeld-controller.dts index e0e1f99c6b22..12b15945ac6d 100644 --- a/arch/arm/boot/dts/pxa300-raumfeld-controller.dts +++ b/arch/arm/boot/dts/pxa300-raumfeld-controller.dts @@ -41,6 +41,8 @@ }; charger: charger { + pinctrl-names = "default"; + pinctrl-0 = <&charger_pins>; compatible = "gpio-charger"; charger-type = "mains"; gpios = <&gpio 101 GPIO_ACTIVE_LOW>; @@ -237,6 +239,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 */ |