diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-02-27 18:48:38 +0100 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-03-07 02:07:24 +0100 |
commit | a104662052b5863663d11895667f0f8a755cd826 (patch) | |
tree | de2ee2a63b0c94c0784d351ff3917fe3d70f0894 /arch/arm/boot/dts/r8a73a4-ape6evm.dts | |
parent | ARM: shmobile: r8a7791: Fix IPMMU-GP clock to device tree (diff) | |
download | linux-a104662052b5863663d11895667f0f8a755cd826.tar.xz linux-a104662052b5863663d11895667f0f8a755cd826.zip |
ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches
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>
Diffstat (limited to 'arch/arm/boot/dts/r8a73a4-ape6evm.dts')
-rw-r--r-- | arch/arm/boot/dts/r8a73a4-ape6evm.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index e8f3f386a1d6..9734dd74e162 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -123,6 +123,9 @@ keyboard { compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&keyboard_pins>; + zero-key { gpios = <&pfc 324 GPIO_ACTIVE_LOW>; linux,code = <KEY_0>; @@ -208,6 +211,12 @@ renesas,groups = "sdhi1_data4", "sdhi1_ctrl"; renesas,function = "sdhi1"; }; + + keyboard_pins: keyboard { + renesas,pins = "PORT324", "PORT325", "PORT326", "PORT327", + "PORT328", "PORT329"; + bias-pull-up; + }; }; &mmcif0 { |