* [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
* [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Koelsch
2014-03-18 12:57 [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager Magnus Damm
@ 2014-03-18 12:59 ` Magnus Damm
2014-03-18 13:21 ` Geert Uytterhoeven
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2014-03-18 12:59 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@opensource.se>
Add DTS gpio-keys support for SW2 on the Koelsch board.
This makes the DT code match the legacy board code. Also
update the existing gpio-keys nodes to make use of KEY_n.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Written against renesas-devel-v3.14-rc7-20140318
arch/arm/boot/dts/r8a7791-koelsch.dts | 43 +++++++++++++++++++++++++++------
1 file changed, 36 insertions(+), 7 deletions(-)
--- 0001/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ work/arch/arm/boot/dts/r8a7791-koelsch.dts 2014-03-18 21:32:22.000000000 +0900
@@ -13,6 +13,7 @@
/dts-v1/;
#include "r8a7791.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "Koelsch";
@@ -40,51 +41,79 @@
gpio-keys {
compatible = "gpio-keys";
+ key-1 {
+ gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_1>;
+ label = "SW2-1";
+ gpio-key,wakeup;
+ debounce-interval = <20>;
+ };
+ key-2 {
+ gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_2>;
+ label = "SW2-2";
+ gpio-key,wakeup;
+ debounce-interval = <20>;
+ };
+ key-3 {
+ gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_3>;
+ label = "SW2-3";
+ gpio-key,wakeup;
+ debounce-interval = <20>;
+ };
+ key-4 {
+ gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_4>;
+ label = "SW2-4";
+ gpio-key,wakeup;
+ debounce-interval = <20>;
+ };
key-a {
gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
- linux,code = <30>;
+ linux,code = <KEY_A>;
label = "SW30";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-b {
gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
- linux,code = <48>;
+ linux,code = <KEY_B>;
label = "SW31";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-c {
gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
- linux,code = <46>;
+ linux,code = <KEY_C>;
label = "SW32";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-d {
gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
- linux,code = <32>;
+ linux,code = <KEY_D>;
label = "SW33";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-e {
gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
- linux,code = <18>;
+ linux,code = <KEY_E>;
label = "SW34";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-f {
gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
- linux,code = <33>;
+ linux,code = <KEY_F>;
label = "SW35";
gpio-key,wakeup;
debounce-interval = <20>;
};
key-g {
gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
- linux,code = <34>;
+ linux,code = <KEY_G>;
label = "SW36";
gpio-key,wakeup;
debounce-interval = <20>;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Koelsch
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
3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2014-03-18 13:21 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 18, 2014 at 2:01 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> Add DTS gpio-keys support for SW2 on the Koelsch board.
> This makes the DT code match the legacy board code. Also
> update the existing gpio-keys nodes to make use of KEY_n.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Koelsch
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
3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-03-19 0:05 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 18, 2014 at 02:21:15PM +0100, Geert Uytterhoeven wrote:
> On Tue, Mar 18, 2014 at 2:01 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
> > Add DTS gpio-keys support for SW2 on the Koelsch board.
> > This makes the DT code match the legacy board code. Also
> > update the existing gpio-keys nodes to make use of KEY_n.
> >
> > Signed-off-by: Magnus Damm <damm@opensource.se>
>
> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager
2014-03-18 12:57 [PATCH] ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager Magnus Damm
` (2 preceding siblings ...)
2014-03-19 0:05 ` Simon Horman
@ 2014-03-19 0:06 ` Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2014-03-19 0:06 UTC (permalink / raw)
To: linux-sh
On Tue, Mar 18, 2014 at 09:57:48PM +0900, Magnus Damm wrote:
> 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>
Thanks, I have queued this up.
^ 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.