mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
7241443f67
Add the necessary code to create the needed platformdata from devicetree informations. The interrupt mode of the chip is not set via devicetree, as it is not a property of the hardware but instead only a preferred type of operation. This should probably be made settable via configfs in the future. The option set as default is the mode the datasheet mentions as default. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
31 lines
667 B
Plaintext
31 lines
667 B
Plaintext
* AUO in-cell touchscreen controller using Pixcir sensors
|
|
|
|
Required properties:
|
|
- compatible: must be "auo,auo_pixcir_ts"
|
|
- reg: I2C address of the chip
|
|
- interrupts: interrupt to which the chip is connected
|
|
- gpios: gpios the chip is connected to
|
|
first one is the interrupt gpio and second one the reset gpio
|
|
- x-size: horizontal resolution of touchscreen
|
|
- y-size: vertical resolution of touchscreen
|
|
|
|
Example:
|
|
|
|
i2c@00000000 {
|
|
/* ... */
|
|
|
|
auo_pixcir_ts@5c {
|
|
compatible = "auo,auo_pixcir_ts";
|
|
reg = <0x5c>;
|
|
interrupts = <2 0>;
|
|
|
|
gpios = <&gpf 2 0 2>, /* INT */
|
|
<&gpf 5 1 0>; /* RST */
|
|
|
|
x-size = <800>;
|
|
y-size = <600>;
|
|
};
|
|
|
|
/* ... */
|
|
};
|