| From 5fd4b04deff35866cc1ef20294e364861f9e3a47 Mon Sep 17 00:00:00 2001 |
| From: Vladimir Barinov <vladimir.barinov@cogentembedded.com> |
| Date: Thu, 3 Nov 2016 21:07:43 +0300 |
| Subject: [PATCH 134/299] arm64: dts: m3ulcb: enable GPIO keys |
| |
| This supports GPIO keys on M3ULCB board |
| |
| Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com> |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| (cherry picked from commit 96cc1e177c1260e53ac39a0fb109f5d9e7300b09) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts | 13 +++++++++++++ |
| 1 file changed, 13 insertions(+) |
| |
| --- a/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts |
| +++ b/arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts |
| @@ -12,6 +12,7 @@ |
| /dts-v1/; |
| #include "r8a7796.dtsi" |
| #include <dt-bindings/gpio/gpio.h> |
| +#include <dt-bindings/input/input.h> |
| |
| / { |
| model = "Renesas M3ULCB board based on r8a7796"; |
| @@ -41,6 +42,18 @@ |
| gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; |
| }; |
| }; |
| + |
| + keyboard { |
| + compatible = "gpio-keys"; |
| + |
| + key-1 { |
| + linux,code = <KEY_1>; |
| + label = "SW3"; |
| + wakeup-source; |
| + debounce-interval = <20>; |
| + gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; |
| + }; |
| + }; |
| }; |
| |
| &extal_clk { |