# Samsung SoC series Keypad Controller

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

> Device-tree binding reference for Samsung SoC series Keypad 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;samsung&#44;s3c6410&#45;keypad&#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">
<p style="white-space: pre-wrap">Samsung SoC Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a key-press and key-release and report the event using a interrupt to the cpu.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;samsung&#44;s3c6410&#45;keypad&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;samsung&#44;s5pv210&#45;keypad&#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-4e9a371963ac013ad39d"></a>

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

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

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — not listed as required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;keypad&#34;</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-2a09d6d20023955671c8"></a>

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

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

<a id="dt-642659c89ddf86f335ea"></a>

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

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

<div id="dt-c1a4f6101b4f010edea1">
<p style="white-space: pre-wrap">Do no enable autorepeat feature.</p>
</div>

<a id="dt-93612d1837a3875296e2"></a>

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

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

**Deprecated (<code>deprecated</code>):** <span id="dt-27d2d3c405b8661cfa08"><code>true</code></span>

<a id="dt-45690e5f99f71239fc45"></a>

### <code>samsung&#44;keypad&#45;num&#45;columns</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c9868d09ea4ae55abd39">[<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-99a757affc0983614fa7">
<p style="white-space: pre-wrap">Number of column lines connected to the keypad controller.</p>
</div>

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

### <code>samsung&#44;keypad&#45;num&#45;rows</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a3be8198002055609945">[<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-16b2892a6964a0d958c8">
<p style="white-space: pre-wrap">Number of row lines connected to the keypad controller.</p>
</div>

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

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

<a id="dt-641324ec6bed8d2fea02"></a>

### <code>&#94;key&#45;&#91;0&#45;9a&#45;z&#93;&#43;&#36;</code> — name matches this regular expression

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

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

<a id="dt-6baeab8590618334cfe0"></a>

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

<code>false</code>

Not allowed by this rule.

<div id="dt-e2320702b28f6c27091c">
<p style="white-space: pre-wrap">Each key connected to the keypad controller is represented as a child node to the keypad controller device node.</p>
</div>

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-527a85e4111e68e46833">[<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-e8f84bf7cc7fbeacaab1">
<p style="white-space: pre-wrap">The column number to which the key is connected.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f653f1290eb028492893">[<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-0d96c5a0eda5f44a7f35">
<p style="white-space: pre-wrap">The row number to which the key is connected.</p>
</div>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-f083912ddbf84b59aac9"></a> <span id="dt-5a6329f557c7dfa9d3f2"><code>&#34;keypad&#44;column&#34;</code></span>, <span id="dt-039e55cff33fde5b23cb"><code>&#34;keypad&#44;row&#34;</code></span>, <span id="dt-35848049f39fdf29f93d"><code>&#34;linux&#44;code&#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>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;samsung&#44;keypad&#45;num&#45;columns&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;samsung&#44;keypad&#45;num&#45;rows&#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">#include &lt;dt-bindings/clock/exynos4.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

keypad@100a0000 {
    compatible = "samsung,s5pv210-keypad";
    reg = &lt;0x100a0000 0x100&gt;;
    interrupts = &lt;GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;clock CLK_KEYIF&gt;;
    clock-names = "keypad";

    samsung,keypad-num-rows = &lt;2&gt;;
    samsung,keypad-num-columns = &lt;8&gt;;
    linux,input-no-autorepeat;
    wakeup-source;

    key-1 {
        keypad,row = &lt;0&gt;;
        keypad,column = &lt;3&gt;;
        linux,code = &lt;2&gt;;
    };

    key-2 {
        keypad,row = &lt;0&gt;;
        keypad,column = &lt;4&gt;;
        linux,code = &lt;3&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>
