# Marvell Armada 37xx SoC pin and gpio controller

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

> Device-tree binding reference for Marvell Armada 37xx SoC pin and 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;pinctrl&#47;marvell&#44;armada3710&#45;xb&#45;pinctrl&#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;Gregory CLEMENT &#60;gregory&#46;clement&#64;bootlin&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Marek Behún &#60;kabel&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Miquel Raynal &#60;miquel&#46;raynal&#64;bootlin&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Each Armada 37xx SoC come with two pin and gpio controller one for the south bridge and the other for the north bridge.
Inside this set of register the gpio latch allows exposing some configuration of the SoC and especially the clock frequency of the xtal. Hence, this node is a represent as syscon allowing sharing the register between multiple hardware block.</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-cc3709943397035582d2"></a>

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;marvell&#44;armada3710&#45;sb&#45;pinctrl&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;marvell&#44;armada3710&#45;nb&#45;pinctrl&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;syscon&#34;</code></span>

<a id="dt-9a5f0b2d9373c09998ec"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-985600cab9ae8398068d"><code>&#34;simple&#45;mfd&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">pinctrl and GPIO controller registers</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">interrupt controller registers</p>
> </div>

<a id="dt-164e830b227a48d9ffdb"></a>

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

<div id="dt-214e58ae22046104868f">
<p style="white-space: pre-wrap">GPIO controller subnode</p>
</div>

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

<a id="dt-aa0969a2e16f6d52fb4c"></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-16a3af1ebaaa9f28a341"></a>

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

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

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

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

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

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

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

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

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

<div id="dt-d9bd7f03b840bb78e2fa">
<p style="white-space: pre-wrap">Range of pins managed by the GPIO controller</p>
</div>

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

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

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

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

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

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

<a id="dt-2fec03467cec6114c6ca"></a>

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

<div id="dt-93e9e36ebb8304d83a4b">
<p style="white-space: pre-wrap">List of interrupt specifiers for the GPIO controller</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-29f3ee041a8a54e8b48f"></a> <span id="dt-69c03d254dff0fcd1246"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-10466225aeebda05dd3a"><code>&#34;gpio&#45;ranges&#34;</code></span>, <span id="dt-c47221585410964f3f3a"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-c658cd96b31e8154322a"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-3b6eba7a671c9057e0ae"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-cdc1136f9fa743a6a225"><code>&#34;interrupts&#34;</code></span>

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

### <code>xtal&#45;clk</code> — not listed as required here

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

<a id="dt-6751431c5f164874e56f"></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-7f8316290fac3fa87477"></a>

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

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

**<code>compatible</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-c6c17cbf6985a7be4961"><code>&#34;marvell&#44;armada&#45;3700&#45;xtal&#45;clock&#34;</code></span>

<a id="dt-375b151d859c7aba6527"></a>

**<code>&#35;clock&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-055092fe60af521bc13b"><code>0</code></span>

<a id="dt-3645fc05459ef3164ad6"></a>

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

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

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

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

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

### <code>&#45;pins&#36;</code> — name matches this regular expression

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

<a id="dt-9069dcc32114c9a4bdd9"></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-ecc6c382576b1bff3c04"></a>

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

<a id="dt-9030448f3599b1b6996e"></a>

**<code>groups</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-7da66071b5699a781fa1"></a> <span id="dt-635939d9b11d52991072"><code>&#34;emmc&#95;nb&#34;</code></span>, <span id="dt-a0c4ad447eac60ee11c8"><code>&#34;i2c1&#34;</code></span>, <span id="dt-6b42b984e96553a65687"><code>&#34;i2c2&#34;</code></span>, <span id="dt-cd723406485a5d1fc3fb"><code>&#34;jtag&#34;</code></span>, <span id="dt-467f66849892f0d73e54"><code>&#34;mii&#95;col&#34;</code></span>, <span id="dt-72290a4c6c540eb93cb6"><code>&#34;onewire&#34;</code></span>, <span id="dt-9b6544160a71777d37a1"><code>&#34;pcie1&#34;</code></span>, <span id="dt-551af39f237cddc8b891"><code>&#34;pcie1&#95;clkreq&#34;</code></span>, <span id="dt-9d4f8119c55d4589ca59"><code>&#34;pcie1&#95;wakeup&#34;</code></span>, <span id="dt-4f94d354b6606d09cdc2"><code>&#34;pmic0&#34;</code></span>, <span id="dt-b411b6554635c0991535"><code>&#34;pmic1&#34;</code></span>, <span id="dt-aa49038541fde2d09a31"><code>&#34;ptp&#34;</code></span>, <span id="dt-a834e497eb3bd0ccd885"><code>&#34;ptp&#95;clk&#34;</code></span>, <span id="dt-d27fe81e5eb2b5623c72"><code>&#34;ptp&#95;trig&#34;</code></span>, <span id="dt-8893984cd7614fd0b0f9"><code>&#34;pwm0&#34;</code></span>, <span id="dt-29d51185397729a57788"><code>&#34;pwm1&#34;</code></span>, <span id="dt-168ac11891b33f793a69"><code>&#34;pwm2&#34;</code></span>, <span id="dt-75f8f31658650aba9cb1"><code>&#34;pwm3&#34;</code></span>, <span id="dt-7b25c3a3cc3f8c9e15f1"><code>&#34;rgmii&#34;</code></span>, <span id="dt-d656557d56102ec7b3c5"><code>&#34;sdio0&#34;</code></span>, <span id="dt-a2a051ca153a00915528"><code>&#34;sdio&#95;sb&#34;</code></span>, <span id="dt-eb7bba101b3bfa832e15"><code>&#34;smi&#34;</code></span>, <span id="dt-63473ac3b67ba31f2de6"><code>&#34;spi&#95;cs1&#34;</code></span>, <span id="dt-d5d38015e33c3fa22620"><code>&#34;spi&#95;cs2&#34;</code></span>, <span id="dt-69fef2af215e5e4ac1b9"><code>&#34;spi&#95;cs3&#34;</code></span>, <span id="dt-bf8951a98029e09c8493"><code>&#34;spi&#95;quad&#34;</code></span>, <span id="dt-2b2da07ab50a4152f885"><code>&#34;uart1&#34;</code></span>, <span id="dt-723a8c30fc1a0bf780b8"><code>&#34;uart2&#34;</code></span>, <span id="dt-9b103a5fdc6aac835fc7"><code>&#34;usb2&#95;drvvbus1&#34;</code></span>, <span id="dt-cde7c7fa9febdd7bcc76"><code>&#34;usb32&#95;drvvbus0&#34;</code></span>

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

**<code>function</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-f150d7cb555e54280f5a"></a> <span id="dt-418c17df698d2c35b9a2"><code>&#34;drvbus&#34;</code></span>, <span id="dt-872ddb5a8d0ec9f5b887"><code>&#34;emmc&#34;</code></span>, <span id="dt-e6f746a5c0f73cad03bd"><code>&#34;gpio&#34;</code></span>, <span id="dt-9e690c6f2033b0443bcf"><code>&#34;i2c&#34;</code></span>, <span id="dt-ca9b0825316107556fea"><code>&#34;jtag&#34;</code></span>, <span id="dt-e2a55a05faba06a4cf75"><code>&#34;led&#34;</code></span>, <span id="dt-5eacfd85c54d1c2d45fa"><code>&#34;mii&#34;</code></span>, <span id="dt-57fa51802be3c54b23c9"><code>&#34;mii&#95;err&#34;</code></span>, <span id="dt-7681f312e6b7551b2954"><code>&#34;onewire&#34;</code></span>, <span id="dt-895a943d2a5053d6c83d"><code>&#34;pcie&#34;</code></span>, <span id="dt-1618b237014245c41458"><code>&#34;pmic&#34;</code></span>, <span id="dt-79fdb2ae151151fe9ef5"><code>&#34;ptp&#34;</code></span>, <span id="dt-cebcfb2ef04847c94dab"><code>&#34;pwm&#34;</code></span>, <span id="dt-f1ca77c1b05150acf2d8"><code>&#34;sdio&#34;</code></span>, <span id="dt-e46da34047c96dc5939c"><code>&#34;smi&#34;</code></span>, <span id="dt-8db1c4febed08f2c98a3"><code>&#34;spi&#34;</code></span>, <span id="dt-51181e22119edfebfbbb"><code>&#34;uart&#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>

<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/interrupt-controller/arm-gic.h&gt;

pinctrl_sb: pinctrl@18800 {
    compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd";
    reg = &lt;0x18800 0x100&gt;, &lt;0x18C00 0x20&gt;;

    gpio {
        #gpio-cells = &lt;2&gt;;
        gpio-ranges = &lt;&amp;pinctrl_sb 0 0 29&gt;;
        gpio-controller;
        #interrupt-cells = &lt;2&gt;;
        interrupt-controller;
        interrupts =
            &lt;GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH&gt;,
            &lt;GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH&gt;,
            &lt;GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH&gt;,
            &lt;GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH&gt;,
            &lt;GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH&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>
