]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arm64: dts: m3ulcb: enable GPIO keys
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>
Thu, 3 Nov 2016 18:07:43 +0000 (21:07 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 21 Nov 2016 09:18:48 +0000 (10:18 +0100)
This supports GPIO keys on M3ULCB board

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts

index 49162bd488f81fafae544217aa953afbe0261b22..2f8f183ea0cd1d7f4e1f3c05ab501ccb5865d1dd 100644 (file)
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "r8a7796.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Renesas M3ULCB board based on r8a7796";
                        gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       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 {