]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: ape6evm: Add keypad to the device tree
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Wed, 17 Dec 2014 16:18:16 +0000 (17:18 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Sun, 21 Dec 2014 10:07:24 +0000 (19:07 +0900)
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>
arch/arm/boot/dts/r8a73a4-ape6evm.dts

index b939a372d40842540955a4a9c1f7603f38674a1d..6b7bc1fb842e83c7f2ccdd1bf8c721a2c8932184 100644 (file)
@@ -11,6 +11,7 @@
 /dts-v1/;
 #include "r8a73a4.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "APE6EVM";
                        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 {