ARM: dts: AM33XX: Add push-buttons device tree data to am335x-evmsk
authorAnilKumar Ch <anilkumar@ti.com>
Tue, 6 Nov 2012 13:48:38 +0000 (19:18 +0530)
committerBenoit Cousson <b-cousson@ti.com>
Tue, 6 Nov 2012 14:45:53 +0000 (15:45 +0100)
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>
arch/arm/boot/dts/am335x-evmsk.dts

index 0f825dd2d17808f1684a64c1f0d0148edbac7657..f5a6162a4ff22c0137fc97346c03d26cca11e8b7 100644 (file)
                        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"