atmel,captouch.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Device tree bindings for Atmel capacitive touch device, typically
  2. an Atmel touch sensor connected to AtmegaXX MCU running firmware
  3. based on Qtouch library.
  4. The node for this device must be a child of a I2C controller node, as the
  5. device communicates via I2C.
  6. Required properties:
  7. compatible: Must be "atmel,captouch".
  8. reg: The I2C slave address of the device.
  9. interrupts: Property describing the interrupt line the device
  10. is connected to. The device only has one interrupt
  11. source.
  12. linux,keycodes: Specifies an array of numeric keycode values to
  13. be used for reporting button presses. The array can
  14. contain up to 8 entries.
  15. Optional properties:
  16. autorepeat: Enables the Linux input system's autorepeat
  17. feature on the input device.
  18. Example:
  19. atmel-captouch@51 {
  20. compatible = "atmel,captouch";
  21. reg = <0x51>;
  22. interrupt-parent = <&tlmm>;
  23. interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
  24. linux,keycodes = <BTN_0>, <BTN_1>,
  25. <BTN_2>, <BTN_3>,
  26. <BTN_4>, <BTN_5>,
  27. <BTN_6>, <BTN_7>;
  28. autorepeat;
  29. };