linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: florian@openwrt.org (Florian Fainelli)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mvebu: Add button on Armada 370 Reference Design board
Date: Fri, 22 Mar 2013 10:26:23 +0100	[thread overview]
Message-ID: <514C23BF.10504@openwrt.org> (raw)
In-Reply-To: <1363894988-3181-1-git-send-email-ezequiel.garcia@free-electrons.com>

Hello Ezequiel,

Le 03/21/13 20:43, Ezequiel Garcia a ?crit :
> The Marvell Armada 370 Reference Design board has a software-controlled
> button on the front side, marked as "SW".
> This patch adds minimal support for this button.

This is also what I found out while playing with gpio exporting, looks good!

>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

Acked-by: Florian Fainelli <florian@openwrt.org>

> ---
>   arch/arm/boot/dts/armada-370-rd.dts |   11 +++++++++++
>   1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts
> index f8e4855..df3fdf4 100644
> --- a/arch/arm/boot/dts/armada-370-rd.dts
> +++ b/arch/arm/boot/dts/armada-370-rd.dts
> @@ -65,4 +65,15 @@
>   			/* No CD or WP GPIOs */
>   		};
>   	};
> +
> +	gpio-keys {
> +		compatible = "gpio-keys";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		button at 1 {
> +			label = "Software Button";
> +			linux,code = <116>;
> +			gpios = <&gpio0 6 1>;
> +		};
> +	};
>   };
>

  reply	other threads:[~2013-03-22  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 19:43 [PATCH] ARM: mvebu: Add button on Armada 370 Reference Design board Ezequiel Garcia
2013-03-22  9:26 ` Florian Fainelli [this message]
2013-03-30 20:38 ` Jason Cooper

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=514C23BF.10504@openwrt.org \
    --to=florian@openwrt.org \
    --cc=linux-arm-kernel@lists.infradead.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).