ARM: pxa: raumfeld-controller: fix 'dock detect' GPIO key

The dock detection input key is active low. Also add a pinmux for it.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
This commit is contained in:
Daniel Mack 2019-04-24 20:58:56 +02:00 committed by Robert Jarzmik
parent 8ab7079676
commit 6205661df9

View File

@ -109,9 +109,10 @@ &pwm0 {
};
&keys {
pinctrl-0 = <&gpio_keys_pins &dock_detect_pins>;
dock-detect {
label = "dock detect";
gpios = <&gpio 116 GPIO_ACTIVE_HIGH>;
gpios = <&gpio 116 GPIO_ACTIVE_LOW>;
linux,code = <KEY_F5>;
};
};
@ -236,6 +237,14 @@ MFP_PIN_PXA300(105) MFP_AF0 /* PWM */
pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_FLOAT);
};
dock_detect_pins: dock_detect_pins {
pinctrl-single,pins = <
MFP_PIN_PXA300(116) MFP_AF0 /* DOCK_DETECT */
>;
pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_HIGH);
pinctrl-single,bias-pullup = MPF_PULL_UP;
};
lcdc_pins: lcdc-pins {
pinctrl-single,pins = <
MFP_PIN_PXA300(54) MFP_AF1 /* LDD_0 */