# OMAP GPIO controller

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

> Device-tree binding reference for OMAP GPIO controller.

<!-- 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;gpio&#47;ti&#44;omap&#45;gpio&#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;Grygorii Strashko &#60;grygorii&#46;strashko&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The general-purpose interface combines general-purpose input/output (GPIO) banks.
Each GPIO banks provides up to 32 dedicated general-purpose pins with input
and output capabilities; interrupt generation in active mode and wake-up
request generation in idle mode upon the detection of external events.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;ti&#44;omap2&#45;gpio&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;ti&#44;omap3&#45;gpio&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;ti&#44;omap4&#45;gpio&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;ti&#44;am4372&#45;gpio&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;ti&#44;omap4&#45;gpio&#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-f5d51cae76398cdb9d95"></a>

### <code>gpio&#45;controller</code> — required here

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

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

### <code>&#35;gpio&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

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

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

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

<a id="dt-8586fac2d9a71adf4795"></a>

### <code>&#35;interrupt&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>2</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-e90ed33ab740dccb72d7"></a>

### <code>gpio&#45;ranges</code> — not listed as required here

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

<a id="dt-14035f3a8826cdac18bd"></a>

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

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

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

<a id="dt-870d2c6e4060b5d12bcf"></a>

### <code>ti&#44;gpio&#45;always&#45;on</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-793aa575d9b58db606dd">[<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-1034fd2e62083d06f158">
<p style="white-space: pre-wrap">Indicates if a GPIO bank is always powered and will never lose its logic state.</p>
</div>

<a id="dt-78eb8765da1b42beba07"></a>

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

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

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

<div id="dt-6a8457e4523b4b4a94b2">
<p style="white-space: pre-wrap">Name of the hwmod associated with the GPIO. Needed on some legacy OMAP SoCs which have not been converted to the ti,sysc interconnect hierarchy.</p>
</div>

<a id="dt-86fd9f47cb1316577728"></a>

### <code>ti&#44;no&#45;reset&#45;on&#45;init</code> — not listed as required here

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

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

<div id="dt-a6d85dcbc341fb52d1d2">
<p style="white-space: pre-wrap">Do not reset on init. Used with ti,hwmods on some legacy OMAP SoCs which have not been converted to the ti,sysc interconnect hierarchy.</p>
</div>

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

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

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

### <code>&#94;&#40;&#46;&#43;&#45;hog&#40;&#45;&#91;0&#45;9&#93;&#43;&#41;&#63;&#41;&#36;</code> — name matches this regular expression

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

**Required in this object (<code>required</code>):** <a id="dt-60f24b032382c79d795e"></a> <span id="dt-a3e4a723e048081b8fe8"><code>&#34;gpio&#45;hog&#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;gpio&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;interrupts&#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/gpio/gpio.h&gt;

gpio0: gpio@0 {
    compatible = "ti,omap4-gpio";
    reg = &lt;0x0 0x1000&gt;;
    gpio-controller;
    #gpio-cells = &lt;2&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;2&gt;;
    interrupts = &lt;96&gt;;
    ti,gpio-always-on;

    ls-buf-en-hog {
        gpio-hog;
        gpios = &lt;10 GPIO_ACTIVE_HIGH&gt;;
        output-high;
        line-name = "LS_BUF_EN";
    };
};
</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 OR BSD-2-Clause)</span></p>

</details>
