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