cypress,cyapa.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Cypress I2C Touchpad
  2. Required properties:
  3. - compatible: must be "cypress,cyapa".
  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: 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. [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  16. [1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
  17. Example:
  18. &i2c0 {
  19. /* ... */
  20. /* Cypress Gen3 touchpad */
  21. touchpad@67 {
  22. compatible = "cypress,cyapa";
  23. reg = <0x67>;
  24. interrupt-parent = <&gpio>;
  25. interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */
  26. wakeup-source;
  27. };
  28. /* Cypress Gen5 and later touchpad */
  29. touchpad@24 {
  30. compatible = "cypress,cyapa";
  31. reg = <0x24>;
  32. interrupt-parent = <&gpio>;
  33. interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */
  34. wakeup-source;
  35. };
  36. /* ... */
  37. };