Commit 79e60810 authored by Daniel Mack's avatar Daniel Mack Committed by Robert Jarzmik

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: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
parent 6205661d
...@@ -41,6 +41,8 @@ w1_ds2760: slave-ds2760 { ...@@ -41,6 +41,8 @@ w1_ds2760: slave-ds2760 {
}; };
charger: charger { charger: charger {
pinctrl-names = "default";
pinctrl-0 = <&charger_pins>;
compatible = "gpio-charger"; compatible = "gpio-charger";
charger-type = "mains"; charger-type = "mains";
gpios = <&gpio 101 GPIO_ACTIVE_LOW>; gpios = <&gpio 101 GPIO_ACTIVE_LOW>;
...@@ -237,6 +239,14 @@ MFP_PIN_PXA300(105) MFP_AF0 /* PWM */ ...@@ -237,6 +239,14 @@ MFP_PIN_PXA300(105) MFP_AF0 /* PWM */
pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_FLOAT); 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 { dock_detect_pins: dock_detect_pins {
pinctrl-single,pins = < pinctrl-single,pins = <
MFP_PIN_PXA300(116) MFP_AF0 /* DOCK_DETECT */ MFP_PIN_PXA300(116) MFP_AF0 /* DOCK_DETECT */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment