# APM X-Gene Standby GPIO controller

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

> Device-tree binding reference for APM X-Gene Standby GPIO 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;apm&#44;xgene&#45;gpio&#45;sb&#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;Khuong Dinh &#60;khuong&#64;os&#46;amperecomputing&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>This is a gpio controller in the standby domain. It also supports interrupt in
some particular pins which are sourced to its parent interrupt controller
as diagram below:
                              +-----------------+
                              | X-Gene standby  |
                              | GPIO controller +------ GPIO_0
  +------------+              |                 | ...
  | Parent IRQ | EXT_INT_0    |                 +------ GPIO_8/EXT_INT_0
  | controller | (SPI40)      |                 | ...
  | (GICv2)    +--------------+                 +------ GPIO_[N+8]/EXT_INT_N
  |            |   ...        |                 |
  |            | EXT_INT_N    |                 +------ GPIO_[N+9]
  |            | (SPI[40 + N])|                 | ...
  |            +--------------+                 +------ GPIO_MAX
  +------------+              +-----------------+</code></pre>
</div>

<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;apm&#44;xgene&#45;gpio&#45;sb&#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-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-f5d51cae76398cdb9d95"></a>

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

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

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">List of interrupt specifiers for EXT_INT_0 through EXT_INT_N. The first entry must correspond to EXT_INT_0.</p>
</div>

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

<div id="dt-0cc2c51365b6879fba3b">
<p style="white-space: pre-wrap">First cell selects EXT_INT_N (0-N), second cell specifies flags</p>
</div>

<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-1433b4d4b2afa3481d7a"></a>

### <code>apm&#44;nr&#45;gpios</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7c360d8259ab54bb1800">[<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-a3aade7caddaac47e3fa">
<p style="white-space: pre-wrap">Number of GPIO pins</p>
</div>

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

### <code>apm&#44;nr&#45;irqs</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a2bb3206d6aca96a5032">[<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-8f70e191c6ee79004b94">
<p style="white-space: pre-wrap">Number of interrupt pins</p>
</div>

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

### <code>apm&#44;irq&#45;start</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3ed68fbe28cbb88697da">[<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-c3eeace4eb2c2cdc9416">
<p style="white-space: pre-wrap">Lowest GPIO pin supporting interrupts</p>
</div>

**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;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupts&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;interrupt&#45;controller&#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">gpio@17001000 {
    compatible = "apm,xgene-gpio-sb";
    reg = &lt;0x17001000 0x400&gt;;
    #gpio-cells = &lt;2&gt;;
    gpio-controller;
    interrupts = &lt;0x0 0x28 0x1&gt;,
                 &lt;0x0 0x29 0x1&gt;,
                 &lt;0x0 0x2a 0x1&gt;,
                 &lt;0x0 0x2b 0x1&gt;,
                 &lt;0x0 0x2c 0x1&gt;,
                 &lt;0x0 0x2d 0x1&gt;;
    #interrupt-cells = &lt;2&gt;;
    interrupt-controller;
    apm,nr-gpios = &lt;22&gt;;
    apm,nr-irqs = &lt;6&gt;;
    apm,irq-start = &lt;8&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>
