# TI AM3359 Touchscreen controller

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

> Device-tree binding reference for TI AM3359 Touchscreen 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;ti&#44;am3359&#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;Miquel Raynal &#60;miquel&#46;raynal&#64;bootlin&#46;com&#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;ti&#44;am3359&#45;tsc&#34;</code></span>

<a id="dt-2f66c254b7d94e3ac7cf"></a>

### <code>ti&#44;wires</code> — required here

<div id="dt-91ab37f8c455a3e41f37">
<p style="white-space: pre-wrap">Wires refer to application modes i.e. 4/5/8 wire touchscreen support on the platform.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-d1c56345e9d06506150f"></a> <span id="dt-35affde250fbc80e67c9"><code>4</code></span>, <span id="dt-401d0a5c619e21723e07"><code>5</code></span>, <span id="dt-0c5d79dabce3ecaa2a9c"><code>8</code></span>

<a id="dt-19a84f72d122cbb34b61"></a>

### <code>ti&#44;x&#45;plate&#45;resistance</code> — required here

<div id="dt-74b3368dc7c903fda42e">
<p style="white-space: pre-wrap">X plate resistance</p>
</div>

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

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

### <code>ti&#44;coordinate&#45;readouts</code> — required here

<div id="dt-32e1bac36909d820e5c9">
<p style="white-space: pre-wrap">The sequencer supports a total of 16 programmable steps. Each step is used to read a single coordinate. A single readout is enough but multiple reads can increase the quality. A value of 5 means, 5 reads for X, 5 for Y and 2 for Z (always). This utilises 12 of the 16 software steps available. The remaining 4 can be used by the ADC.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-95e597fd4833c4402cac"><code>1</code></span>

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

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

### <code>ti&#44;wire&#45;config</code> — required here

<div id="dt-2ca5d97574d12ddd0b24">
<p style="white-space: pre-wrap">Different boards could have a different order for connecting wires on touchscreen. We need to provide an 8-bit number where the first four bits represent the analog lines and the next 4 bits represent positive/negative terminal on that input line. Notations to represent the input lines and terminals respectively are as follows, AIN0 = 0, AIN1 = 1 and so on until AIN7 = 7. XP = 0, XN = 1, YP = 2, YN = 3.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-61a0c915bbfd6c0ebb6b"><code>4</code></span>

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

<a id="dt-0c613c67faa035f6f419"></a>

### <code>ti&#44;charge&#45;delay</code> — not listed as required here

<div id="dt-e95f5a7075093a3b5d0a">
<p style="white-space: pre-wrap">Length of touch screen charge delay step in terms of ADC clock cycles. Charge delay value should be large in order to avoid false pen-up events. This value effects the overall sampling speed, hence need to be kept as low as possible, while avoiding false pen-up event. Start from a lower value, say 0x400, and increase value until false pen-up events are avoided. The pen-up detection happens immediately after the charge step, so this does in fact function as a hardware knob for adjusting the amount of "settling time".</p>
</div>

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

**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;ti&#44;wires&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ti&#44;x&#45;plate&#45;resistance&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;coordinate&#45;readouts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ti&#44;wire&#45;config&#34;</code></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">tsc {
    compatible = "ti,am3359-tsc";
    ti,wires = &lt;4&gt;;
    ti,x-plate-resistance = &lt;200&gt;;
    ti,coordinate-readouts = &lt;5&gt;;
    ti,wire-config = &lt;0x00 0x11 0x22 0x33&gt;;
    ti,charge-delay = &lt;0x400&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>
