goodix.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Device tree bindings for Goodix GT9xx series touchscreen controller
  2. Required properties:
  3. - compatible : Should be "goodix,gt911"
  4. or "goodix,gt9110"
  5. or "goodix,gt912"
  6. or "goodix,gt927"
  7. or "goodix,gt9271"
  8. or "goodix,gt928"
  9. or "goodix,gt967"
  10. - reg : I2C address of the chip. Should be 0x5d or 0x14
  11. - interrupt-parent : Interrupt controller to which the chip is connected
  12. - interrupts : Interrupt to which the chip is connected
  13. Optional properties:
  14. - irq-gpios : GPIO pin used for IRQ. The driver uses the
  15. interrupt gpio pin as output to reset the device.
  16. - reset-gpios : GPIO pin used for reset
  17. - touchscreen-inverted-x : X axis is inverted (boolean)
  18. - touchscreen-inverted-y : Y axis is inverted (boolean)
  19. - touchscreen-swapped-x-y : X and Y axis are swapped (boolean)
  20. (swapping is done after inverting the axis)
  21. Example:
  22. i2c@00000000 {
  23. /* ... */
  24. gt928@5d {
  25. compatible = "goodix,gt928";
  26. reg = <0x5d>;
  27. interrupt-parent = <&gpio>;
  28. interrupts = <0 0>;
  29. irq-gpios = <&gpio1 0 0>;
  30. reset-gpios = <&gpio1 1 0>;
  31. };
  32. /* ... */
  33. };