elan,ekth6915.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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,ekth6915.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Elan eKTH6915 touchscreen controller
  7. maintainers:
  8. - Douglas Anderson <dianders@chromium.org>
  9. description:
  10. Supports the Elan eKTH6915 touchscreen controller.
  11. This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
  12. allOf:
  13. - $ref: /schemas/input/touchscreen/touchscreen.yaml#
  14. properties:
  15. compatible:
  16. oneOf:
  17. - items:
  18. - enum:
  19. - elan,ekth5015m
  20. - const: elan,ekth6915
  21. - enum:
  22. - elan,ekth6915
  23. - elan,ekth6a12nay
  24. reg:
  25. const: 0x10
  26. interrupts:
  27. maxItems: 1
  28. panel: true
  29. reset-gpios:
  30. description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
  31. no-reset-on-power-off:
  32. type: boolean
  33. description:
  34. Reset line is wired so that it can (and should) be left deasserted when
  35. the power supply is off.
  36. vcc33-supply:
  37. description: The 3.3V supply to the touchscreen.
  38. vccio-supply:
  39. description:
  40. The IO supply to the touchscreen. Need not be specified if this is the
  41. same as the 3.3V supply.
  42. required:
  43. - compatible
  44. - reg
  45. - interrupts
  46. - vcc33-supply
  47. additionalProperties: false
  48. examples:
  49. - |
  50. #include <dt-bindings/gpio/gpio.h>
  51. #include <dt-bindings/interrupt-controller/irq.h>
  52. i2c {
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. touchscreen@10 {
  56. compatible = "elan,ekth5015m", "elan,ekth6915";
  57. reg = <0x10>;
  58. interrupt-parent = <&tlmm>;
  59. interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
  60. reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
  61. vcc33-supply = <&pp3300_ts>;
  62. };
  63. };