aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/emev2-kzm9d.dts
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-11-13 18:03:45 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-12-10 03:27:15 -0500
commitcef20af093fc018009ed7f7fde38f9fb8b445e6b (patch)
tree8cf634b2090e8607f687aac5959cf82efc62a707 /arch/arm/boot/dts/emev2-kzm9d.dts
parentb69e4435e34df68d54e204b37d6bb256606fef5d (diff)
ARM: shmobile: Enable DSW2 with gpio-keys on KZM9D
Use the gpio-keys driver to support the 4 pins on the dip switch DSW2 which is mounted on the KZM9D board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/boot/dts/emev2-kzm9d.dts')
-rw-r--r--arch/arm/boot/dts/emev2-kzm9d.dts39
1 files changed, 38 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts
index 861aa7d6fc7d..baaa66cc39bf 100644
--- a/arch/arm/boot/dts/emev2-kzm9d.dts
+++ b/arch/arm/boot/dts/emev2-kzm9d.dts
@@ -9,7 +9,9 @@
9 */ 9 */
10/dts-v1/; 10/dts-v1/;
11 11
12/include/ "emev2.dtsi" 12#include "emev2.dtsi"
13#include <dt-bindings/gpio/gpio.h>
14#include <dt-bindings/input/input.h>
13 15
14/ { 16/ {
15 model = "EMEV2 KZM9D Board"; 17 model = "EMEV2 KZM9D Board";
@@ -54,4 +56,39 @@
54 vddvario-supply = <&reg_1p8v>; 56 vddvario-supply = <&reg_1p8v>;
55 vdd33a-supply = <&reg_3p3v>; 57 vdd33a-supply = <&reg_3p3v>;
56 }; 58 };
59
60 gpio_keys {
61 compatible = "gpio-keys";
62 #address-cells = <1>;
63 #size-cells = <0>;
64
65 button@1 {
66 debounce_interval = <50>;
67 wakeup = <1>;
68 label = "DSW2-1";
69 linux,code = <KEY_1>;
70 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
71 };
72 button@2 {
73 debounce_interval = <50>;
74 wakeup = <1>;
75 label = "DSW2-2";
76 linux,code = <KEY_2>;
77 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
78 };
79 button@3 {
80 debounce_interval = <50>;
81 wakeup = <1>;
82 label = "DSW2-3";
83 linux,code = <KEY_3>;
84 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
85 };
86 button@4 {
87 debounce_interval = <50>;
88 wakeup = <1>;
89 label = "DSW2-4";
90 linux,code = <KEY_4>;
91 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
92 };
93 };
57}; 94};