xref: /freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/mms114.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* MELFAS MMS114/MMS152/MMS345L touchscreen controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: should be one of:
5*c66ec88fSEmmanuel Vadot	- "melfas,mms114"
6*c66ec88fSEmmanuel Vadot	- "melfas,mms152"
7*c66ec88fSEmmanuel Vadot	- "melfas,mms345l"
8*c66ec88fSEmmanuel Vadot- reg: I2C address of the chip
9*c66ec88fSEmmanuel Vadot- interrupts: interrupt to which the chip is connected
10*c66ec88fSEmmanuel Vadot- touchscreen-size-x: See [1]
11*c66ec88fSEmmanuel Vadot- touchscreen-size-y: See [1]
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadot- touchscreen-fuzz-x: See [1]
15*c66ec88fSEmmanuel Vadot- touchscreen-fuzz-y: See [1]
16*c66ec88fSEmmanuel Vadot- touchscreen-fuzz-pressure: See [1]
17*c66ec88fSEmmanuel Vadot- touchscreen-inverted-x: See [1]
18*c66ec88fSEmmanuel Vadot- touchscreen-inverted-y: See [1]
19*c66ec88fSEmmanuel Vadot- touchscreen-swapped-x-y: See [1]
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot[1]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot	i2c@00000000 {
26*c66ec88fSEmmanuel Vadot		/* ... */
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot		touchscreen@48 {
29*c66ec88fSEmmanuel Vadot			compatible = "melfas,mms114";
30*c66ec88fSEmmanuel Vadot			reg = <0x48>;
31*c66ec88fSEmmanuel Vadot			interrupts = <39 0>;
32*c66ec88fSEmmanuel Vadot			touchscreen-size-x = <720>;
33*c66ec88fSEmmanuel Vadot			touchscreen-size-y = <1280>;
34*c66ec88fSEmmanuel Vadot			touchscreen-fuzz-x = <10>;
35*c66ec88fSEmmanuel Vadot			touchscreen-fuzz-y = <10>;
36*c66ec88fSEmmanuel Vadot			touchscreen-fuzz-pressure = <10>;
37*c66ec88fSEmmanuel Vadot			touchscreen-inverted-x;
38*c66ec88fSEmmanuel Vadot			touchscreen-inverted-y;
39*c66ec88fSEmmanuel Vadot		};
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot		/* ... */
42*c66ec88fSEmmanuel Vadot	};
43