* [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
@ 2015-02-27 17:48 Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 1/2] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-02-27 17:48 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: Laurent Pinchart, Ulrich Hecht, linux-sh-u79uwXL29TY76Z2rM5mHXA,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven
Hi Simon, Magnus,
This patch series adds the missing pull-up bias configuration for the
switches on the r8a73a4/ape6evm development board, and configures the
custom switch as a wake-up source.
After this, the keys actually work, and the system can be resumed from
s2ram by pressing the custom switch.
This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this is
DTS, it can be applied independently.
Thanks for your comments!
Geert Uytterhoeven (2):
ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches
ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up
source
arch/arm/boot/dts/r8a73a4-ape6evm.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
--
1.9.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches
2015-02-27 17:48 [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Geert Uytterhoeven
@ 2015-02-27 17:48 ` Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 2/2] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Geert Uytterhoeven
2015-03-05 0:34 ` [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Simon Horman
2 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-02-27 17:48 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: Laurent Pinchart, Ulrich Hecht, linux-sh, linux-gpio, devicetree,
Geert Uytterhoeven
The switches on r8a73a4/ape6evm do not have pull-up registers. The
schematics say: "Need to use APE6 internal PullUp", hence enable pull-up
using pinctrl.
Without this, the switches don't really work, as the GPIO inputs are
more likely to pick up ghost signals through capacitive coupling than
actual keypresses.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/boot/dts/r8a73a4-ape6evm.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
index b355fafc32f188dc..5baada97bc715838 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
@@ -103,6 +103,9 @@
keyboard {
compatible = "gpio-keys";
+ pinctrl-names = "default";
+ pinctrl-0 = <&keyboard_pins>;
+
zero-key {
gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
linux,code = <KEY_0>;
@@ -203,6 +206,12 @@
renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
renesas,function = "sdhi1";
};
+
+ keyboard_pins: keyboard {
+ renesas,pins = "PORT324", "PORT325", "PORT326", "PORT327",
+ "PORT328", "PORT329";
+ bias-pull-up;
+ };
};
&mmcif0 {
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source
2015-02-27 17:48 [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 1/2] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches Geert Uytterhoeven
@ 2015-02-27 17:48 ` Geert Uytterhoeven
2015-03-05 0:34 ` [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Simon Horman
2 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2015-02-27 17:48 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: Laurent Pinchart, Ulrich Hecht, linux-sh, linux-gpio, devicetree,
Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/boot/dts/r8a73a4-ape6evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
index 5baada97bc715838..81a38ceee098087e 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
@@ -110,6 +110,7 @@
gpios = <&pfc 324 GPIO_ACTIVE_LOW>;
linux,code = <KEY_0>;
label = "S16";
+ gpio-key,wakeup;
};
menu-key {
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
2015-02-27 17:48 [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 1/2] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 2/2] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Geert Uytterhoeven
@ 2015-03-05 0:34 ` Simon Horman
2015-03-05 10:42 ` Laurent Pinchart
2 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2015-03-05 0:34 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Magnus Damm, Laurent Pinchart, Ulrich Hecht, linux-sh, linux-gpio,
devicetree
On Fri, Feb 27, 2015 at 06:48:37PM +0100, Geert Uytterhoeven wrote:
> Hi Simon, Magnus,
>
> This patch series adds the missing pull-up bias configuration for the
> switches on the r8a73a4/ape6evm development board, and configures the
> custom switch as a wake-up source.
>
> After this, the keys actually work, and the system can be resumed from
> s2ram by pressing the custom switch.
>
> This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
> overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
> sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this is
> DTS, it can be applied independently.
>
> Thanks for your comments!
Hi Geert,
this seems fine to me. But I am reluctant to queue it up before the PFC
changes are accepted, lest there be some change in direction.
Please repost once the PFC changes have been accepted.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
2015-03-05 0:34 ` [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Simon Horman
@ 2015-03-05 10:42 ` Laurent Pinchart
2015-03-06 11:30 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Pinchart @ 2015-03-05 10:42 UTC (permalink / raw)
To: Simon Horman
Cc: Geert Uytterhoeven, Magnus Damm, Ulrich Hecht, linux-sh,
linux-gpio, devicetree
Hi Simon,
On Thursday 05 March 2015 09:34:33 Simon Horman wrote:
> On Fri, Feb 27, 2015 at 06:48:37PM +0100, Geert Uytterhoeven wrote:
> > Hi Simon, Magnus,
> >
> > This patch series adds the missing pull-up bias configuration for the
> > switches on the r8a73a4/ape6evm development board, and configures the
> > custom switch as a wake-up source.
> >
> > After this, the keys actually work, and the system can be resumed from
> > s2ram by pressing the custom switch.
> >
> > This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
> > overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
> > sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this is
> > DTS, it can be applied independently.
> >
> > Thanks for your comments!
>
> Hi Geert,
>
> this seems fine to me. But I am reluctant to queue it up before the PFC
> changes are accepted, lest there be some change in direction.
>
> Please repost once the PFC changes have been accepted.
I've acked the dependency, but we should probably wait for Linus to apply it.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
2015-03-05 10:42 ` Laurent Pinchart
@ 2015-03-06 11:30 ` Simon Horman
2015-03-06 11:33 ` Laurent Pinchart
0 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2015-03-06 11:30 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Geert Uytterhoeven, Magnus Damm, Ulrich Hecht, linux-sh,
linux-gpio, devicetree
On Thu, Mar 05, 2015 at 12:42:07PM +0200, Laurent Pinchart wrote:
> Hi Simon,
>
> On Thursday 05 March 2015 09:34:33 Simon Horman wrote:
> > On Fri, Feb 27, 2015 at 06:48:37PM +0100, Geert Uytterhoeven wrote:
> > > Hi Simon, Magnus,
> > >
> > > This patch series adds the missing pull-up bias configuration for the
> > > switches on the r8a73a4/ape6evm development board, and configures the
> > > custom switch as a wake-up source.
> > >
> > > After this, the keys actually work, and the system can be resumed from
> > > s2ram by pressing the custom switch.
> > >
> > > This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
> > > overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
> > > sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this is
> > > DTS, it can be applied independently.
> > >
> > > Thanks for your comments!
> >
> > Hi Geert,
> >
> > this seems fine to me. But I am reluctant to queue it up before the PFC
> > changes are accepted, lest there be some change in direction.
> >
> > Please repost once the PFC changes have been accepted.
>
> I've acked the dependency, but we should probably wait for Linus to apply it.
Thanks Laurent, of course that plan is fine by me.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
2015-03-06 11:30 ` Simon Horman
@ 2015-03-06 11:33 ` Laurent Pinchart
2015-03-07 1:08 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Pinchart @ 2015-03-06 11:33 UTC (permalink / raw)
To: Simon Horman
Cc: Geert Uytterhoeven, Magnus Damm, Ulrich Hecht, linux-sh,
linux-gpio, devicetree
Hi Simon,
On Friday 06 March 2015 20:30:29 Simon Horman wrote:
> On Thu, Mar 05, 2015 at 12:42:07PM +0200, Laurent Pinchart wrote:
> > On Thursday 05 March 2015 09:34:33 Simon Horman wrote:
> >> On Fri, Feb 27, 2015 at 06:48:37PM +0100, Geert Uytterhoeven wrote:
> >>> Hi Simon, Magnus,
> >>>
> >>> This patch series adds the missing pull-up bias configuration for the
> >>> switches on the r8a73a4/ape6evm development board, and configures the
> >>> custom switch as a wake-up source.
> >>>
> >>> After this, the keys actually work, and the system can be resumed from
> >>> s2ram by pressing the custom switch.
> >>>
> >>> This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
> >>> overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
> >>> sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this
> >>> is DTS, it can be applied independently.
> >>>
> >>> Thanks for your comments!
> >>
> >> Hi Geert,
> >>
> >> this seems fine to me. But I am reluctant to queue it up before the PFC
> >> changes are accepted, lest there be some change in direction.
> >>
> >> Please repost once the PFC changes have been accepted.
> >
> > I've acked the dependency, but we should probably wait for Linus to apply
> > it.
>
> Thanks Laurent, of course that plan is fine by me.
Linus has just applied it, so I think you can go forward with this series.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up
2015-03-06 11:33 ` Laurent Pinchart
@ 2015-03-07 1:08 ` Simon Horman
0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2015-03-07 1:08 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Geert Uytterhoeven, Magnus Damm, Ulrich Hecht, linux-sh,
linux-gpio, devicetree
On Fri, Mar 06, 2015 at 01:33:05PM +0200, Laurent Pinchart wrote:
> Hi Simon,
>
> On Friday 06 March 2015 20:30:29 Simon Horman wrote:
> > On Thu, Mar 05, 2015 at 12:42:07PM +0200, Laurent Pinchart wrote:
> > > On Thursday 05 March 2015 09:34:33 Simon Horman wrote:
> > >> On Fri, Feb 27, 2015 at 06:48:37PM +0100, Geert Uytterhoeven wrote:
> > >>> Hi Simon, Magnus,
> > >>>
> > >>> This patch series adds the missing pull-up bias configuration for the
> > >>> switches on the r8a73a4/ape6evm development board, and configures the
> > >>> custom switch as a wake-up source.
> > >>>
> > >>> After this, the keys actually work, and the system can be resumed from
> > >>> s2ram by pressing the custom switch.
> > >>>
> > >>> This depends functionally on "[PATCH 1/4] pinctrl: sh-pfc: Do not
> > >>> overwrite bias configuration" in the series "[PATCH 0/4] pinctrl:
> > >>> sh-pfc: Fix pin bias and cleanups" which I've just sent. But as this
> > >>> is DTS, it can be applied independently.
> > >>>
> > >>> Thanks for your comments!
> > >>
> > >> Hi Geert,
> > >>
> > >> this seems fine to me. But I am reluctant to queue it up before the PFC
> > >> changes are accepted, lest there be some change in direction.
> > >>
> > >> Please repost once the PFC changes have been accepted.
> > >
> > > I've acked the dependency, but we should probably wait for Linus to apply
> > > it.
> >
> > Thanks Laurent, of course that plan is fine by me.
>
> Linus has just applied it, so I think you can go forward with this series.
Thanks, done.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-07 1:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 17:48 [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 1/2] ARM: shmobile: ape6evm dts: Enable pull-up for GPIO switches Geert Uytterhoeven
2015-02-27 17:48 ` [PATCH 2/2] ARM: shmobile: ape6evm dts: Configure the custom switch as wake-up source Geert Uytterhoeven
2015-03-05 0:34 ` [PATCH 0/2] ARM: shmobile: ape6evm: Fix GPIO keys and wake-up Simon Horman
2015-03-05 10:42 ` Laurent Pinchart
2015-03-06 11:30 ` Simon Horman
2015-03-06 11:33 ` Laurent Pinchart
2015-03-07 1:08 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).