From: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: Nios2 development list
<nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH@public.gmane.org>,
"Hennerich,
Michael"
<Michael.Hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>,
Mike Frysinger
<vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
"device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org"
<device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org>,
"uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org"
<uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org>
Subject: Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
Date: Thu, 03 Feb 2011 08:07:53 +0800 [thread overview]
Message-ID: <4D49F1D9.70909@wytron.com.tw> (raw)
In-Reply-To: <20110202160355.GE20275-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
On 02/03/2011 12:03 AM, Grant Likely wrote:
> On Thu, Jan 27, 2011 at 12:24:01PM +0000, Hennerich, Michael wrote:
>> Thomas Chou wrote on 2011-01-27:
>>> On 01/27/2011 02:18 PM, Mike Frysinger wrote:
>>>> On Thu, Jan 27, 2011 at 01:10, Thomas Chou wrote:
>>>>> We need devicetree support on ads7846/7843 touch screen driver. Do
>>>>> you have plan on it? We are moving to devicetree on nios2, so do
>>> arm/mips/x86.
>>>>
>>>> what part are you using exactly ?
>>>> -mike
>>>>
>>>
>>> ad7843 is used in a popular nios2 dev kit, NEEK.
>>
>> This driver is a SPI bus client driver. PPC is using devicetree for ages now,
>> and they don't have problems instantiating this or any other SPI bus driver.
>
> However, 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. It works for a lot of spi drivers, but it isn't
> always reliable.
>
> Alternatively, if of_match_table is populated in the spi_driver, then
> the normal device tree match behaviour will always work.
Thanks. The driver did match with the heuristic. But it needs to
determine pen state. I will try to bind a gpio node in dts.
linux/spi/ads7846.h
int gpio_pendown; /* the GPIO used to decide the pendown
* state if get_pendown_state == NULL
*/
- Thomas
next prev parent reply other threads:[~2011-02-03 0:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 6:10 touch screen ads7846/7843 devicetree support Thomas Chou
[not found] ` <4D410C4C.7070005-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-27 6:18 ` Mike Frysinger
[not found] ` <AANLkTinJheHYyjUUAK7guNXqepp9KJ3xk6u-4JrmAbee-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-01-27 10:58 ` Thomas Chou
[not found] ` <4D414FED.706-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-01-27 12:24 ` Hennerich, Michael
[not found] ` <544AC56F16B56944AEC3BD4E3D591771324C105D75-gpnycfiEEVR7xzP2fcxY8GoKb0G9Rp+C@public.gmane.org>
2011-01-27 13:31 ` [uclinux-dist-devel] " Thomas Chou
2011-02-02 16:03 ` Grant Likely
[not found] ` <20110202160355.GE20275-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-03 0:07 ` Thomas Chou [this message]
2011-06-09 6:07 ` Barry Song
[not found] ` <BANLkTik5BfiUeNFn-dXah86h+nhK6hU6vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-09 8:12 ` Mike Frysinger
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=4D49F1D9.70909@wytron.com.tw \
--to=thomas-sdxuxyehebicupeqfhbrbg@public.gmane.org \
--cc=Michael.Hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org \
--cc=device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH@public.gmane.org \
--cc=uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org \
--cc=vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.