diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-11 10:42:51 -0500 |
|---|---|---|
| committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-12 08:22:04 -0500 |
| commit | bd0609896eabe2e64b75d7955ae5ecec528cf860 (patch) | |
| tree | 618899c6b835de8f24a55678c1ffc1334e215a9a | |
| parent | 3c2a87c85391272b098827e432813c9437e93992 (diff) | |
ARM: shmobile: koelsch: dts: Add gpio-keys device
The board has 7 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>
| -rw-r--r-- | arch/arm/boot/dts/r8a7791-koelsch-reference.dts | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts index 19192731c24a..588ca17ea1f0 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts | |||
| @@ -31,6 +31,60 @@ | |||
| 31 | #size-cells = <1>; | 31 | #size-cells = <1>; |
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | gpio-keys { | ||
| 35 | compatible = "gpio-keys"; | ||
| 36 | |||
| 37 | key-a { | ||
| 38 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | ||
| 39 | linux,code = <30>; | ||
| 40 | label = "SW30"; | ||
| 41 | gpio-key,wakeup; | ||
| 42 | debounce-interval = <20>; | ||
| 43 | }; | ||
| 44 | key-b { | ||
| 45 | gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; | ||
| 46 | linux,code = <48>; | ||
| 47 | label = "SW31"; | ||
| 48 | gpio-key,wakeup; | ||
| 49 | debounce-interval = <20>; | ||
| 50 | }; | ||
| 51 | key-c { | ||
| 52 | gpios = <&gpio7 2 GPIO_ACTIVE_LOW>; | ||
| 53 | linux,code = <46>; | ||
| 54 | label = "SW32"; | ||
| 55 | gpio-key,wakeup; | ||
| 56 | debounce-interval = <20>; | ||
| 57 | }; | ||
| 58 | key-d { | ||
| 59 | gpios = <&gpio7 3 GPIO_ACTIVE_LOW>; | ||
| 60 | linux,code = <32>; | ||
| 61 | label = "SW33"; | ||
| 62 | gpio-key,wakeup; | ||
| 63 | debounce-interval = <20>; | ||
| 64 | }; | ||
| 65 | key-e { | ||
| 66 | gpios = <&gpio7 4 GPIO_ACTIVE_LOW>; | ||
| 67 | linux,code = <18>; | ||
| 68 | label = "SW34"; | ||
| 69 | gpio-key,wakeup; | ||
| 70 | debounce-interval = <20>; | ||
| 71 | }; | ||
| 72 | key-f { | ||
| 73 | gpios = <&gpio7 5 GPIO_ACTIVE_LOW>; | ||
| 74 | linux,code = <33>; | ||
| 75 | label = "SW35"; | ||
| 76 | gpio-key,wakeup; | ||
| 77 | debounce-interval = <20>; | ||
| 78 | }; | ||
| 79 | key-g { | ||
| 80 | gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; | ||
| 81 | linux,code = <34>; | ||
| 82 | label = "SW36"; | ||
| 83 | gpio-key,wakeup; | ||
| 84 | debounce-interval = <20>; | ||
| 85 | }; | ||
| 86 | }; | ||
| 87 | |||
| 34 | leds { | 88 | leds { |
| 35 | compatible = "gpio-leds"; | 89 | compatible = "gpio-leds"; |
| 36 | led6 { | 90 | led6 { |
