# Atmel maXTouch touchscreen/touchpad

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

> Device-tree binding reference for Atmel maXTouch touchscreen/touchpad.

<!-- 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;atmel&#44;maxtouch&#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;Nick Dyer &#60;nick&#64;shmanahar&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Atmel maXTouch touchscreen or touchpads such as the mXT244
and similar devices.</p>
</div>

<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>input&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-input/input.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>touchscreen&#47;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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;atmel&#44;maxtouch&#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-70a9f9cb1ded9ea36c7f"></a>

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

<div id="dt-1eee5449f4a636fbc161">
<p style="white-space: pre-wrap">Optional regulator for the AVDD analog voltage.</p>
</div>

<a id="dt-236855bde9eebcc9d904"></a>

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

<div id="dt-bc3e69b335e23d461899">
<p style="white-space: pre-wrap">Optional regulator for the VDD digital voltage.</p>
</div>

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">Optional GPIO specifier for the touchscreen's reset pin (active low). The line must be flagged with GPIO_ACTIVE_LOW.</p>
</div>

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

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

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

<div id="dt-4bea38fd67afc8e474cc">
<p style="white-space: pre-wrap">Optional GPIO specifier for the touchscreen's wake pin (active low). The line must be flagged with GPIO_ACTIVE_LOW.</p>
</div>

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

### <code>linux&#44;gpio&#45;keymap</code> — not listed as required here

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

<div id="dt-a62a0eba0aa4752f8d74">
<p style="white-space: pre-wrap">When enabled, the SPT_GPIOPWN_T19 object sends messages
on GPIO bit changes. An array of up to 8 entries can be provided
indicating the Linux keycode mapped to each bit of the status byte,
starting at the LSB. Linux keycodes are defined in
&lt;dt-bindings/input/input.h&gt;.</p>
<p style="white-space: pre-wrap">Note: the numbering of the GPIOs and the bit they start at varies
between maXTouch devices. You must either refer to the documentation,
or experiment to determine which bit corresponds to which input. Use
KEY_RESERVED for unused padding values.</p>
</div>

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

### <code>linux&#44;keycodes</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-70a60cb26709e5e043d9"><code>1</code></span>

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

<a id="dt-920af48ceb8f1e1c9ac2"></a>

### <code>atmel&#44;wakeup&#45;method</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-23a9bea2b91b385e4587">[<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-8f898d83e09eda80941d">
<p style="white-space: pre-wrap">The WAKE line is an active-low input that is used to wake up the touch
controller from deep-sleep mode before communication with the controller
could be started. This optional feature used to minimize current
consumption when the controller is in deep sleep mode. This feature is
relevant only to some controller families, like mXT1386 controller for
example.</p>
<p style="white-space: pre-wrap">The WAKE pin can be connected in one of the following ways:
 1) left permanently low
 2) connected to the I2C-compatible SCL pin
 3) connected to a GPIO pin on the host</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-0d66ca898f4da1d773a2"></a> <span id="dt-7cc373b6c8538d62b2fd"><code>0</code></span>, <span id="dt-5c7d8a9def669c74b54a"><code>1</code></span>, <span id="dt-871e46485bda3fa1da67"><code>2</code></span>

**Default value (<code>default</code>):** <span id="dt-9281b595886e17730445"><code>0</code></span>

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

### <code>wakeup&#45;source</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-2b0d8cb9d6b63eab4f97"><code>&#34;boolean&#34;</code></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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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/irq.h&gt;
#include &lt;dt-bindings/input/atmel-maxtouch.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  touchscreen@4a {
    compatible = "atmel,maxtouch";
    reg = &lt;0x4a&gt;;
    interrupt-parent = &lt;&amp;gpio&gt;;
    interrupts = &lt;26 IRQ_TYPE_EDGE_FALLING&gt;;
    reset-gpios = &lt;&amp;gpio 27 GPIO_ACTIVE_LOW&gt;;
    vdda-supply = &lt;&amp;ab8500_ldo_aux2_reg&gt;;
    vdd-supply = &lt;&amp;ab8500_ldo_aux5_reg&gt;;
    atmel,wakeup-method = &lt;ATMEL_MXT_WAKEUP_I2C_SCL&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>

<p id="dt-comment-1"><strong>Line 86:</strong> <span> ATMEL_MXT_WAKEUP_NONE</span></p>

<p id="dt-comment-2"><strong>Line 87:</strong> <span> ATMEL_MXT_WAKEUP_I2C_SCL</span></p>

<p id="dt-comment-3"><strong>Line 88:</strong> <span> ATMEL_MXT_WAKEUP_GPIO</span></p>

</details>
