xref: /freebsd/sys/contrib/device-tree/Bindings/input/atmel,maxtouch.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotAtmel maXTouch touchscreen/touchpad
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible:
5*c66ec88fSEmmanuel Vadot    atmel,maxtouch
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot    The following compatibles have been used in various products but are
8*c66ec88fSEmmanuel Vadot    deprecated:
9*c66ec88fSEmmanuel Vadot	atmel,qt602240_ts
10*c66ec88fSEmmanuel Vadot	atmel,atmel_mxt_ts
11*c66ec88fSEmmanuel Vadot	atmel,atmel_mxt_tp
12*c66ec88fSEmmanuel Vadot	atmel,mXT224
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot- reg: The I2C address of the device
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot- interrupts: The sink for the touchpad's IRQ output
17*c66ec88fSEmmanuel Vadot    See ../interrupt-controller/interrupts.txt
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotOptional properties for main touchpad device:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot- linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages
22*c66ec88fSEmmanuel Vadot    on GPIO bit changes. An array of up to 8 entries can be provided
23*c66ec88fSEmmanuel Vadot    indicating the Linux keycode mapped to each bit of the status byte,
24*c66ec88fSEmmanuel Vadot    starting at the LSB. Linux keycodes are defined in
25*c66ec88fSEmmanuel Vadot    <dt-bindings/input/input.h>.
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot    Note: the numbering of the GPIOs and the bit they start at varies between
28*c66ec88fSEmmanuel Vadot    maXTouch devices. You must either refer to the documentation, or
29*c66ec88fSEmmanuel Vadot    experiment to determine which bit corresponds to which input. Use
30*c66ec88fSEmmanuel Vadot    KEY_RESERVED for unused padding values.
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel VadotExample:
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	touch@4b {
37*c66ec88fSEmmanuel Vadot		compatible = "atmel,maxtouch";
38*c66ec88fSEmmanuel Vadot		reg = <0x4b>;
39*c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
40*c66ec88fSEmmanuel Vadot		interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
41*c66ec88fSEmmanuel Vadot	};
42