elants_i2c.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Elantech I2C Touchscreen
  2. Required properties:
  3. - compatible: must be "elan,ekth3500".
  4. - reg: I2C address of the chip.
  5. - interrupt-parent: a phandle for the interrupt controller (see interrupt
  6. binding[0]).
  7. - interrupts: interrupt to which the chip is connected (see interrupt
  8. binding[0]).
  9. Optional properties:
  10. - wakeup-source: touchscreen 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. - reset-gpios: reset gpio the chip is connected to.
  15. - vcc33-supply: a phandle for the regulator supplying 3.3V power.
  16. - vccio-supply: a phandle for the regulator supplying IO power.
  17. [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  18. [1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
  19. Example:
  20. &i2c1 {
  21. /* ... */
  22. touchscreen@10 {
  23. compatible = "elan,ekth3500";
  24. reg = <0x10>;
  25. interrupt-parent = <&gpio4>;
  26. interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
  27. wakeup-source;
  28. };
  29. /* ... */
  30. };