# Input Devices Common Properties

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

> Device-tree binding reference for Input Devices Common Properties.

<!-- 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;input&#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;Dmitry Torokhov &#60;dmitry&#46;torokhov&#64;gmail&#46;com&#62;&#34;</code></span>

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

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

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

### <code>autorepeat</code> — not listed as required here

<div id="dt-61e6d26acdf1ec0cfa76">
<p style="white-space: pre-wrap">Enable autorepeat when key is pressed and held down.</p>
</div>

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

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

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

<div id="dt-fe2f483e61c6fda6e57e">
<p style="white-space: pre-wrap">Specifies an array of numeric keycode values to be used for reporting button presses.</p>
</div>

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

<a id="dt-56cd6971daafe36867db"></a>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-01c789fe50e325841791"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-2633450aae10d6187576"><code>767</code></span>

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

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

<div id="dt-97887f8221e53017b25a">
<p style="white-space: pre-wrap">Specifies a single numeric keycode value to be used for reporting button/switch events. Specify KEY_RESERVED (0) to opt out of event reporting.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-30778ec3eb735a2a8f85"><code>767</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8848c897208abe68299a">[<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-bbc65287871fc5c87832"></a> <span id="dt-a4fb29809ec05f4385bf"><code>1</code></span>, <span id="dt-75750646c0a4309a2c3d"><code>2</code></span>, <span id="dt-a27e42797f6e67d0cc7e"><code>3</code></span>, <span id="dt-df797d64df59b099ee23"><code>5</code></span>

<div id="dt-9b3df9990484b4f47848">
<p style="white-space: pre-wrap">Specifies whether the event is to be interpreted as a key, relative, absolute, or switch.</p>
</div>

<a id="dt-014743e3c59fc92ab9b6"></a>

### <code>poll&#45;interval</code> — not listed as required here

<div id="dt-ac53f1ba30e19358879c">
<p style="white-space: pre-wrap">Poll interval time in milliseconds.</p>
</div>

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

### <code>power&#45;off&#45;time&#45;sec</code> — not listed as required here

<div id="dt-6ce9dacd448a350fa608">
<p style="white-space: pre-wrap">Duration in seconds which the key should be kept pressed for device to power off automatically. Device with key pressed shutdown feature can specify this property.</p>
</div>

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

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

<div id="dt-8fb5ac6f9f5e961d8168">
<p style="white-space: pre-wrap">Duration in seconds which the key should be kept pressed for device to reset automatically. Device with key pressed reset feature can specify this property.</p>
</div>

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

## Property dependencies (<code>dependencies</code>)

<a id="dt-9594f75f9b64b68a4604"></a>

### <code>linux&#44;input&#45;type</code> — applies when this property is present

Also requires: <span id="dt-94fbc9d6b278c46aaf87"><code>&#34;linux&#44;code&#34;</code></span>

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

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

<code>true</code>

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>

<p id="dt-comment-1"><strong>Line 37:</strong> <span> EV_KEY</span></p>

<p id="dt-comment-2"><strong>Line 38:</strong> <span> EV_REL</span></p>

<p id="dt-comment-3"><strong>Line 39:</strong> <span> EV_ABS</span></p>

<p id="dt-comment-4"><strong>Line 40:</strong> <span> EV_SW</span></p>

</details>
