summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/am335x-evm.dts
diff options
context:
space:
mode:
authorAnilKumar Ch <anilkumar@ti.com>2012-11-06 17:48:32 +0400
committerBenoit Cousson <b-cousson@ti.com>2012-11-06 18:45:49 +0400
commit822c99367ead1e2fa2ba03d42d10aa7c5a84190b (patch)
tree5af47e25d053fadd425417fdd9e8e9ced96e1185 /arch/arm/boot/dts/am335x-evm.dts
parent404aa0d71ddd82189ef3680d6c41f127dc89d29f (diff)
downloadlinux-822c99367ead1e2fa2ba03d42d10aa7c5a84190b.tar.xz
ARM: dts: AM33XX: Add volume-keys device tree data to am335x-evm
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>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evm.dts')
-rw-r--r--arch/arm/boot/dts/am335x-evm.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index e087b8751e0c..9f65f17ebdf8 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -137,6 +137,27 @@
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"