From: Simon Horman <horms@verge.net.au>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: koelsch: dts: Add gpio-keys device
Date: Thu, 12 Dec 2013 13:23:01 +0000 [thread overview]
Message-ID: <20131212132300.GG30624@verge.net.au> (raw)
In-Reply-To: <1386776571-12979-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
On Wed, Dec 11, 2013 at 04:42:51PM +0100, Laurent Pinchart wrote:
> The board has 7 buttons connected to GPIOs, add a corresponding
> gpio-keys device.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> arch/arm/boot/dts/r8a7791-koelsch-reference.dts | 54 +++++++++++++++++++++++++
> 1 file changed, 54 insertions(+)
Thanks, I will queue this up.
>
> diff --git a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts
> index 1919273..588ca17 100644
> --- a/arch/arm/boot/dts/r8a7791-koelsch-reference.dts
> +++ b/arch/arm/boot/dts/r8a7791-koelsch-reference.dts
> @@ -31,6 +31,60 @@
> #size-cells = <1>;
> };
>
> + gpio-keys {
> + compatible = "gpio-keys";
> +
> + key-a {
> + gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
> + linux,code = <30>;
> + label = "SW30";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-b {
> + gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
> + linux,code = <48>;
> + label = "SW31";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-c {
> + gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
> + linux,code = <46>;
> + label = "SW32";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-d {
> + gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
> + linux,code = <32>;
> + label = "SW33";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-e {
> + gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
> + linux,code = <18>;
> + label = "SW34";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-f {
> + gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
> + linux,code = <33>;
> + label = "SW35";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + key-g {
> + gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
> + linux,code = <34>;
> + label = "SW36";
> + gpio-key,wakeup;
> + debounce-interval = <20>;
> + };
> + };
> +
> leds {
> compatible = "gpio-leds";
> led6 {
> --
> Regards,
>
> Laurent Pinchart
>
> --
> 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
>
prev parent reply other threads:[~2013-12-12 13:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-11 15:42 [PATCH] ARM: shmobile: koelsch: dts: Add gpio-keys device Laurent Pinchart
2013-12-12 13:23 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131212132300.GG30624@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).