elan,elants_i2c.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/elan,elants_i2c.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Elantech I2C Touchscreen
  7. maintainers:
  8. - David Heidelberg <david@ixit.cz>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - enum:
  15. - elan,ektf3624
  16. - elan,ekth3500
  17. - items:
  18. - const: elan,ekth3915
  19. - const: elan,ekth3500
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. wakeup-source:
  25. type: boolean
  26. description: touchscreen can be used as a wakeup source.
  27. reset-gpios:
  28. maxItems: 1
  29. description: reset gpio the chip is connected to.
  30. vcc33-supply:
  31. description: a phandle for the regulator supplying 3.3V power.
  32. vccio-supply:
  33. description: a phandle for the regulator supplying IO power.
  34. touchscreen-inverted-x: true
  35. touchscreen-inverted-y: true
  36. touchscreen-size-x: true
  37. touchscreen-size-y: true
  38. touchscreen-swapped-x-y: true
  39. additionalProperties: false
  40. required:
  41. - compatible
  42. - reg
  43. - interrupts
  44. examples:
  45. - |
  46. #include <dt-bindings/interrupt-controller/irq.h>
  47. i2c {
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. touchscreen@10 {
  51. compatible = "elan,ekth3500";
  52. reg = <0x10>;
  53. interrupt-parent = <&gpio4>;
  54. interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
  55. wakeup-source;
  56. };
  57. };