| From 4e5e0330a3113d62a0f062ce0b4a828304c5d4a7 Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Wed, 11 Dec 2013 04:26:30 +0100 |
| Subject: ARM: shmobile: armadillo: dts: Add gpio-keys device |
| |
| 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> |
| (cherry picked from commit 90c2434daa0b8c7ec2b75fcb182436813e9120bd) |
| (Queued by Simon Horman for v3.14 but not yet in Linus's tree) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| .../boot/dts/r8a7740-armadillo800eva-reference.dts | 29 ++++++++++++++++++++++ |
| 1 file changed, 29 insertions(+) |
| |
| diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts |
| index e916aae2b725..95a849bf921f 100644 |
| --- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts |
| +++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts |
| @@ -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 { |
| -- |
| 1.8.5.rc3 |
| |