]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 27 Feb 2015 17:48:38 +0000 (18:48 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 7 Mar 2015 01:07:24 +0000 (10:07 +0900)
The switches on r8a73a4/ape6evm do not have pull-up registers.  The
schematics say: "Need to use APE6 internal PullUp", hence enable pull-up
using pinctrl.

Without this, the switches don't really work, as the GPIO inputs are
more likely to pick up ghost signals through capacitive coupling than
actual keypresses.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a73a4-ape6evm.dts

index e8f3f386a1d69d5c93322627cd939b75d45ed49c..9734dd74e162c50dd69a72dd3d46010f51b2ec8c 100644 (file)
        keyboard {
                compatible = "gpio-keys";
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&keyboard_pins>;
+
                zero-key {
                        gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_0>;
                renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
                renesas,function = "sdhi1";
        };
+
+       keyboard_pins: keyboard {
+               renesas,pins = "PORT324", "PORT325", "PORT326", "PORT327",
+                              "PORT328", "PORT329";
+               bias-pull-up;
+       };
 };
 
 &mmcif0 {