From: ezequiel.garcia@free-electrons.com (Ezequiel Garcia)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mvebu: Add gpio button to Mirabox board
Date: Thu, 28 Mar 2013 00:38:08 -0300 [thread overview]
Message-ID: <20130328033807.GA12212@localhost> (raw)
In-Reply-To: <CABx3TkVyVAzEJ54FV70fK3BoULKCOkgNcw32_K3XT-oCUWjEfg@mail.gmail.com>
Hi Ryan,
On Wed, Mar 27, 2013 at 05:42:36PM -0700, Ryan Press wrote:
> Ezequiel Garcia wrote:
> >
> >The Globalscale Mirabox board has a little gpio button
> >placed just above the SD card slot; the board user guide labels
> >this button as "System reset button".
> >
> >This patch adds support for this button in the device tree file.
> >diff --git a/arch/arm/boot/dts/armada-370-mirabox.dts b/arch/arm/boot/dts/armada-370-mirabox.dts
> >+ gpio-keys {
> >+ compatible = "gpio-keys";
> >+ #address-cells = <1>;
> >+ #size-cells = <0>;
> >+ reset at 1 {
> >+ label = "Reset Button";
> >+ linux,code = <116>;
> >+ gpios = <&gpio1 26 1>;
>
> Were you able to get the button to work in user space with
> "gpio-keys"?
I did a very minimal test using evdev debug interface.
http://troll.ws/paste/ac62e292
http://troll.ws/paste/b22699e1
> I was not able to get this to work, I think there is
> some IRQ problem. I was able to get it to work with
> "gpio-keys-polled" however.
>
Could you explain what you did and what was your problem?
> I've also added support for the LEDs; would you like me to submit a patch?
>
Mirabox LEDs? Sure! I'll definitely give them a try...
--
Ezequiel Garc?a, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
next parent reply other threads:[~2013-03-28 3:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CABx3TkVyVAzEJ54FV70fK3BoULKCOkgNcw32_K3XT-oCUWjEfg@mail.gmail.com>
2013-03-28 3:38 ` Ezequiel Garcia [this message]
2013-03-29 4:13 ` [PATCH] ARM: mvebu: Add gpio button to Mirabox board Ryan Press
2013-03-29 16:50 ` Ezequiel Garcia
2013-03-29 17:30 ` Ryan Press
2013-03-29 18:13 ` Ezequiel Garcia
2013-03-26 13:30 Ezequiel Garcia
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=20130328033807.GA12212@localhost \
--to=ezequiel.garcia@free-electrons.com \
--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).