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