ft5x06-ts.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. FocalTech touch controller
  2. The focaltech controller is connected to host processor
  3. via i2c. The controller generates interrupts when the
  4. user touches the panel. The host controller is expected
  5. to read the touch coordinates over i2c and pass the coordinates
  6. to the rest of the system.
  7. Required properties:
  8. - compatible : should be "focaltech,5x06".
  9. - reg : i2c slave address of the device.
  10. - interrupt-parent : parent of interrupt.
  11. - interrupts : touch sample interrupt to indicate presense or release
  12. of fingers on the panel.
  13. - vdd-supply : Power supply needed to power up the device.
  14. - vcc_i2c-supply : Power source required to power up i2c bus.
  15. - focaltech,family-id : family identification of the controller.
  16. - focaltech,irq-gpio : irq gpio which is to provide interrupts to host,
  17. same as "interrupts" node. It will also
  18. contain active low or active high information.
  19. - focaltech,reset-gpio : reset gpio to control the reset of chip.
  20. - focaltech,display-coords : display coordinates in pixels. It is a four
  21. tuple consisting of min x, min y, max x and
  22. max y values
  23. - focaltech,name : name of the controller
  24. - focaltech,group-id : group id of this device
  25. - focaltech,hard-reset-delay-ms : hard reset delay in ms
  26. - focaltech,soft-reset-delay-ms : soft reset delay in ms
  27. - focaltech,fw-delay-aa-ms : specify the delay in ms after programming 0xaa
  28. register for firmware upgrade
  29. - focaltech,fw-delay-55-ms : specify the delay in ms after programming 0x55
  30. register for firmware upgrade
  31. - focaltech,fw-upgrade-id1 : specify the upgrade id1 for firmware upgrade
  32. - focaltech,fw-upgrade-id2 : specify the upgrade id2 for firmware upgrade
  33. - focaltech,fw-delay-readid-ms : specify the read id delay in ms for firmware upgrade
  34. - focaltech,fw-delay-era-flsh-ms : specify the erase flash delay in ms for firmware upgrade
  35. - pinctrl-names : This should be defined if a target uses pinctrl framework.
  36. See "pinctrl" in Documentation/devicetree/bindings/pinctrl/msm-pinctrl.txt.
  37. Specify the names of the configs that pinctrl can install in driver.
  38. Following are the pinctrl configs that can be installed:
  39. "pmx_ts_active" : Active configuration of pins, this should specify active
  40. config defined in pin groups of interrupt and reset gpio.
  41. "pmx_ts_suspend" : Disabled configuration of pins, this should specify sleep
  42. config defined in pin groups of interrupt and reset gpio.
  43. "pmx_ts_release" : Release configuration of pins, this should specify
  44. release config defined in pin groups of interrupt and reset gpio.
  45. Optional properties:
  46. - focaltech,panel-coords : panel coordinates for the chip in pixels.
  47. It is a four tuple consisting of min x,
  48. min y, max x and max y values.
  49. - focaltech,i2c-pull-up : to specify pull up is required.
  50. - focaltech,no-force-update : to specify force update is allowed.
  51. - focaltech,button-map : button map of key codes. The number
  52. of key codes depend on panel
  53. - focaltech,fw-name : specify the firmware file name
  54. - focaltech,fw-delay-aa-ms : specify the "aa" delay in ms for firmware upgrade
  55. - focaltech,fw-delay-55-ms : specify the "55" delay in ms for firmware upgrade
  56. - focaltech,fw-upgrade-id1 : specify the upgrade id1 for firmware upgrade
  57. - focaltech,fw-upgrade-id2 : specify the upgrade id2 for firmware upgrade
  58. - focaltech,fw-delay-readid-ms : specify the read id delay in ms for firmware upgrade
  59. - focaltech,fw-delay-era-flsh-ms : specify the erase flash delay in ms for firmware upgrade
  60. - focaltech,fw-auto-cal : specify whether calibration is needed after firmware upgrade
  61. - focaltech,fw-vkey-support : specify if virtual keys are supported through firmware
  62. - focaltech,ignore-id-check : specify ignore family-id check
  63. - focaltech,panel-coords : panel coordinates for the chip in pixels.
  64. It is a four tuple consisting of min x,
  65. min y, max x and max y values
  66. - focaltech,fw-name : specify the firmware file name
  67. - focaltech,psensor-support : specify whether support the proximity sensor
  68. - focaltech,gesture-support : specify whether support gesture feature
  69. - focaltech,resume-in-workqueue : specifiy whether to defer the resume to workqueue
  70. - clock-names: : Clock names used for secure touch. They are: "iface_clk", "core_clk"
  71. - clocks : Defined if 'clock-names' DT property is defined. These clocks
  72. are associated with the underlying I2C bus.
  73. Example:
  74. i2c@f9923000{
  75. focaltech@38{
  76. compatible = "focaltech,5x06";
  77. reg = <0x38>;
  78. interrupt-parent = <&msmgpio>;
  79. interrupts = <1 0x2>;
  80. vdd-supply = <&pm8110_l19>;
  81. vcc_i2c-supply = <&pm8110_l14>;
  82. pinctrl-names = "pmx_ts_active","pmx_ts_suspend","pmx_ts_release";
  83. pinctrl-0 = <&ts_int_active &ts_reset_active>;
  84. pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
  85. pinctrl-2 = <&ts_release>;
  86. focaltech,name = "ft6x06";
  87. focaltech,family-id = <0x06>;
  88. focaltech,reset-gpio = <&msmgpio 0 0x00>;
  89. focaltech,irq-gpio = <&msmgpio 1 0x00>;
  90. focaltech,display-coords = <0 0 480 800>;
  91. focaltech,panel-coords = <0 0 480 800>;
  92. focaltech,button-map= <139 102 158>;
  93. focaltech,no-force-update;
  94. focaltech,i2c-pull-up;
  95. focaltech,group-id = <1>;
  96. focaltech,hard-reset-delay = <20>;
  97. focaltech,soft-reset-delay = <150>;
  98. focaltech,num-max-touches = <2>;
  99. focaltech,fw-name = "ft_8610_qrd_fw.bin";
  100. focaltech,fw-delay-aa-ms = <100>;
  101. focaltech,fw-delay-55-ms = <30>;
  102. focaltech,fw-upgrade-id1 = <0x79>;
  103. focaltech,fw-upgrade-id2 = <0x08>;
  104. focaltech,fw-delay-readid-ms = <10>;
  105. focaltech,fw-delay-era-flsh-ms = <2000>;
  106. focaltech,fw-auto-cal;
  107. focaltech,psensor-support;
  108. focaltech,gesture-support;
  109. /* Underlying clocks used by secure touch */
  110. clock-names = "iface_clk", "core_clk";
  111. clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
  112. <&clock_gcc clk_gcc_blsp1_qup3_i2c_apps_clk>;
  113. };
  114. };