Input: ad7879 - add device tree support
authorStefan Agner <stefan@agner.ch>
Tue, 8 Mar 2016 18:35:24 +0000 (10:35 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Mar 2016 18:51:18 +0000 (10:51 -0800)
commitfa6e3ca274429b66e12d06abc5a6c013cef66471
treeafdbbbab460653884caceea5088638571daa5c41
parent5f2940c4a544ae9040d0feff6da06a994cc201ff
Input: ad7879 - add device tree support

Add device tree support for the I2C and SPI variant of AD7879(-1).
This allows to specify the touchscreen controller as a I2C client
node or SPI slave device. Most of the options available in platform
data are also available as device tree properties, the only exception
being GPIO capabilities, which can not be activated through device
tree currently.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/ad7879.txt [new file with mode: 0644]
drivers/input/touchscreen/ad7879-i2c.c
drivers/input/touchscreen/ad7879-spi.c
drivers/input/touchscreen/ad7879.c