ARM: dts: AM33XX: Add volume-keys device tree data to am335x-evm
authorAnilKumar Ch <anilkumar@ti.com>
Tue, 6 Nov 2012 13:48:32 +0000 (19:18 +0530)
committerBenoit Cousson <b-cousson@ti.com>
Tue, 6 Nov 2012 14:45:49 +0000 (15:45 +0100)
Add gpio based volume keys device tree data to am335x-evm by adding
all the required parameters like keycode, 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-evm.dts

index e087b8751e0c0e2c1f194f65192f999db99f8a65..9f65f17ebdf8f10452e28048a9c7a7af5a8e455c 100644 (file)
                                0x0101001c      /* ENTER */
                                0x0201006c>;    /* DOWN */
        };
+
+       gpio_keys: volume_keys@0 {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               autorepeat;
+
+               switch@9 {
+                       label = "volume-up";
+                       linux,code = <115>;
+                       gpios = <&gpio1 2 1>;
+                       gpio-key,wakeup;
+               };
+
+               switch@10 {
+                       label = "volume-down";
+                       linux,code = <114>;
+                       gpios = <&gpio1 3 1>;
+                       gpio-key,wakeup;
+               };
+       };
 };
 
 /include/ "tps65910.dtsi"