mirror-linux/Documentation/devicetree/bindings/input/touchscreen
Dirk Behme 62f4666968 Input: zforce - make the interrupt GPIO optional
Add support for hardware which uses an I2C Serializer / Deserializer
(SerDes) to communicate with the zFroce touch driver. In this case the
SerDes will be configured as an interrupt controller and the zForce driver
will have no access to poll the GPIO line.

To support this, we add two dedicated new GPIOs in the device tree:
reset-gpios and irq-gpios, with the irq-gpios being optional.

To not break the existing device trees, the index based 'gpios' entries
are still supported, but marked as deprecated.

With this, if the interrupt GPIO is available, either via the old or new
device tree style, the while loop will read and handle the packets as long
as the GPIO indicates that the interrupt is asserted (existing, unchanged
driver behavior).

If the interrupt GPIO isn't available, i.e. not configured via the new
device tree style, we are falling back to one read per ISR invocation
(new behavior to support the SerDes).

Note that the gpiod functions help to handle the optional GPIO:
devm_gpiod_get_index_optional() will return NULL in case the interrupt
GPIO isn't available. And gpiod_get_value_cansleep() does cover this, too,
by returning 0 in this case.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@bq.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2015-08-03 14:10:10 -07:00
..
auo_pixcir_ts.txt Input: auo_pixcir_ts - add devicetree support 2013-02-24 19:10:18 -08:00
brcm,iproc-touchscreen.txt Input: add Broadcom iProc touchscreen driver 2015-03-23 11:04:48 -07:00
bu21013.txt Documentation: Detail permitted DT properties for the BU21013 Touch Screen 2012-11-01 13:02:13 +01:00
chipone_icn8318.txt Input: add support for ChipOne icn8318 based touchscreens 2015-03-24 11:27:52 -07:00
edt-ft5x06.txt Input: edt-ft5x06 - add DT support 2014-03-28 09:33:03 -07:00
egalax-ts.txt Input: egalax-ts - fix typo and improve text 2013-08-29 09:34:44 -07:00
goodix.txt Input: goodix - add device tree support 2015-03-06 17:18:17 -08:00
lpc32xx-tsc.txt
mms114.txt Input: mms114 - add device tree bindings 2012-10-11 01:29:36 -07:00
pixcir_i2c_ts.txt Input: pixcir_i2c_ts - add RESET gpio 2015-07-11 17:28:27 -07:00
sitronix-st1232.txt Input: st1232 - add reset pin handling 2013-04-15 10:00:44 -07:00
stmpe.txt Input: stmpe-ts - add DT support for stmpe touchscreen 2012-11-22 23:47:09 -08:00
sun4i.txt Input: sun4i-ts - allow controlling filter and sensitivity via DT 2015-03-23 09:11:11 -07:00
sx8654.txt Input: add support for Semtech SX8654 I2C touchscreen controller 2015-03-06 17:18:17 -08:00
ti-tsc-adc.txt iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT parameters 2015-05-13 18:37:22 +01:00
touchscreen.txt Input: touchscreen DT binding - add touchscreen-swapped-x-y property 2015-03-24 11:27:31 -07:00
tsc2005.txt ARM: dts: Fix n900 dts file to work around 4.1 touchscreen regression on n900 2015-05-29 13:19:02 -07:00
tsc2007.txt Input: tsc2007 - add device tree support. 2013-11-25 18:27:53 -08:00
zforce_ts.txt Input: zforce - make the interrupt GPIO optional 2015-08-03 14:10:10 -07:00