xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Freescale i.MX6UL Touch Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must be "fsl,imx6ul-tsc".
5*4882a593Smuzhiyun- reg: this touch controller address and the ADC2 address.
6*4882a593Smuzhiyun- interrupts: the interrupt of this touch controller and ADC2.
7*4882a593Smuzhiyun- clocks: the root clock of touch controller and ADC2.
8*4882a593Smuzhiyun- clock-names; must be "tsc" and "adc".
9*4882a593Smuzhiyun- xnur-gpio: the X- gpio this controller connect to.
10*4882a593Smuzhiyun  This xnur-gpio returns to low once the finger leave the touch screen (The
11*4882a593Smuzhiyun  last touch event the touch controller capture).
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun- measure-delay-time: the value of measure delay time.
15*4882a593Smuzhiyun  Before X-axis or Y-axis measurement, the screen need some time before
16*4882a593Smuzhiyun  even potential distribution ready.
17*4882a593Smuzhiyun  This value depends on the touch screen.
18*4882a593Smuzhiyun- pre-charge-time: the touch screen need some time to precharge.
19*4882a593Smuzhiyun  This value depends on the touch screen.
20*4882a593Smuzhiyun- touchscreen-average-samples: Number of data samples which are averaged for
21*4882a593Smuzhiyun  each read. Valid values are 1, 4, 8, 16 and 32.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExample:
24*4882a593Smuzhiyun	tsc: tsc@2040000 {
25*4882a593Smuzhiyun		compatible = "fsl,imx6ul-tsc";
26*4882a593Smuzhiyun		reg = <0x02040000 0x4000>, <0x0219c000 0x4000>;
27*4882a593Smuzhiyun		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
28*4882a593Smuzhiyun			     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
29*4882a593Smuzhiyun		clocks = <&clks IMX6UL_CLK_IPG>,
30*4882a593Smuzhiyun			 <&clks IMX6UL_CLK_ADC2>;
31*4882a593Smuzhiyun		clock-names = "tsc", "adc";
32*4882a593Smuzhiyun		pinctrl-names = "default";
33*4882a593Smuzhiyun		pinctrl-0 = <&pinctrl_tsc>;
34*4882a593Smuzhiyun		xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
35*4882a593Smuzhiyun		measure-delay-time = <0xfff>;
36*4882a593Smuzhiyun		pre-charge-time = <0xffff>;
37*4882a593Smuzhiyun		touchscreen-average-samples = <32>;
38*4882a593Smuzhiyun	};
39