xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/elan_i2c.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunElantech I2C Touchpad
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must be "elan,ekth3000".
5*4882a593Smuzhiyun- reg: I2C address of the chip.
6*4882a593Smuzhiyun- interrupts: interrupt to which the chip is connected (see interrupt
7*4882a593Smuzhiyun  binding[0]).
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunOptional properties:
10*4882a593Smuzhiyun- wakeup-source: touchpad can be used as a wakeup source.
11*4882a593Smuzhiyun- pinctrl-names: should be "default" (see pinctrl binding [1]).
12*4882a593Smuzhiyun- pinctrl-0: a phandle pointing to the pin settings for the device (see
13*4882a593Smuzhiyun  pinctrl binding [1]).
14*4882a593Smuzhiyun- vcc-supply: a phandle for the regulator supplying 3.3V power.
15*4882a593Smuzhiyun- elan,trackpoint: touchpad can support a trackpoint (boolean)
16*4882a593Smuzhiyun- elan,clickpad: touchpad is a clickpad (the entire surface is a button)
17*4882a593Smuzhiyun- elan,middle-button: touchpad has a physical middle button
18*4882a593Smuzhiyun- elan,x_traces: number of antennas on the x axis
19*4882a593Smuzhiyun- elan,y_traces: number of antennas on the y axis
20*4882a593Smuzhiyun- some generic touchscreen properties [2]:
21*4882a593Smuzhiyun  * touchscreen-size-x
22*4882a593Smuzhiyun  * touchscreen-size-y
23*4882a593Smuzhiyun  * touchscreen-x-mm
24*4882a593Smuzhiyun  * touchscreen-y-mm
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
28*4882a593Smuzhiyun[1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
29*4882a593Smuzhiyun[2]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunExample:
32*4882a593Smuzhiyun	&i2c1 {
33*4882a593Smuzhiyun		/* ... */
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun		touchpad@15 {
36*4882a593Smuzhiyun			compatible = "elan,ekth3000";
37*4882a593Smuzhiyun			reg = <0x15>;
38*4882a593Smuzhiyun			interrupt-parent = <&gpio4>;
39*4882a593Smuzhiyun			interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
40*4882a593Smuzhiyun			wakeup-source;
41*4882a593Smuzhiyun		};
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun		/* ... */
44*4882a593Smuzhiyun	};
45