summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/r8a7792-wheat.dts
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2016-09-06 00:33:05 +0300
committerSimon Horman <horms+renesas@verge.net.au>2016-09-07 09:43:57 +0200
commitfa8f4aba72e6d619c003dab60f58ab6c7410e465 (patch)
treefde6b0e61fb88d3fc82194fabd542ab2d8b145d6 /arch/arm/boot/dts/r8a7792-wheat.dts
parente678114f86edc40f394a82231c239c8cdfb4191c (diff)
ARM: dts: wheat: add support for tactile switches
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>
Diffstat (limited to 'arch/arm/boot/dts/r8a7792-wheat.dts')
-rw-r--r--arch/arm/boot/dts/r8a7792-wheat.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7792-wheat.dts b/arch/arm/boot/dts/r8a7792-wheat.dts
index 0ec4bc606c61..6dbb94114a93 100644
--- a/arch/arm/boot/dts/r8a7792-wheat.dts
+++ b/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -12,6 +12,7 @@
/dts-v1/;
#include "r8a7792.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "Wheat";
@@ -56,6 +57,25 @@
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";