ilitek,ili2901.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/ilitek,ili2901.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ilitek ILI2901 touchscreen controller
  7. maintainers:
  8. - Jiri Kosina <jkosina@suse.com>
  9. description:
  10. Supports the Ilitek ILI2901 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. enum:
  17. - ilitek,ili2901
  18. reg:
  19. maxItems: 1
  20. interrupts:
  21. maxItems: 1
  22. panel: true
  23. reset-gpios:
  24. maxItems: 1
  25. vcc33-supply: true
  26. vccio-supply: true
  27. required:
  28. - compatible
  29. - reg
  30. - interrupts
  31. - vcc33-supply
  32. additionalProperties: false
  33. examples:
  34. - |
  35. #include <dt-bindings/gpio/gpio.h>
  36. #include <dt-bindings/interrupt-controller/irq.h>
  37. i2c {
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. touchscreen@41 {
  41. compatible = "ilitek,ili2901";
  42. reg = <0x41>;
  43. interrupt-parent = <&tlmm>;
  44. interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
  45. reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
  46. vcc33-supply = <&pp3300_ts>;
  47. };
  48. };