summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/am335x-evmsk.dts
diff options
context:
space:
mode:
authorAnilKumar Ch <anilkumar@ti.com>2012-11-06 19:18:38 +0530
committerBenoit Cousson <b-cousson@ti.com>2012-11-06 15:45:53 +0100
commit00834b783ee3029a96489fae0c2eb3b1a198205d (patch)
treebbe4aaf14ab6d03998e13d5092223588d468353d /arch/arm/boot/dts/am335x-evmsk.dts
parentd98258b81721d452d2da98e9fc83c57e6ef70667 (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.dts31
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 @@
default-state = "off";
};
};
+
+ gpio_buttons: gpio_buttons@0 {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ switch@1 {
+ label = "button0";
+ linux,code = <0x100>;
+ gpios = <&gpio3 3 0>;
+ };
+
+ switch@2 {
+ label = "button1";
+ linux,code = <0x101>;
+ gpios = <&gpio3 2 0>;
+ };
+
+ switch@3 {
+ label = "button2";
+ linux,code = <0x102>;
+ gpios = <&gpio1 30 0>;
+ gpio-key,wakeup;
+ };
+
+ switch@4 {
+ label = "button3";
+ linux,code = <0x103>;
+ gpios = <&gpio3 5 0>;
+ };
+ };
};
/include/ "tps65910.dtsi"