Haibo Chen | 9a436d5 | 2015-09-05 11:31:21 -0700 | [diff] [blame] | 1 | * Freescale i.MX6UL Touch Controller |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: must be "fsl,imx6ul-tsc". |
| 5 | - reg: this touch controller address and the ADC2 address. |
| 6 | - interrupts: the interrupt of this touch controller and ADC2. |
| 7 | - clocks: the root clock of touch controller and ADC2. |
| 8 | - clock-names; must be "tsc" and "adc". |
| 9 | - xnur-gpio: the X- gpio this controller connect to. |
| 10 | This xnur-gpio returns to low once the finger leave the touch screen (The |
| 11 | last touch event the touch controller capture). |
| 12 | |
| 13 | Optional properties: |
| 14 | - measure-delay-time: the value of measure delay time. |
| 15 | Before X-axis or Y-axis measurement, the screen need some time before |
| 16 | even potential distribution ready. |
| 17 | This value depends on the touch screen. |
| 18 | - pre-charge-time: the touch screen need some time to precharge. |
| 19 | This value depends on the touch screen. |
Guy Shapiro | 031bfed | 2016-11-27 20:40:39 -0800 | [diff] [blame^] | 20 | - average-samples: Number of data samples which are averaged for each read. |
| 21 | Valid values 0-4 |
| 22 | 0 = 1 sample |
| 23 | 1 = 4 samples |
| 24 | 2 = 8 samples |
| 25 | 3 = 16 samples |
| 26 | 4 = 32 samples |
Haibo Chen | 9a436d5 | 2015-09-05 11:31:21 -0700 | [diff] [blame] | 27 | |
| 28 | Example: |
| 29 | tsc: tsc@02040000 { |
| 30 | compatible = "fsl,imx6ul-tsc"; |
| 31 | reg = <0x02040000 0x4000>, <0x0219c000 0x4000>; |
| 32 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, |
| 33 | <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; |
| 34 | clocks = <&clks IMX6UL_CLK_IPG>, |
| 35 | <&clks IMX6UL_CLK_ADC2>; |
| 36 | clock-names = "tsc", "adc"; |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&pinctrl_tsc>; |
| 39 | xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>; |
| 40 | measure-delay-time = <0xfff>; |
| 41 | pre-charge-time = <0xffff>; |
Guy Shapiro | 031bfed | 2016-11-27 20:40:39 -0800 | [diff] [blame^] | 42 | average-samples = <4>; |
Haibo Chen | 9a436d5 | 2015-09-05 11:31:21 -0700 | [diff] [blame] | 43 | status = "okay"; |
| 44 | }; |