# Hycon HY46XX series touchscreen controller

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

> Device-tree binding reference for Hycon HY46XX series 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;hycon&#44;hy46xx&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>There are 6 variants of the chip for various touch panel sizes and cover lens material
 Glass: 0.3mm--4.0mm
  PET/PMMA: 0.2mm--2.0mm
  HY4613(B)-N048  &lt; 6"
  HY4614(B)-N068  7" .. 10.1"
  HY4621-NS32  &lt; 5"
  HY4623-NS48  5.1" .. 7"
 Glass: 0.3mm--8.0mm
  PET/PMMA: 0.2mm--4.0mm
  HY4633(B)-N048  &lt; 6"
  HY4635(B)-N048  &lt; 7" .. 10.1"</code></pre>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Giulio Benetti &#60;giulio&#46;benetti&#64;benettiengineering&#46;com&#62;&#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-e1f655ed0ff4d595dadc"></a>

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;hycon&#44;hy4613&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;hycon&#44;hy4614&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;hycon&#44;hy4621&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;hycon&#44;hy4623&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;hycon&#44;hy4633&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;hycon&#44;hy4635&#34;</code></span>

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

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

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

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

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

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

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

### <code>reset&#45;gpios</code> — not listed as required here

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

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

### <code>vcc&#45;supply</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-30507009abe5dc53cc07"></a>

### <code>hycon&#44;threshold</code> — not listed as required here

<div id="dt-e9db0011b3938ff412d9">
<p style="white-space: pre-wrap">Allows setting the sensitivity in the range from 0 to 255.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-11c5d4cd431daa7863d4">[<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-284a6be361f6c2931701"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-076809d2283b0f478929"><code>255</code></span>

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

### <code>hycon&#44;glove&#45;enable</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-649c801fe519ca5d84bc"><code>&#34;boolean&#34;</code></span>

<div id="dt-7812f090086281a9c648">
<p style="white-space: pre-wrap">Allows enabling glove setting.</p>
</div>

<a id="dt-037faf7f002b490ed7c1"></a>

### <code>hycon&#44;report&#45;speed&#45;hz</code> — not listed as required here

<div id="dt-45b66ed41e2ca20dcd84">
<p style="white-space: pre-wrap">Allows setting the report speed in Hertz.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-88d7fd7aea8357cd4dc1"><code>255</code></span>

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

### <code>hycon&#44;noise&#45;filter&#45;enable</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-af36821c1f0567d1e91b"><code>&#34;boolean&#34;</code></span>

<div id="dt-c4bac05ba8f1272a2042">
<p style="white-space: pre-wrap">Allows enabling power noise filter.</p>
</div>

<a id="dt-6374f409d14927cac9d3"></a>

### <code>hycon&#44;filter&#45;data</code> — not listed as required here

<div id="dt-accee0d5049102df26bd">
<p style="white-space: pre-wrap">Allows setting how many samples throw before reporting touch in the range from 0 to 5.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6ee836c5637d3f00197b">[<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-c99cf937d1392febcfbd"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-1f075648b13d8e6f9b35"><code>5</code></span>

<a id="dt-032479df181f5a03b020"></a>

### <code>hycon&#44;gain</code> — not listed as required here

<div id="dt-7f600ef725acbf07f0ef">
<p style="white-space: pre-wrap">Allows setting the sensitivity distance in the range from 0 to 5.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9e82234338b7cdc5b22b">[<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-64cf9eee6cfa8147580e"><code>0</code></span>

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

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

### <code>hycon&#44;edge&#45;offset</code> — not listed as required here

<div id="dt-0416f3f30e20794794fc">
<p style="white-space: pre-wrap">Allows setting the edge compensation in the range from 0 to 16.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-616520885f6fef031919">[<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-3a4a3d65d9625585c326"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-1d5b3c26dde5c335639c"><code>16</code></span>

<a id="dt-06e7b7e67cc45250159c"></a>

### <code>touchscreen&#45;size&#45;x</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>touchscreen&#45;size&#45;y</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-600a22fdf5c84d68a4a4"></a>

### <code>touchscreen&#45;fuzz&#45;x</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>touchscreen&#45;fuzz&#45;y</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>touchscreen&#45;inverted&#45;x</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-8193561d7be3f4eb58d8"></a>

### <code>touchscreen&#45;inverted&#45;y</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>touchscreen&#45;swapped&#45;x&#45;y</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

### <code>interrupt&#45;controller</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<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.

**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>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  touchscreen@1c {
    compatible = "hycon,hy4633";
    reg = &lt;0x1c&gt;;
    interrupt-parent = &lt;&amp;gpio2&gt;;
    interrupts = &lt;5 IRQ_TYPE_EDGE_FALLING&gt;;
    reset-gpios = &lt;&amp;gpio2 6 GPIO_ACTIVE_LOW&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>
