ilitek_ts_i2c.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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/ilitek_ts_i2c.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ilitek I2C Touchscreen Controller
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - ilitek,ili210x
  15. - ilitek,ili2117
  16. - ilitek,ili2120
  17. - ilitek,ili2130
  18. - ilitek,ili2131
  19. - ilitek,ili2132
  20. - ilitek,ili2316
  21. - ilitek,ili2322
  22. - ilitek,ili2323
  23. - ilitek,ili2326
  24. - ilitek,ili251x
  25. - ilitek,ili2520
  26. - ilitek,ili2521
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. maxItems: 1
  31. reset-gpios:
  32. maxItems: 1
  33. wakeup-source:
  34. type: boolean
  35. description: touchscreen can be used as a wakeup source.
  36. touchscreen-size-x: true
  37. touchscreen-size-y: true
  38. touchscreen-inverted-x: true
  39. touchscreen-inverted-y: true
  40. touchscreen-swapped-x-y: true
  41. additionalProperties: false
  42. required:
  43. - compatible
  44. - reg
  45. - interrupts
  46. examples:
  47. - |
  48. #include <dt-bindings/interrupt-controller/irq.h>
  49. #include <dt-bindings/gpio/gpio.h>
  50. i2c {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. touchscreen@41 {
  54. compatible = "ilitek,ili2520";
  55. reg = <0x41>;
  56. interrupt-parent = <&gpio1>;
  57. interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
  58. reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  59. touchscreen-inverted-y;
  60. wakeup-source;
  61. };
  62. };