xref: /freebsd-src/sys/contrib/device-tree/Bindings/input/touchscreen/eeti.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBindings for EETI touchscreen controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible:	should be "eeti,exc3000-i2c"
5*c66ec88fSEmmanuel Vadot- reg:		I2C address of the chip. Should be set to <0xa>
6*c66ec88fSEmmanuel Vadot- interrupts:	interrupt to which the chip is connected
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotOptional properties:
9*c66ec88fSEmmanuel Vadot- attn-gpios:	A handle to a GPIO to check whether interrupt is still
10*c66ec88fSEmmanuel Vadot		latched. This is necessary for platforms that lack
11*c66ec88fSEmmanuel Vadot		support for level-triggered IRQs.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotThe following optional properties described in touchscreen.txt are
14*c66ec88fSEmmanuel Vadotalso supported:
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot- touchscreen-inverted-x
17*c66ec88fSEmmanuel Vadot- touchscreen-inverted-y
18*c66ec88fSEmmanuel Vadot- touchscreen-swapped-x-y
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample:
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadoti2c-master {
23*c66ec88fSEmmanuel Vadot	touchscreen@a {
24*c66ec88fSEmmanuel Vadot		compatible = "eeti,exc3000-i2c";
25*c66ec88fSEmmanuel Vadot		reg = <0xa>;
26*c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
27*c66ec88fSEmmanuel Vadot		interrupts = <123 IRQ_TYPE_EDGE_RISING>;
28*c66ec88fSEmmanuel Vadot		attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>;
29*c66ec88fSEmmanuel Vadot	};
30*c66ec88fSEmmanuel Vadot};
31