]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: h3ulcb: enable GPIO keys
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>
Fri, 2 Sep 2016 16:24:58 +0000 (19:24 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 8 Sep 2016 07:35:17 +0000 (09:35 +0200)
This supports GPIO keys on H3ULCB board

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts

index 234b66a9e16378c62dfe3f091353ae8f7af07198..adf2b0e44dac46e3debc185992297411e08f1d50 100644 (file)
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "r8a7795.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Renesas H3ULCB board based on r8a7795";
                /* first 128MB is reserved for secure area. */
                reg = <0x0 0x48000000 0x0 0x38000000>;
        };
+
+       keyboard {
+               compatible = "gpio-keys";
+
+               key-1 {
+                       linux,code = <KEY_1>;
+                       label = "SW3";
+                       wakeup-source;
+                       debounce-interval = <20>;
+                       gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &extal_clk {