Skip to content

Commit

Permalink
ARM: dts: AM33XX: Add volume-keys device tree data to am335x-evm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AnilKumar Ch authored and Benoit Cousson committed Nov 6, 2012
1 parent 404aa0d commit 822c993
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions arch/arm/boot/dts/am335x-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 822c993

Please sign in to comment.