xref: /openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
19a436d52SHaibo Chen* Freescale i.MX6UL Touch Controller
29a436d52SHaibo Chen
39a436d52SHaibo ChenRequired properties:
49a436d52SHaibo Chen- compatible: must be "fsl,imx6ul-tsc".
59a436d52SHaibo Chen- reg: this touch controller address and the ADC2 address.
69a436d52SHaibo Chen- interrupts: the interrupt of this touch controller and ADC2.
79a436d52SHaibo Chen- clocks: the root clock of touch controller and ADC2.
89a436d52SHaibo Chen- clock-names; must be "tsc" and "adc".
99a436d52SHaibo Chen- xnur-gpio: the X- gpio this controller connect to.
109a436d52SHaibo Chen  This xnur-gpio returns to low once the finger leave the touch screen (The
119a436d52SHaibo Chen  last touch event the touch controller capture).
129a436d52SHaibo Chen
139a436d52SHaibo ChenOptional properties:
149a436d52SHaibo Chen- measure-delay-time: the value of measure delay time.
159a436d52SHaibo Chen  Before X-axis or Y-axis measurement, the screen need some time before
169a436d52SHaibo Chen  even potential distribution ready.
179a436d52SHaibo Chen  This value depends on the touch screen.
189a436d52SHaibo Chen- pre-charge-time: the touch screen need some time to precharge.
199a436d52SHaibo Chen  This value depends on the touch screen.
20f43d3ec3SGuy Shapiro- touchscreen-average-samples: Number of data samples which are averaged for
21f43d3ec3SGuy Shapiro  each read. Valid values are 1, 4, 8, 16 and 32.
229a436d52SHaibo Chen
239a436d52SHaibo ChenExample:
24*48c926cdSMarco Franchi	tsc: tsc@2040000 {
259a436d52SHaibo Chen		compatible = "fsl,imx6ul-tsc";
269a436d52SHaibo Chen		reg = <0x02040000 0x4000>, <0x0219c000 0x4000>;
279a436d52SHaibo Chen		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
289a436d52SHaibo Chen			     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
299a436d52SHaibo Chen		clocks = <&clks IMX6UL_CLK_IPG>,
309a436d52SHaibo Chen			 <&clks IMX6UL_CLK_ADC2>;
319a436d52SHaibo Chen		clock-names = "tsc", "adc";
329a436d52SHaibo Chen		pinctrl-names = "default";
339a436d52SHaibo Chen		pinctrl-0 = <&pinctrl_tsc>;
349a436d52SHaibo Chen		xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
359a436d52SHaibo Chen		measure-delay-time = <0xfff>;
369a436d52SHaibo Chen		pre-charge-time = <0xffff>;
37f43d3ec3SGuy Shapiro		touchscreen-average-samples = <32>;
389a436d52SHaibo Chen	};
39