ARM: pxa: raumfeld-controller: fix 'dock detect' GPIO key
authorDaniel Mack <daniel@zonque.org>
Wed, 24 Apr 2019 18:58:56 +0000 (20:58 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 24 Jun 2019 09:35:01 +0000 (11:35 +0200)
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>
arch/arm/boot/dts/pxa300-raumfeld-controller.dts

index 65d8250..e0e1f99 100644 (file)
 };
 
 &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>;
        };
 };
                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        */