cypress,cyapa.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Cypress I2C Touchpad
  2. Required properties:
  3. - compatible: must be "cypress,cyapa".
  4. - reg: I2C address of the chip.
  5. - interrupts: interrupt to which the chip is connected (see interrupt
  6. binding[0]).
  7. Optional properties:
  8. - wakeup-source: touchpad can be used as a wakeup source.
  9. - pinctrl-names: should be "default" (see pinctrl binding [1]).
  10. - pinctrl-0: a phandle pointing to the pin settings for the device (see
  11. pinctrl binding [1]).
  12. - vcc-supply: a phandle for the regulator supplying 3.3V power.
  13. [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  14. [1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
  15. Example:
  16. &i2c0 {
  17. /* ... */
  18. /* Cypress Gen3 touchpad */
  19. touchpad@67 {
  20. compatible = "cypress,cyapa";
  21. reg = <0x67>;
  22. interrupt-parent = <&gpio>;
  23. interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */
  24. wakeup-source;
  25. };
  26. /* Cypress Gen5 and later touchpad */
  27. touchpad@24 {
  28. compatible = "cypress,cyapa";
  29. reg = <0x24>;
  30. interrupt-parent = <&gpio>;
  31. interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */
  32. wakeup-source;
  33. };
  34. /* ... */
  35. };