linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ATMEL MXT224 Touch Controller
@ 2012-05-29 14:16 Poddar, Sourav
       [not found] ` <CAGS+omAn5_hGbbD1A=vpEOJRaaFc8v0BaDK10E+dt=ZgT4h-Bw@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Poddar, Sourav @ 2012-05-29 14:16 UTC (permalink / raw)
  To: linux-input; +Cc: Felipe Balbi

Hi,

Did anyone have tried using atmel touchscreen controller
 driver (drivers/input/touchscreen/atmel_mxt_ts.c) for atmel mxt224 chip?

~Sourav

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

* Re: ATMEL MXT224 Touch Controller
       [not found] ` <CAGS+omAn5_hGbbD1A=vpEOJRaaFc8v0BaDK10E+dt=ZgT4h-Bw@mail.gmail.com>
@ 2012-06-01 10:36   ` Poddar, Sourav
  2012-06-05 19:41     ` Nick Dyer
  0 siblings, 1 reply; 4+ messages in thread
From: Poddar, Sourav @ 2012-06-01 10:36 UTC (permalink / raw)
  To: Daniel Kurtz, Yufeng Shen; +Cc: linux-input, Felipe Balbi

Hi Daniel,

On Thu, May 31, 2012 at 12:04 AM, Daniel Kurtz <djkurtz@chromium.org> wrote:
>
>
> On Tue, May 29, 2012 at 7:16 AM, Poddar, Sourav <sourav.poddar@ti.com>
> wrote:
>>
>> Hi,
>>
>> Did anyone have tried using atmel touchscreen controller
>>  driver (drivers/input/touchscreen/atmel_mxt_ts.c) for atmel mxt224 chip?
>

>
> Yes.  It works pretty well for us.
>
Thanks for the reply.

The issue which I am facing is that there are many interrupts that comes during
the probe and it keeps coming after bootup even if I dont touch the touch panel.

One point which I want to clarify is the use of the RESET pin in the
controller. If I dont do a "RESET", the probe fails at the first i2c read/write.
I am doing this reset of the touchscreen controller in my board file
by the use of
a particular gpio. Are you also doing a RESET ?

I saw a lot of patches from you on this driver, which are not there in
mainline yet.
Are you using any local patches also?

Is it possible for you to share your touchscreen configuration
parameters as there
might be some parameters which I might be configuring wrong?

Any pointer on above point will be really helpful.

~Sourav


>>
>>
>> ~Sourav
>> --
>> 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
>
>
--
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

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

* Re: ATMEL MXT224 Touch Controller
  2012-06-01 10:36   ` Poddar, Sourav
@ 2012-06-05 19:41     ` Nick Dyer
  2012-06-05 20:47       ` Yufeng Shen
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dyer @ 2012-06-05 19:41 UTC (permalink / raw)
  To: Poddar, Sourav
  Cc: Daniel Kurtz, Yufeng Shen, linux-input, Felipe Balbi,
	Tiwari, Atul, Bowens, Alan

> The issue which I am facing is that there are many interrupts that comes
> during the probe and it keeps coming after bootup even if I dont touch
> the touch panel.

It sounds like your configuration may need tuning.

> One point which I want to clarify is the use of the RESET pin in the 
> controller. If I dont do a "RESET", the probe fails at the first i2c
> read/write. I am doing this reset of the touchscreen controller in my
> board file by the use of a particular gpio. Are you also doing a RESET

Try putting in a delay before the first read, eg 500ms. It may be that the
chip is not ready, it takes some time to settle after power on.

> I saw a lot of patches from you on this driver, which are not there in 
> mainline yet. Are you using any local patches also?

Daniel does have some other stuff that hasn't been merged yet.

You will also find some official atmel kernel updates, and some useful
utilities here:
https://github.com/atmel-maxtouch

It would be desirable to push this work upstream, I don't know of any
manufacturer which is shipping the unchanged mainline kernel, most of them
have diverged considerably.

> Is it possible for you to share your touchscreen configuration 
> parameters as there might be some parameters which I might be
> configuring wrong?
> 
> Any pointer on above point will be really helpful.

I don't know what platform you are working on, but if you contact your
Atmel sales representatives they can provide you with the protocol guide
documentation on the tuning parameters. It generally requires an NDA.

cheers
-- 
Nick Dyer
Software Engineer, ITDev Ltd
Hardware and Software Development Consultancy
Website: http://www.itdev.co.uk

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

* Re: ATMEL MXT224 Touch Controller
  2012-06-05 19:41     ` Nick Dyer
@ 2012-06-05 20:47       ` Yufeng Shen
  0 siblings, 0 replies; 4+ messages in thread
From: Yufeng Shen @ 2012-06-05 20:47 UTC (permalink / raw)
  To: Poddar, Sourav
  Cc: Daniel Kurtz, linux-input, Felipe Balbi, Tiwari, Atul,
	Bowens, Alan, Nick Dyer

On Tue, Jun 5, 2012 at 3:41 PM, Nick Dyer <nick.dyer@itdev.co.uk> wrote:
>> The issue which I am facing is that there are many interrupts that comes
>> during the probe and it keeps coming after bootup even if I dont touch
>> the touch panel.
>
> It sounds like your configuration may need tuning.
>

Your platform may have too much interfering noise that causes false touch
reports.

>> One point which I want to clarify is the use of the RESET pin in the
>> controller. If I dont do a "RESET", the probe fails at the first i2c
>> read/write. I am doing this reset of the touchscreen controller in my
>> board file by the use of a particular gpio. Are you also doing a RESET
>
> Try putting in a delay before the first read, eg 500ms. It may be that the
> chip is not ready, it takes some time to settle after power on.
>
>> I saw a lot of patches from you on this driver, which are not there in
>> mainline yet. Are you using any local patches also?
>
> Daniel does have some other stuff that hasn't been merged yet.
>
> You will also find some official atmel kernel updates, and some useful
> utilities here:
> https://github.com/atmel-maxtouch
>
> It would be desirable to push this work upstream, I don't know of any
> manufacturer which is shipping the unchanged mainline kernel, most of them
> have diverged considerably.
>

Chromium port of the atmel_mxt_ts can be found here

http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel.git;a=blob;f=drivers/input/touchscreen/atmel_mxt_ts.c;h=f11b3c46f82de8fea5a82674ef14e51801e8e3f5;hb=refs/heads/chromeos-3.4


>> Is it possible for you to share your touchscreen configuration
>> parameters as there might be some parameters which I might be
>> configuring wrong?
>>

Open source sample of 224e/s configuration data can be found here
http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel.git;a=blob;f=drivers/platform/x86/chromeos_laptop.c;h=8cec113768a46313b612c0fd0155ddd2bdd389fb;hb=refs/heads/chromeos-3.4

>> Any pointer on above point will be really helpful.
>
> I don't know what platform you are working on, but if you contact your
> Atmel sales representatives they can provide you with the protocol guide
> documentation on the tuning parameters. It generally requires an NDA.
>
> cheers
> --
> Nick Dyer
> Software Engineer, ITDev Ltd
> Hardware and Software Development Consultancy
> Website: http://www.itdev.co.uk

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

end of thread, other threads:[~2012-06-05 20:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 14:16 ATMEL MXT224 Touch Controller Poddar, Sourav
     [not found] ` <CAGS+omAn5_hGbbD1A=vpEOJRaaFc8v0BaDK10E+dt=ZgT4h-Bw@mail.gmail.com>
2012-06-01 10:36   ` Poddar, Sourav
2012-06-05 19:41     ` Nick Dyer
2012-06-05 20:47       ` Yufeng Shen

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).