linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Barry Song <21cnbao@gmail.com>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org,
	Thomas Chou <thomas@wytron.com.tw>,
	devicetree-discuss@lists.ozlabs.org,
	Zhiwu Song <zhiwu.song@csr.com>,
	uclinux-dist-devel@blackfin.uclinux.org
Subject: Re: [PATCH] input: touchscreen: add OF match table for ads7846
Date: Mon, 13 Jun 2011 07:24:03 -0600	[thread overview]
Message-ID: <BANLkTinAtt2yWc=3VXqdAo4unJbTswKx0g@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimxhKWg1QwLEFpGKgg01DRkddmmTw@mail.gmail.com>

On Mon, Jun 13, 2011 at 2:15 AM, Barry Song <21cnbao@gmail.com> wrote:
> Hi Grant,
> Thanks.
>
> 2011/6/13 Grant Likely <grant.likely@secretlab.ca>:
>> On Thu, Jun 9, 2011 at 8:28 PM, Barry Song <Baohua.Song@csr.com> wrote:
>>> The current ads7846 has no OF match table. The method used is by applying a heuristic (of_modalias_node) which tries to name the device in a way that will match an existing device driver.
>>> This patch adds explicit OF match table for ads7846, then the normal device tree match behaviour will always work.
>>> It has been tested on PRIMA2 EVB board of CSR with a SPI's child node like the below:
>>> ts@0 {
>>>        compatible = "ti,ads7845";
>>>        reg = <0x0>;
>>>        spi-max-frequency = <31250>;
>>>        interrupts = <90>;
>>> };
>>>
>>> Signed-off-by: Barry Song <21cnbao@gmail.com>
>>> Cc: Grant Likely <grant.likely@secretlab.ca>
>>> cc: Thomas Chou <thomas@wytron.com.tw>
>>> ---
>>>  drivers/input/touchscreen/ads7846.c |   14 ++++++++++++++
>>
>> There should also be documentation for the new binding added to
>> Documentation/devicetree/bindings for the new compatible strings.
>
> Which directory do you think is the best to place this document? or do
> we build a new diretory named
> Documentation/devicetree/bindings/input/touchscreen/ ?
> The dir Documentation/devicetree/bindings seems to be for spi host,
> not for spi clients.

Documentation/devicetree/bindings/input sounds appropriate.

g.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-06-13 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10  2:28 [PATCH] input: touchscreen: add OF match table for ads7846 Barry Song
2011-06-13  5:15 ` Grant Likely
2011-06-13  8:15   ` Barry Song
2011-06-13 13:24     ` Grant Likely [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='BANLkTinAtt2yWc=3VXqdAo4unJbTswKx0g@mail.gmail.com' \
    --to=grant.likely@secretlab.ca \
    --cc=21cnbao@gmail.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=thomas@wytron.com.tw \
    --cc=uclinux-dist-devel@blackfin.uclinux.org \
    --cc=zhiwu.song@csr.com \
    /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).