OSDN Git Service

iio: adc: at91-sama5d2_adc: add support for position and pressure channels
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 22 May 2018 07:52:35 +0000 (10:52 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Jun 2018 12:23:03 +0000 (13:23 +0100)
commit23ec2774f1cc168b1f32a2e0ed2709cb473bb94e
tree6579e3055bff0f616acab37b4a683975ad6c6c80
parent1b5bd7d25c7826bb2cc56ff4e9e41a4bdfd8f7a8
iio: adc: at91-sama5d2_adc: add support for position and pressure channels

This implements the support for position and pressure for the included
touchscreen support in the SAMA5D2 SOC ADC block.
Two position channels are added and one for pressure.
They can be read in raw format, or through a buffer.
A normal use case is for a consumer driver to register a callback buffer
for these channels.
When the touchscreen channels are in the active scan mask,
the driver will start the touchscreen sampling and push the data to the
buffer.

Some parts of this patch are based on initial original work by
Mohamed Jamsheeth Hajanajubudeen and Bandaru Venkateswara Swamy

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c