diff options
author | Ulrich Hecht <ulrich.hecht+renesas@gmail.com> | 2014-12-17 19:18:16 +0300 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-12-21 13:07:24 +0300 |
commit | 2670ee894f477c9dfe9da7cf774c167b2ba06594 (patch) | |
tree | 6446d1ea4a3b4252f85b43ed94368217bac675b6 /arch/arm/boot/dts/r8a73a4-ape6evm.dts | |
parent | b742257dd5ec574a35950ebcf4a3d77a0f01355f (diff) | |
download | linux-2670ee894f477c9dfe9da7cf774c167b2ba06594.tar.xz |
ARM: shmobile: ape6evm: Add keypad to the device tree
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-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 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index b939a372d408..6b7bc1fb842e 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -11,6 +11,7 @@ /dts-v1/; #include "r8a73a4.dtsi" #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> / { model = "APE6EVM"; @@ -110,6 +111,46 @@ label = "BBRESETOUT"; }; }; + + keyboard { + compatible = "gpio-keys"; + + zero-key { + gpios = <&pfc 324 GPIO_ACTIVE_LOW>; + linux,code = <KEY_0>; + label = "S16"; + }; + + menu-key { + gpios = <&pfc 325 GPIO_ACTIVE_LOW>; + linux,code = <KEY_MENU>; + label = "S17"; + }; + + home-key { + gpios = <&pfc 326 GPIO_ACTIVE_LOW>; + linux,code = <KEY_HOME>; + label = "S18"; + }; + + back-key { + gpios = <&pfc 327 GPIO_ACTIVE_LOW>; + linux,code = <KEY_BACK>; + label = "S19"; + }; + + volup-key { + gpios = <&pfc 328 GPIO_ACTIVE_LOW>; + linux,code = <KEY_VOLUMEUP>; + label = "S20"; + }; + + voldown-key { + gpios = <&pfc 329 GPIO_ACTIVE_LOW>; + linux,code = <KEY_VOLUMEDOWN>; + label = "S21"; + }; + }; }; &i2c5 { |