All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: Simon Glass <sjg@chromium.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Roland Stigge <stigge@antcom.de>,
	Vincent Palatin <vpalatin@chromium.org>,
	linux-doc@vger.kernel.org, Wolfram Sang <w.sang@pengutronix.de>,
	Felipe Balbi <balbi@ti.com>,
	Luigi Semenzato <semenzato@chromium.org>,
	Rob Herring <rob.herring@calxeda.com>,
	linux-input@vger.kernel.org, Stephen Warren <swarren@nvidia.com>,
	Sourav Poddar <sourav.poddar@ti.com>,
	Alban Bedel <alban.bedel@avionic-design.de>,
	devicetree-discuss@lists.ozlabs.org,
	Laxman Dewangan <ldewangan@nvidia.com>
Subject: Re: [PATCH v2] input: Extend matrix-keypad device tree binding
Date: Fri, 11 Jan 2013 09:13:43 -0800	[thread overview]
Message-ID: <20130111171343.GE11224@core.coreip.homeip.net> (raw)
In-Reply-To: <50F0473F.404@wwwdotorg.org>

On Fri, Jan 11, 2013 at 10:09:19AM -0700, Stephen Warren wrote:
> On 01/10/2013 06:41 PM, Simon Glass wrote:
> > Some matrix keypad drivers can support different numbers of rows and
> > columns. Add a generic binding for these.
> > 
> > Implementation note:
> > 
> > In order to implement this binding in the kernel, we will need to modify
> > matrix_keypad_() to look up the number of rows and cols in
> > the keymap. Perhaps this could be done by passing 0 for these parameters?
> > Many of the parameters can already be set to NULL. Ick.
> 
> Reviewed-by: Stephen Warren <swarren@nvidia.com>
> 
> Note that the Tegra bindings are based on matrix-keypad.txt, and
> recently added the following properties:
> 
> > - nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an
> >   array of pin numbers which is used as rows.
> > - nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an
> >   array of pin numbers which is used as column.
> 
> Those both define the number of rows/columns (indirectly via the
> property lengths) *and* define which pins are used for the rows/columns.
> How will this influence/interact-with any changes you're planning to the
> core matrix keymap parsing code; would Tegra require your "new"
> keypad,num-rows/keypad,num-columns properties even though the
> information is redundant, or will the Tegra driver have some way of
> passing this information to the core?

Even if we decide to move lookup of keypad,num-rows/keypad,num-columns
into matrix-keypad code we will still allow callers to override DT data,
like we do with platform keymaps.

Thanks.

-- 
Dmitry

  reply	other threads:[~2013-01-11 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11  1:41 [PATCH v2] input: Extend matrix-keypad device tree binding Simon Glass
2013-01-11 17:09 ` Stephen Warren
2013-01-11 17:13   ` Dmitry Torokhov [this message]
2013-02-08 12:59   ` Grant Likely

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=20130111171343.GE11224@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=alban.bedel@avionic-design.de \
    --cc=balbi@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=ldewangan@nvidia.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    --cc=semenzato@chromium.org \
    --cc=sjg@chromium.org \
    --cc=sourav.poddar@ti.com \
    --cc=stigge@antcom.de \
    --cc=swarren@nvidia.com \
    --cc=swarren@wwwdotorg.org \
    --cc=vpalatin@chromium.org \
    --cc=w.sang@pengutronix.de \
    /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.