elan,ekth3000.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/elan,ekth3000.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Elantech I2C Touchpad
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. allOf:
  10. - $ref: touchscreen/touchscreen.yaml#
  11. properties:
  12. compatible:
  13. const: elan,ekth3000
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. wakeup-source:
  19. type: boolean
  20. description: touchpad can be used as a wakeup source
  21. vcc-supply:
  22. description: a phandle for the regulator supplying 3.3V power
  23. elan,trackpoint:
  24. type: boolean
  25. description: touchpad can support a trackpoint
  26. elan,clickpad:
  27. type: boolean
  28. description: touchpad is a clickpad (the entire surface is a button)
  29. elan,middle-button:
  30. type: boolean
  31. description: touchpad has a physical middle button
  32. elan,x_traces:
  33. $ref: /schemas/types.yaml#/definitions/uint32
  34. description: number of antennas on the x axis
  35. elan,y_traces:
  36. $ref: /schemas/types.yaml#/definitions/uint32
  37. description: number of antennas on the y axis
  38. touchscreen-size-x: true
  39. touchscreen-size-y: true
  40. touchscreen-x-mm: true
  41. touchscreen-y-mm: true
  42. required:
  43. - compatible
  44. - reg
  45. - interrupts
  46. additionalProperties: false
  47. examples:
  48. - |
  49. #include <dt-bindings/interrupt-controller/irq.h>
  50. i2c {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. touchpad@15 {
  54. compatible = "elan,ekth3000";
  55. reg = <0x15>;
  56. interrupt-parent = <&gpio4>;
  57. interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
  58. wakeup-source;
  59. };
  60. };