# Freescale i.MX6UL Touch Controller

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen_

> Device-tree binding reference for Freescale i.MX6UL Touch Controller.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;input&#47;touchscreen&#47;fsl&#44;imx6ul&#45;tsc&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Haibo Chen &#60;haibo&#46;chen&#64;nxp&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Shawn Guo &#60;shawnguo&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Sascha Hauer &#60;s&#46;hauer&#64;pengutronix&#46;de&#62;&#34;</code></span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;fsl&#44;imx6ul&#45;tsc&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

<a id="dt-b6190d107f3246c9804f"></a>

#### Array item rules (<code>items</code>)

<a id="dt-c90b61e446f8f3080e3c"></a>

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">touch controller address</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">ADC2 address</p>
> </div>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — required here

<a id="dt-985aed94c3a5de8e946a"></a>

#### Array item rules (<code>items</code>)

<a id="dt-bc458260662c6fe0b59f"></a>

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">touch controller address</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">ADC2 address</p>
> </div>

<a id="dt-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>2</code></span>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

<a id="dt-3d1de59bdfddccf00eed"></a>

#### Array item rules (<code>items</code>)

<a id="dt-b779484bf9e022991fd6"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;tsc&#34;</code></span>

<a id="dt-b7e4e477f91935ef1935"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;adc&#34;</code></span>

<a id="dt-7f4d1c2cb8c0a83ef4dc"></a>

### <code>xnur&#45;gpios</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5a40dffb8f2a04b6f430"><code>1</code></span>

<div id="dt-07a8c2d3ea31149223d6">
<p style="white-space: pre-wrap">The X- gpio this controller connect to. This xnur-gpio returns to low once the finger leave the touch screen (The last touch event the touch controller capture).</p>
</div>

<a id="dt-67d06d6b8d7525e5d617"></a>

### <code>measure&#45;delay&#45;time</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d39bc213b3f843a95075">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-fdfbae03cc1e1a596c62">
<p style="white-space: pre-wrap">The value of measure delay time. Before X-axis or Y-axis measurement, the screen need some time before even potential distribution ready.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-32cfdf67824059eca16e"><code>65535</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-a2245180be1b13874454"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-f033e2c2ec2496586bb9"><code>16777215</code></span>

<a id="dt-d2826116d0a3f3569a43"></a>

### <code>pre&#45;charge&#45;time</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-129591b57c0e209024dd">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-da74f195e55ccf7df4a0">
<p style="white-space: pre-wrap">The touch screen need some time to precharge.</p>
</div>

**Default value (<code>default</code>):** <span id="dt-bf283de45700ddd763df"><code>4095</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-42f4638df33ca376f436"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-437b8cdc0e17501afd4c"><code>4294967295</code></span>

<a id="dt-b263c5bb0577f9483305"></a>

### <code>touchscreen&#45;average&#45;samples</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b12fca2c569988f5fa7f">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

<div id="dt-dd31283be1331d7ba9bd">
<p style="white-space: pre-wrap">Number of data samples which are averaged for each read.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-b645016439a3e85316c0"></a> <span id="dt-9abf9fa689d25ccf9070"><code>1</code></span>, <span id="dt-d5f509a0b38f36d3072f"><code>4</code></span>, <span id="dt-7cb821a6b45eb3fd9334"><code>8</code></span>, <span id="dt-dc5c5a8e66d891e063ff"><code>16</code></span>, <span id="dt-c5e6da9a69157d6ff30b"><code>32</code></span>

<a id="dt-cae3b3582054daba3ca8"></a>

### <code>debounce&#45;delay&#45;us</code> — not listed as required here

<div id="dt-b6fcde448f646321e63a">
<p style="white-space: pre-wrap">Minimum duration in microseconds a signal must remain stable
to be considered valid.</p>
<p style="white-space: pre-wrap">Drivers must convert this value to IPG clock cycles and map
it to one of the four discrete thresholds exposed by the
TSC_DEBUG_MODE2 register:</p>
<pre><code>  0: 8191 IPG cycles
  1: 4095 IPG cycles
  2: 2047 IPG cycles
  3: 1023 IPG cycles</code></pre>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;xnur&#45;gpios&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>touchscreen&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-input/touchscreen/touchscreen.md#dt-root>)</span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/clock/imx6ul-clock.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;
touchscreen@2040000 {
    compatible = "fsl,imx6ul-tsc";
    reg = &lt;0x02040000 0x4000&gt;, &lt;0x0219c000 0x4000&gt;;
    interrupts = &lt;GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH&gt;,
                 &lt;GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;clks IMX6UL_CLK_IPG&gt;,
             &lt;&amp;clks IMX6UL_CLK_ADC2&gt;;
    clock-names = "tsc", "adc";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;pinctrl_tsc&gt;;
    xnur-gpios = &lt;&amp;gpio1 3 GPIO_ACTIVE_LOW&gt;;
    measure-delay-time = &lt;0xfff&gt;;
    pre-charge-time = &lt;0xffff&gt;;
    touchscreen-average-samples = &lt;32&gt;;
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

</details>
