All of lore.kernel.org
 help / color / mirror / Atom feed
* touch screen ads7846/7843 devicetree support
@ 2011-01-27  6:10 Thomas Chou
       [not found] ` <4D410C4C.7070005-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Chou @ 2011-01-27  6:10 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	Nios2 development list,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

Hi Mike,

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.

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: touch screen ads7846/7843 devicetree support
       [not found] ` <4D410C4C.7070005-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
@ 2011-01-27  6:18   ` Mike Frysinger
       [not found]     ` <AANLkTinJheHYyjUUAK7guNXqepp9KJ3xk6u-4JrmAbee-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Frysinger @ 2011-01-27  6:18 UTC (permalink / raw)
  To: Thomas Chou
  Cc: Grant Likely,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	Nios2 development list,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: touch screen ads7846/7843 devicetree support
       [not found]     ` <AANLkTinJheHYyjUUAK7guNXqepp9KJ3xk6u-4JrmAbee-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-01-27 10:58       ` Thomas Chou
       [not found]         ` <4D414FED.706-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Chou @ 2011-01-27 10:58 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	Nios2 development list,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

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.

- Thomas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: touch screen ads7846/7843 devicetree support
       [not found]         ` <4D414FED.706-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
@ 2011-01-27 12:24           ` Hennerich, Michael
       [not found]             ` <544AC56F16B56944AEC3BD4E3D591771324C105D75-gpnycfiEEVR7xzP2fcxY8GoKb0G9Rp+C@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Hennerich, Michael @ 2011-01-27 12:24 UTC (permalink / raw)
  To: Thomas Chou, Mike Frysinger
  Cc: Grant Likely,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	Nios2 development list,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

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.

What special needs do you have?

Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368; Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin, Margaret Seif

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
       [not found]             ` <544AC56F16B56944AEC3BD4E3D591771324C105D75-gpnycfiEEVR7xzP2fcxY8GoKb0G9Rp+C@public.gmane.org>
@ 2011-01-27 13:31               ` Thomas Chou
  2011-02-02 16:03               ` Grant Likely
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Chou @ 2011-01-27 13:31 UTC (permalink / raw)
  To: Hennerich, Michael
  Cc: Nios2 development list, Mike Frysinger,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

Dear Michael,

On 01/27/2011 08:24 PM, Hennerich, Michael wrote:
> 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..

Thanks for the pointer. I looked in powerpc dir and found one usage in

linux-2.6/arch/powerpc/platforms/512x/pdm360ng.c

I will try to follow it.

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
       [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>
  1 sibling, 1 reply; 9+ messages in thread
From: Grant Likely @ 2011-02-02 16:03 UTC (permalink / raw)
  To: Hennerich, Michael
  Cc: Nios2 development list, Mike Frysinger,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

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.

g.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
       [not found]                 ` <20110202160355.GE20275-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
@ 2011-02-03  0:07                   ` Thomas Chou
  2011-06-09  6:07                   ` Barry Song
  1 sibling, 0 replies; 9+ messages in thread
From: Thomas Chou @ 2011-02-03  0:07 UTC (permalink / raw)
  To: Grant Likely
  Cc: Nios2 development list, Hennerich, Michael, Mike Frysinger,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
       [not found]                 ` <20110202160355.GE20275-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
  2011-02-03  0:07                   ` Thomas Chou
@ 2011-06-09  6:07                   ` Barry Song
       [not found]                     ` <BANLkTik5BfiUeNFn-dXah86h+nhK6hU6vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Barry Song @ 2011-06-09  6:07 UTC (permalink / raw)
  To: Grant Likely
  Cc: device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	Nios2 development list,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Hennerich, Michael,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

2011/2/3 Grant Likely <grant.likely@secretlab.ca>:
> 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.

not like i2c_driver and platform_driver, it is really difficult to
find many spi client drivers using device tree fo the moment. most spi
boards still use spi_board_info to register spi client. these spi
client drivers do work well with spi host based on device tree at most
cases. the ideal spi client should be a child node of spi host in
device tree, then use of_match_table to get probed.
i am working on ads7846 as an example for our team to use device tree
in spi client drivers and will send a patch.

BTW, is ads7846 from TI? or am i wrong? why is this question posted in
ADI' maillist?

>
> g.
>
> _______________________________________________
> Uclinux-dist-devel mailing list
> Uclinux-dist-devel@blackfin.uclinux.org
> https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel
>
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uclinux-dist-devel] touch screen ads7846/7843 devicetree support
       [not found]                     ` <BANLkTik5BfiUeNFn-dXah86h+nhK6hU6vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-06-09  8:12                       ` Mike Frysinger
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Frysinger @ 2011-06-09  8:12 UTC (permalink / raw)
  To: Barry Song
  Cc: Nios2 development list, Hennerich, Michael,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	device-drivers-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
	uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b

On Thu, Jun 9, 2011 at 02:07, Barry Song wrote:
> BTW, is ads7846 from TI? or am i wrong? why is this question posted in
> ADI' maillist?

ads7846 is a TI part, but the driver supports more than just that part
-mike

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-09  8:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2011-06-09  6:07                   ` Barry Song
     [not found]                     ` <BANLkTik5BfiUeNFn-dXah86h+nhK6hU6vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-09  8:12                       ` Mike Frysinger

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.