diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2012-11-06 08:48:38 -0500 |
---|---|---|
committer | Benoit Cousson <b-cousson@ti.com> | 2012-11-06 09:45:53 -0500 |
commit | 00834b783ee3029a96489fae0c2eb3b1a198205d (patch) | |
tree | bbe4aaf14ab6d03998e13d5092223588d468353d /arch/arm/boot/dts/am335x-evmsk.dts | |
parent | d98258b81721d452d2da98e9fc83c57e6ef70667 (diff) |
ARM: dts: AM33XX: Add push-buttons device tree data to am335x-evmsk
Add gpio based push buttons device tree data to am335x-evmsk device
by adding all the necessary parameters like key-code, gpios and etc.
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evmsk.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-evmsk.dts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 0f825dd2d178..f5a6162a4ff2 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts | |||
@@ -139,6 +139,37 @@ | |||
139 | default-state = "off"; | 139 | default-state = "off"; |
140 | }; | 140 | }; |
141 | }; | 141 | }; |
142 | |||
143 | gpio_buttons: gpio_buttons@0 { | ||
144 | compatible = "gpio-keys"; | ||
145 | #address-cells = <1>; | ||
146 | #size-cells = <0>; | ||
147 | |||
148 | switch@1 { | ||
149 | label = "button0"; | ||
150 | linux,code = <0x100>; | ||
151 | gpios = <&gpio3 3 0>; | ||
152 | }; | ||
153 | |||
154 | switch@2 { | ||
155 | label = "button1"; | ||
156 | linux,code = <0x101>; | ||
157 | gpios = <&gpio3 2 0>; | ||
158 | }; | ||
159 | |||
160 | switch@3 { | ||
161 | label = "button2"; | ||
162 | linux,code = <0x102>; | ||
163 | gpios = <&gpio1 30 0>; | ||
164 | gpio-key,wakeup; | ||
165 | }; | ||
166 | |||
167 | switch@4 { | ||
168 | label = "button3"; | ||
169 | linux,code = <0x103>; | ||
170 | gpios = <&gpio3 5 0>; | ||
171 | }; | ||
172 | }; | ||
142 | }; | 173 | }; |
143 | 174 | ||
144 | /include/ "tps65910.dtsi" | 175 | /include/ "tps65910.dtsi" |