iio: adc: add ADC driver for the TI TSC2046 controller
authorOleksij Rempel <o.rempel@pengutronix.de>
Wed, 28 Apr 2021 07:32:08 +0000 (09:32 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:11 +0000 (13:49 +0100)
commit9374e8f5a38defe90bc65b2decf317c1c62d91dd
treeaf63cf7638d7185d6d5df596e0a9547834e4bab1
parent03f2193a6bea24c8cd280433f783b417cda4c2e5
iio: adc: add ADC driver for the TI TSC2046 controller

Basically the TI TSC2046 touchscreen controller is 8 channel ADC optimized for
the touchscreen use case. By implementing it as an IIO ADC device, we can
make use of resistive-adc-touch and iio-hwmon drivers.

Polled readings are currently not implemented to keep this patch small, so
iio-hwmon will not work out of the box for now.

So far, this driver was tested with a custom version of resistive-adc-touch driver,
since it needs to be extended to make use of Z1 and Z2 channels. The X/Y
are working without additional changes.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210428073208.19570-4-o.rempel@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ti-tsc2046.c [new file with mode: 0644]