# Azoteq IQS620A/621/622/624/625 Keys and Switches

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

> Device-tree binding reference for Azoteq IQS620A/621/622/624/625 Keys and Switches.

<!-- SPDX-License-Identifier: (GPL-2.0 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;iqs62x&#45;keys&#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;Jeff LaBundy &#60;jeff&#64;labundy&#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>input&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-input/input.md#dt-root>)</span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors
feature a variety of self-capacitive, mutual-inductive and Hall-effect sens-
ing capabilities that can facilitate a variety of contactless key and switch
applications.</p>
<p style="white-space: pre-wrap">These functions are collectively represented by a "keys" child node from the
parent MFD driver. See Documentation/devicetree/bindings/mfd/iqs62x.yaml for
further details and examples. Sensor hardware configuration (self-capacitive
vs. mutual-inductive, etc.) is selected based on the device's firmware.</p>
</div>

<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;azoteq&#44;iqs620a&#45;keys&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;azoteq&#44;iqs621&#45;keys&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;azoteq&#44;iqs622&#45;keys&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;azoteq&#44;iqs624&#45;keys&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;azoteq&#44;iqs625&#45;keys&#34;</code></span>

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

### <code>linux&#44;keycodes</code> — 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>16</code></span>

<div id="dt-fe2f483e61c6fda6e57e">
<p style="white-space: pre-wrap">Specifies the numeric keycodes associated with each available touch or
proximity event according to the following table. An 'x' indicates the
event is supported for a given device. Specify 0 for unused events.</p>
<pre><code>-------------------------------------------------------------------------
| #  | Event              | IQS620A | IQS621 | IQS622 | IQS624 | IQS625 |
-------------------------------------------------------------------------
| 0  | CH0 Touch          |    x    |    x   |    x   |    x   |    x   |
|    | Antenna 1 Touch*   |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 1  | CH0 Proximity      |    x    |    x   |    x   |    x   |    x   |
|    | Antenna 1 Prox.*   |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 2  | CH1 Touch          |    x    |    x   |    x   |    x   |    x   |
|    | Ant. 1 Deep Touch* |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 3  | CH1 Proximity      |    x    |    x   |    x   |    x   |    x   |
-------------------------------------------------------------------------
| 4  | CH2 Touch          |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 5  | CH2 Proximity      |    x    |        |        |        |        |
|    | Antenna 2 Prox.*   |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 6  | Metal (+) Touch**  |    x    |    x   |        |        |        |
|    | Ant. 2 Deep Touch* |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 7  | Metal (+) Prox.**  |    x    |    x   |        |        |        |
|    | Antenna 2 Touch*   |    x    |        |        |        |        |
-------------------------------------------------------------------------
| 8  | Metal (-) Touch**  |    x    |    x   |        |        |        |
-------------------------------------------------------------------------
| 9  | Metal (-) Prox.**  |    x    |    x   |        |        |        |
-------------------------------------------------------------------------
| 10 | SAR Active***      |    x    |        |    x   |        |        |
-------------------------------------------------------------------------
| 11 | SAR Quick Rel.***  |    x    |        |    x   |        |        |
-------------------------------------------------------------------------
| 12 | SAR Movement***    |    x    |        |    x   |        |        |
-------------------------------------------------------------------------
| 13 | SAR Filter Halt*** |    x    |        |    x   |        |        |
-------------------------------------------------------------------------
| 14 | Wheel Up           |         |        |        |    x   |        |
-------------------------------------------------------------------------
| 15 | Wheel Down         |         |        |        |    x   |        |
-------------------------------------------------------------------------
*   Two-channel SAR. Replaces CH0-2 plus metal touch and proximity events
    if enabled via firmware.
**  "+" and "-" refer to the polarity of a channel's delta (LTA - counts),
    where "LTA" is defined as the channel's long-term average.
*** One-channel SAR. Replaces CH0-2 touch and proximity events if enabled
    via firmware.</code></pre>
</div>

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#94;hall&#45;switch&#45;&#40;north&#124;south&#41;&#36;</code> — name matches this regular expression

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

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

<div id="dt-f8ae421b5e267f8dda04">
<p style="white-space: pre-wrap">Represents north/south-field Hall-effect sensor touch or proximity events. Note that north/south-field orientation is reversed on the IQS620AXzCSR device due to its flip-chip package.</p>
</div>

<a id="dt-30c4a418dbe29b61ecc2"></a>

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

<a id="dt-1809c22d510635f32d57"></a>

**<code>linux&#44;code</code> — required here**

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

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

**<code>azoteq&#44;use&#45;prox</code> — not listed as required here**

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

<div id="dt-125bf1f34f41226138b0">
<p style="white-space: pre-wrap">If present, specifies that Hall-effect sensor reporting should use the device's wide-range proximity threshold instead of its close-range touch threshold (default).</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-17582006e3a5131724ca"></a> <span id="dt-9f4bbaba0ff60d93b6d1"><code>&#34;linux&#44;code&#34;</code></span>

<a id="dt-abc912d744916c9e977d"></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-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-33b6ed092215f2be8801"></a> <span id="dt-9dc9072d1f2469ee9637"><code>&#34;azoteq&#44;iqs624&#45;keys&#34;</code></span>, <span id="dt-5b5b6c5b8f914dcc6d1d"><code>&#34;azoteq&#44;iqs625&#45;keys&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-779fc6b9f78e97d20df7"></a>
>
> ### Properties matching a name pattern (<code>patternProperties</code>)
>
> <a id="dt-08e6a124c9adad0cf177"></a>
>
> #### <code>&#94;hall&#45;switch&#45;&#40;north&#124;south&#41;&#36;</code> — name matches this regular expression
>
> <code>false</code> — Not permitted by this property 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;linux&#44;keycodes&#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.

## 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 OR BSD-2-Clause)</span></p>

</details>
