edt-ft5x06.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. FocalTech EDT-FT5x06 Polytouch driver
  2. =====================================
  3. There are 3 variants of the chip for various touch panel sizes
  4. FT5206GE1 2.8" .. 3.8"
  5. FT5306DE4 4.3" .. 7"
  6. FT5406EE8 7" .. 8.9"
  7. FT5506EEG 7" .. 8.9"
  8. The software interface is identical for all those chips, so that
  9. currently there is no need for the driver to distinguish between the
  10. different chips. Nevertheless distinct compatible strings are used so
  11. that a distinction can be added if necessary without changing the DT
  12. bindings.
  13. Required properties:
  14. - compatible: "edt,edt-ft5206"
  15. or: "edt,edt-ft5306"
  16. or: "edt,edt-ft5406"
  17. or: "edt,edt-ft5506"
  18. or: "focaltech,ft6236"
  19. - reg: I2C slave address of the chip (0x38)
  20. - interrupts: interrupt specification for the touchdetect
  21. interrupt
  22. Optional properties:
  23. - reset-gpios: GPIO specification for the RESET input
  24. - wake-gpios: GPIO specification for the WAKE input
  25. - pinctrl-names: should be "default"
  26. - pinctrl-0: a phandle pointing to the pin settings for the
  27. control gpios
  28. - threshold: allows setting the "click"-threshold in the range
  29. from 0 to 80.
  30. - gain: allows setting the sensitivity in the range from 0 to
  31. 31. Note that lower values indicate higher
  32. sensitivity.
  33. - offset: allows setting the edge compensation in the range from
  34. 0 to 31.
  35. - touchscreen-size-x : See touchscreen.txt
  36. - touchscreen-size-y : See touchscreen.txt
  37. - touchscreen-fuzz-x : See touchscreen.txt
  38. - touchscreen-fuzz-y : See touchscreen.txt
  39. - touchscreen-inverted-x : See touchscreen.txt
  40. - touchscreen-inverted-y : See touchscreen.txt
  41. - touchscreen-swapped-x-y : See touchscreen.txt
  42. Example:
  43. polytouch: edt-ft5x06@38 {
  44. compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
  45. reg = <0x38>;
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&edt_ft5x06_pins>;
  48. interrupt-parent = <&gpio2>;
  49. interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
  50. reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
  51. wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
  52. };