diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-10 22:26:30 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-19 06:01:33 -0500 |
commit | 90c2434daa0b8c7ec2b75fcb182436813e9120bd (patch) | |
tree | 7db66baa7ee322d3d4065e284f1caa05f56dde7b | |
parent | aba76d286e8cccb05b3a4c23833faaee171a6c5d (diff) |
ARM: shmobile: armadillo: dts: Add gpio-keys device
The board had 4 buttons connected to GPIOs, add a corresponding
gpio-keys device.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts index e916aae2b725..95a849bf921f 100644 --- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts +++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts | |||
@@ -72,6 +72,35 @@ | |||
72 | regulator-boot-on; | 72 | regulator-boot-on; |
73 | }; | 73 | }; |
74 | 74 | ||
75 | gpio-keys { | ||
76 | compatible = "gpio-keys"; | ||
77 | |||
78 | power-key { | ||
79 | gpios = <&pfc 99 GPIO_ACTIVE_LOW>; | ||
80 | linux,code = <116>; | ||
81 | label = "SW3"; | ||
82 | gpio-key,wakeup; | ||
83 | }; | ||
84 | |||
85 | back-key { | ||
86 | gpios = <&pfc 100 GPIO_ACTIVE_LOW>; | ||
87 | linux,code = <158>; | ||
88 | label = "SW4"; | ||
89 | }; | ||
90 | |||
91 | menu-key { | ||
92 | gpios = <&pfc 97 GPIO_ACTIVE_LOW>; | ||
93 | linux,code = <139>; | ||
94 | label = "SW5"; | ||
95 | }; | ||
96 | |||
97 | home-key { | ||
98 | gpios = <&pfc 98 GPIO_ACTIVE_LOW>; | ||
99 | linux,code = <102>; | ||
100 | label = "SW6"; | ||
101 | }; | ||
102 | }; | ||
103 | |||
75 | leds { | 104 | leds { |
76 | compatible = "gpio-leds"; | 105 | compatible = "gpio-leds"; |
77 | led1 { | 106 | led1 { |