ARM: dts: wheat: add support for tactile switches
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 5 Sep 2016 21:33:05 +0000 (00:33 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 7 Sep 2016 07:43:57 +0000 (09:43 +0200)
Add  support for the  tactile switches  SW2/3 (on the debug board) as a
virtual keyboard like it  was done with the Blanche board).

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7792-wheat.dts

index 0ec4bc606c6100796ec92142477b8d383d21c8a6..6dbb94114a931af3d16e11471fa427ffa0692459 100644 (file)
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "r8a7792.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Wheat";
                pinctrl-names = "default";
        };
 
+       keyboard {
+               compatible = "gpio-keys";
+
+               key-a {
+                       linux,code = <KEY_A>;
+                       label = "SW2";
+                       wakeup-source;
+                       debounce-interval = <20>;
+                       gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
+               };
+               key-b {
+                       linux,code = <KEY_B>;
+                       label = "SW3";
+                       wakeup-source;
+                       debounce-interval = <20>;
+                       gpios = <&gpio11 2 GPIO_ACTIVE_LOW>;
+               };
+       };
+
        vcc_sdhi0: regulator-vcc-sdhi0 {
                compatible = "regulator-fixed";
 
This page took 0.02508 seconds and 5 git commands to generate.