Skip to content

Commit

Permalink
ARM: shmobile: armadillo: dts: Add gpio-keys device
Browse files Browse the repository at this point in the history
The board had 4 buttons connected to GPIOs, add a corresponding
gpio-keys device.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Dec 19, 2013
1 parent aba76d2 commit 90c2434
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,35 @@
regulator-boot-on;
};

gpio-keys {
compatible = "gpio-keys";

power-key {
gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
linux,code = <116>;
label = "SW3";
gpio-key,wakeup;
};

back-key {
gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
linux,code = <158>;
label = "SW4";
};

menu-key {
gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
linux,code = <139>;
label = "SW5";
};

home-key {
gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
linux,code = <102>;
label = "SW6";
};
};

leds {
compatible = "gpio-leds";
led1 {
Expand Down

0 comments on commit 90c2434

Please sign in to comment.