All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v6 15.1/17] ARM: shmobile: Add GPIO keys to Koelsch DTS
Date: Fri, 20 Dec 2013 14:24:19 +0000	[thread overview]
Message-ID: <18271175.fqPEWBKZqR@avalon> (raw)
In-Reply-To: <1387466923-8800-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hi Magnus,

On Friday 20 December 2013 16:18:39 Magnus Damm wrote:
> On Fri, Dec 20, 2013 at 12:28 AM, Laurent Pinchart
> 
> <laurent.pinchart+renesas@ideasonboard.com> wrote:
> > The Koelsh reference device tree is going away, copy the missing GPIO
> > keys device node to the Koeslch device tree file.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  arch/arm/boot/dts/r8a7791-koelsch.dts | 54 ++++++++++++++++++++++++++++++
> >  1 file changed, 54 insertions(+)
> > 
> > Hi Simon,
> > 
> > This patch contains the differences between v4 (which you have queued up)
> > and v5 of "ARM: shmobile: Sync Koelsch DTS with Koelsch reference DTS".
> > Feel free to apply it on top of your dt branch, or alternatively rebase
> > the branch to replace v4 with v5.
> 
> Hi Laurent,
> 
> Thanks for this patch. If you compare GPIO-keys on Koelsch and Lager
> then you can see that both have a DIP switch and Koelsch also has a
> set of buttons. I may recall wrong, but I think the legacy code
> supports both the DIP switch and buttons. This DT reference patch
> seems to only add buttons, not the DIP switch. Any plans to include
> the DIP switch?

I've seen that when implementing the original Koelsh GPIO keys DT support and 
poundered how to handle it properly. It basically boils down the how we define 
a GPIO key. A GPIO is a hardware concept, but a key is defined by its usage 
intent. As the buttons and DIP switches you refer to are just buttons and 
switches without a defined purpose, how to handle them is I believe a policy 
decision.

In the end I've decided to handle the buttons with the GPIO keys driver as I 
believe it makes sense to have keys hooked up to the input subsystem on a 
development board. As the DIP switches are not momentary buttons from a 
hardware point of view I've decided to omit them and let them be used for 
other purposes.

I'm fine with revisiting this decision, but please note that this patch only 
synchronizes the non-reference dts with the reference dts.

-- 
Regards,

Laurent Pinchart


  parent reply	other threads:[~2013-12-20 14:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-19 15:28 [PATCH v6 15.1/17] ARM: shmobile: Add GPIO keys to Koelsch DTS Laurent Pinchart
2013-12-20  7:18 ` Magnus Damm
2013-12-20 14:24 ` Laurent Pinchart [this message]
2013-12-20 14:40 ` Magnus Damm
2013-12-20 15:18 ` Geert Uytterhoeven
2013-12-20 22:46 ` Laurent Pinchart
2013-12-23  0:45 ` Simon Horman
2014-01-06  7:56 ` Simon Horman

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=18271175.fqPEWBKZqR@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.