All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager
@ 2014-03-18 12:57 Magnus Damm
  2014-03-18 12:59 ` [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Koelsch Magnus Damm
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Magnus Damm @ 2014-03-18 12:57 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Add DTS gpio-keys support for SW2 on the Lager board.
This makes the DT code match the legacy board code.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against renesas-devel-v3.14-rc7-20140318

 arch/arm/boot/dts/r8a7790-lager.dts |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

--- 0001/arch/arm/boot/dts/r8a7790-lager.dts
+++ work/arch/arm/boot/dts/r8a7790-lager.dts	2014-03-18 21:13:46.000000000 +0900
@@ -12,6 +12,7 @@
 /dts-v1/;
 #include "r8a7790.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "Lager";
@@ -36,6 +37,39 @@
 		#size-cells = <1>;
 	};
 
+	gpio_keys {
+		compatible = "gpio-keys";
+
+		button@1 {
+			linux,code = <KEY_1>;
+			label = "SW2-1";
+			gpio-key,wakeup;
+			debounce-interval = <20>;
+			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+		};
+		button@2 {
+			linux,code = <KEY_2>;
+			label = "SW2-2";
+			gpio-key,wakeup;
+			debounce-interval = <20>;
+			gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
+		};
+		button@3 {
+			linux,code = <KEY_3>;
+			label = "SW2-3";
+			gpio-key,wakeup;
+			debounce-interval = <20>;
+			gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
+		};
+		button@4 {
+			linux,code = <KEY_4>;
+			label = "SW2-4";
+			gpio-key,wakeup;
+			debounce-interval = <20>;
+			gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 		led6 {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-19  0:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 12:57 [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager Magnus Damm
2014-03-18 12:59 ` [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Koelsch Magnus Damm
2014-03-18 13:21 ` Geert Uytterhoeven
2014-03-19  0:05 ` Simon Horman
2014-03-19  0:06 ` [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.