goodix,gt7375p.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Goodix GT7375P touchscreen
  7. maintainers:
  8. - Douglas Anderson <dianders@chromium.org>
  9. description:
  10. Supports the Goodix GT7375P touchscreen.
  11. This touchscreen uses the i2c-hid protocol but has some non-standard
  12. power sequencing required.
  13. allOf:
  14. - $ref: /schemas/input/touchscreen/touchscreen.yaml#
  15. properties:
  16. compatible:
  17. oneOf:
  18. - const: goodix,gt7375p
  19. - items:
  20. - const: goodix,gt7986u
  21. - const: goodix,gt7375p
  22. reg:
  23. enum:
  24. - 0x5d
  25. - 0x14
  26. interrupts:
  27. maxItems: 1
  28. panel: true
  29. reset-gpios:
  30. true
  31. vdd-supply:
  32. description: The 3.3V supply to the touchscreen.
  33. mainboard-vddio-supply:
  34. description:
  35. The supply on the main board needed to power up IO signals going
  36. to the touchscreen. This supply need not go to the touchscreen
  37. itself as long as it allows the main board to make signals compatible
  38. with what the touchscreen is expecting for its IO rails.
  39. goodix,no-reset-during-suspend:
  40. description:
  41. Set this to true to enforce the driver to not assert the reset GPIO
  42. during suspend.
  43. Due to potential touchscreen hardware flaw, back-powering could happen in
  44. suspend if the power supply is on and with active-low reset GPIO asserted.
  45. This property is used to avoid the back-powering issue.
  46. type: boolean
  47. required:
  48. - compatible
  49. - reg
  50. - interrupts
  51. - reset-gpios
  52. - vdd-supply
  53. additionalProperties: false
  54. examples:
  55. - |
  56. #include <dt-bindings/clock/qcom,rpmh.h>
  57. #include <dt-bindings/gpio/gpio.h>
  58. #include <dt-bindings/interrupt-controller/irq.h>
  59. i2c {
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. ap_ts: touchscreen@5d {
  63. compatible = "goodix,gt7375p";
  64. reg = <0x5d>;
  65. interrupt-parent = <&tlmm>;
  66. interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
  67. reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
  68. vdd-supply = <&pp3300_ts>;
  69. };
  70. };