edt-ft5x06.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. - interrupt-parent: a phandle pointing to the interrupt controller
  21. serving the interrupt for this chip
  22. - interrupts: interrupt specification for the touchdetect
  23. interrupt
  24. Optional properties:
  25. - reset-gpios: GPIO specification for the RESET input
  26. - wake-gpios: GPIO specification for the WAKE input
  27. - pinctrl-names: should be "default"
  28. - pinctrl-0: a phandle pointing to the pin settings for the
  29. control gpios
  30. - threshold: allows setting the "click"-threshold in the range
  31. from 20 to 80.
  32. - gain: allows setting the sensitivity in the range from 0 to
  33. 31. Note that lower values indicate higher
  34. sensitivity.
  35. - offset: allows setting the edge compensation in the range from
  36. 0 to 31.
  37. - touchscreen-size-x : See touchscreen.txt
  38. - touchscreen-size-y : See touchscreen.txt
  39. - touchscreen-fuzz-x : See touchscreen.txt
  40. - touchscreen-fuzz-y : See touchscreen.txt
  41. - touchscreen-inverted-x : See touchscreen.txt
  42. - touchscreen-inverted-y : See touchscreen.txt
  43. - touchscreen-swapped-x-y : See touchscreen.txt
  44. Example:
  45. polytouch: edt-ft5x06@38 {
  46. compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
  47. reg = <0x38>;
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&edt_ft5x06_pins>;
  50. interrupt-parent = <&gpio2>;
  51. interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
  52. reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
  53. wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
  54. };