goodix.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/goodix.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Goodix GT9xx series touchscreen controller
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - goodix,gt1151
  15. - goodix,gt1158
  16. - goodix,gt5663
  17. - goodix,gt5688
  18. - goodix,gt911
  19. - goodix,gt9110
  20. - goodix,gt912
  21. - goodix,gt9147
  22. - goodix,gt917s
  23. - goodix,gt927
  24. - goodix,gt9271
  25. - goodix,gt928
  26. - goodix,gt9286
  27. - goodix,gt967
  28. reg:
  29. enum: [ 0x5d, 0x14 ]
  30. interrupts:
  31. maxItems: 1
  32. irq-gpios:
  33. description: GPIO pin used for IRQ input. Additionally, this line is
  34. sampled by the device on reset deassertion to select the I2C client
  35. address, thus it can be driven by the host during the reset sequence.
  36. maxItems: 1
  37. reset-gpios:
  38. maxItems: 1
  39. AVDD28-supply:
  40. description: Analog power supply regulator on AVDD28 pin
  41. VDDIO-supply:
  42. description: GPIO power supply regulator on VDDIO pin
  43. touchscreen-inverted-x: true
  44. touchscreen-inverted-y: true
  45. touchscreen-size-x: true
  46. touchscreen-size-y: true
  47. touchscreen-swapped-x-y: true
  48. additionalProperties: false
  49. required:
  50. - compatible
  51. - reg
  52. - interrupts
  53. examples:
  54. - |
  55. i2c {
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. touchscreen@5d {
  59. compatible = "goodix,gt928";
  60. reg = <0x5d>;
  61. interrupt-parent = <&gpio>;
  62. interrupts = <0 0>;
  63. irq-gpios = <&gpio1 0 0>;
  64. reset-gpios = <&gpio1 1 0>;
  65. };
  66. };
  67. ...