iio: at91: introduce touch screen support in iio adc driver
authorJosh Wu <josh.wu@atmel.com>
Tue, 8 Oct 2013 03:48:00 +0000 (04:48 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 17 Oct 2013 22:57:10 +0000 (23:57 +0100)
commitc8b11de0404d318c4a67bf6b9066663b9d93786c
tree9b16572470ea64b946b12ce7fa2ada6cf095fab3
parent094509b1d1cac8b39097dfef36ed1bba70c53d96
iio: at91: introduce touch screen support in iio adc driver

AT91 ADC hardware integrate touch screen support. So this patch add touch
screen support for at91 adc iio driver.
To enable touch screen support in adc, you need to add the dt parameters:
  1. which type of touch are used? (4 or 5 wires), sample period time.
  2. correct pressure detect threshold value.

In the meantime, since touch screen will use a interal period trigger of adc,
so it is conflict to other hardware triggers. Driver will disable the hardware
trigger support if touch screen is enabled.

This driver has been tested in AT91SAM9X5-EK and SAMA5D3x-EK.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: devicetree@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/arm/atmel-adc.txt
arch/arm/mach-at91/include/mach/at91_adc.h
drivers/iio/adc/at91_adc.c