* [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT
@ 2013-11-26 1:21 Laurent Pinchart
2013-11-28 7:52 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Laurent Pinchart @ 2013-11-26 1:21 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 46 ++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index d58877d..5bb593d 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -106,6 +106,52 @@
gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ back-key {
+ gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
+ linux,code = <158>;
+ label = "SW3";
+ };
+
+ right-key {
+ gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
+ linux,code = <106>;
+ label = "SW2-R";
+ };
+
+ left-key {
+ gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
+ linux,code = <105>;
+ label = "SW2-L";
+ };
+
+ enter-key {
+ gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
+ linux,code = <28>;
+ label = "SW2-P";
+ };
+
+ up-key {
+ gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
+ linux,code = <103>;
+ label = "SW2-U";
+ };
+
+ down-key {
+ gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
+ linux,code = <108>;
+ label = "SW2-D";
+ };
+
+ home-key {
+ gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
+ linux,code = <102>;
+ label = "SW1";
+ };
+ };
};
&i2c0 {
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT
2013-11-26 1:21 [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT Laurent Pinchart
@ 2013-11-28 7:52 ` Simon Horman
2014-11-06 12:49 ` [PATCH 2/2] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs Geert Uytterhoeven
2014-11-10 1:12 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-11-28 7:52 UTC (permalink / raw)
To: linux-sh
On Tue, Nov 26, 2013 at 02:21:19AM +0100, Laurent Pinchart wrote:
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 46 ++++++++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
Thanks, I have queued this up.
>
> diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> index d58877d..5bb593d 100644
> --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> @@ -106,6 +106,52 @@
> gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
> };
> };
> +
> + gpio-keys {
> + compatible = "gpio-keys";
> +
> + back-key {
> + gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>;
> + linux,code = <158>;
> + label = "SW3";
> + };
> +
> + right-key {
> + gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>;
> + linux,code = <106>;
> + label = "SW2-R";
> + };
> +
> + left-key {
> + gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>;
> + linux,code = <105>;
> + label = "SW2-L";
> + };
> +
> + enter-key {
> + gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>;
> + linux,code = <28>;
> + label = "SW2-P";
> + };
> +
> + up-key {
> + gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>;
> + linux,code = <103>;
> + label = "SW2-U";
> + };
> +
> + down-key {
> + gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>;
> + linux,code = <108>;
> + label = "SW2-D";
> + };
> +
> + home-key {
> + gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>;
> + linux,code = <102>;
> + label = "SW1";
> + };
> + };
> };
>
> &i2c0 {
> --
> 1.8.3.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs
2013-11-26 1:21 [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT Laurent Pinchart
2013-11-28 7:52 ` Simon Horman
@ 2014-11-06 12:49 ` Geert Uytterhoeven
2014-11-10 1:12 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-11-06 12:49 UTC (permalink / raw)
To: linux-sh
The LEDs on the kzm9g board are labeled using upper-case characters.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index 8c913d9b18241a16..0a34c90105e9fcd6 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -101,15 +101,19 @@
compatible = "gpio-leds";
led1 {
gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
+ label = "LED1";
};
led2 {
gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
+ label = "LED2";
};
led3 {
gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
+ label = "LED3";
};
led4 {
gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
+ label = "LED4";
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs
2013-11-26 1:21 [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT Laurent Pinchart
2013-11-28 7:52 ` Simon Horman
2014-11-06 12:49 ` [PATCH 2/2] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs Geert Uytterhoeven
@ 2014-11-10 1:12 ` Simon Horman
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-11-10 1:12 UTC (permalink / raw)
To: linux-sh
On Thu, Nov 06, 2014 at 01:49:59PM +0100, Geert Uytterhoeven wrote:
> The LEDs on the kzm9g board are labeled using upper-case characters.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks, I have queued this up.
> ---
> arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> index 8c913d9b18241a16..0a34c90105e9fcd6 100644
> --- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> +++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
> @@ -101,15 +101,19 @@
> compatible = "gpio-leds";
> led1 {
> gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
> + label = "LED1";
> };
> led2 {
> gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
> + label = "LED2";
> };
> led3 {
> gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
> + label = "LED3";
> };
> led4 {
> gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
> + label = "LED4";
> };
> };
>
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-10 1:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 1:21 [PATCH 2/2] ARM: shmobile: kzm9g-reference: Add GPIO keys to DT Laurent Pinchart
2013-11-28 7:52 ` Simon Horman
2014-11-06 12:49 ` [PATCH 2/2] ARM: shmobile: kzm9g-reference dts: Add labels for the LEDs Geert Uytterhoeven
2014-11-10 1:12 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox