atmel,captouch.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/atmel,captouch.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Atmel capacitive touch device
  7. maintainers:
  8. - Dharma balasubiramani <dharma.b@microchip.com>
  9. description:
  10. Atmel capacitive touch device, typically an Atmel touch sensor connected to
  11. AtmegaXX MCU running firmware based on Qtouch library.
  12. allOf:
  13. - $ref: input.yaml#
  14. properties:
  15. compatible:
  16. const: atmel,captouch
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. linux,keycodes:
  22. minItems: 1
  23. maxItems: 8
  24. required:
  25. - compatible
  26. - reg
  27. - interrupts
  28. - linux,keycodes
  29. unevaluatedProperties: false
  30. examples:
  31. - |
  32. #include <dt-bindings/interrupt-controller/irq.h>
  33. #include <dt-bindings/input/linux-event-codes.h>
  34. i2c {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. touch@51 {
  38. compatible = "atmel,captouch";
  39. reg = <0x51>;
  40. interrupt-parent = <&tlmm>;
  41. interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
  42. linux,keycodes = <BTN_0>, <BTN_1>,
  43. <BTN_2>, <BTN_3>,
  44. <BTN_4>, <BTN_5>,
  45. <BTN_6>, <BTN_7>;
  46. autorepeat;
  47. };
  48. };