All of lore.kernel.org
 help / color / mirror / Atom feed
* Guidelines for ADC resistive touchscreen
@ 2017-06-26 10:05 Eugen Hristev
  2017-07-01 18:01 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Eugen Hristev @ 2017-06-26 10:05 UTC (permalink / raw)
  To: jic23, linux-iio; +Cc: nicolas.ferre, ludovic.desroches

Hello Jonathan,

I want to kindly ask for some advice regarding the support for our
resistive touchscreen over ADC for SAMA5D2 SoC.

The ADC block supports both classic ADC and can use 4/5 channels
for a connected resistive touchscreen measurements.
A MFD driver works ok, but I was considering doing it a little
bit better (or different, that is).

One idea that comes to my mind is to change the channel exposure
for the ADC towards the subsystem and add distance or another type of
channel (perhaps a x-y mod ?) and pressure channels, and then report
events on those channels using the event system from the iio.

This way, the touchscreen input driver would be minimal and register
to the events and report them to the input subsystem (The ADC
driver would handle the register settings, continuous trigger start,
touchscreen IRQ, retrieving the data from the touch, and then report
them as events).

This can also include exposing the continuous trigger for touch sampling
and the channels as digital values and let the touchscreen driver
register them as a consumer for the trigger.

Or you think a MFD driver is still the best idea, and divide the
register settings between the two subdrivers ? (and have the common
grounds like regulators in the MFD driver)

I see some other drivers have an input device registered directly
from the iio driver. Is that still applicable ?

Any insight is appreciated and thanks,
Eugen

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

end of thread, other threads:[~2017-07-01 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-26 10:05 Guidelines for ADC resistive touchscreen Eugen Hristev
2017-07-01 18:01 ` Jonathan Cameron

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.