# Ralink RT2880 Pin Controller

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

> Device-tree binding reference for Ralink RT2880 Pin 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;ralink&#44;rt2880&#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;Arınç ÜNAL &#60;arinc&#46;unal&#64;arinc9&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Sergio Paracuellos &#60;sergio&#46;paracuellos&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Ralink RT2880 pin controller for RT2880 SoC.
The pin controller can only set the muxing of pin groups. Muxing individual
pins is not supported. There is no pinconf support.</p>
</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;ralink&#44;rt2880&#45;pinctrl&#34;</code></span>

<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

**Value type (<code>type</code>):** <span id="dt-f6b3c84acd41ec2a7731"><code>&#34;object&#34;</code></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-f2c13f8782757ab52e33"></a>

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

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

**<code>&#94;&#40;&#46;&#42;&#45;&#41;&#63;pinmux&#36;</code> — name matches this regular expression**

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

<div id="dt-4b3cb56cdac20b517228">
<p style="white-space: pre-wrap">node for pinctrl.</p>
</div>

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

<a id="dt-5be19b0ae0aa11408791"></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-5bb51877091e059376e5"></a>

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

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

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

<div id="dt-6718cb2878ddb5debd95">
<p style="white-space: pre-wrap">A string containing the name of the function to mux to the group.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-4d8e55bc836f35abe97d"></a> <span id="dt-69e7ace9b8063b8a3191"><code>&#34;gpio&#34;</code></span>, <span id="dt-2f94a3936b49c17c956b"><code>&#34;i2c&#34;</code></span>, <span id="dt-2dd57f6e30193166a7e2"><code>&#34;spi&#34;</code></span>, <span id="dt-8127da995602dfa93a03"><code>&#34;uartlite&#34;</code></span>, <span id="dt-2b42a4454f0a79df5356"><code>&#34;jtag&#34;</code></span>, <span id="dt-bffe0a49ec717a2441bd"><code>&#34;mdio&#34;</code></span>, <span id="dt-57ca3abc373689c5097e"><code>&#34;sdram&#34;</code></span>, <span id="dt-268159a62b910eda0b4b"><code>&#34;pci&#34;</code></span>

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

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

<div id="dt-cb440136aac6a7a7d543">
<p style="white-space: pre-wrap">An array of strings. Each string contains the name of a group.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-06c761dab28b6f4c76ac"></a> <span id="dt-1d75ddd6d9fe5851f02a"><code>&#34;groups&#34;</code></span>, <span id="dt-01edf393da9bc734b8ec"><code>&#34;function&#34;</code></span>

<a id="dt-594bf6152ae84d14cd2b"></a>

**All of these rules must match (<code>allOf</code>)**

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

**Rule 1**

> <a id="dt-a6cd235c6c53093807a6"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-8e5183356afa8b41a87e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-82893bb0529f1bb44614"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-c8834159ef610899e36e"><code>&#34;gpio&#34;</code></span>
>
> <a id="dt-beac4c3d387913944aaf"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-3e591f9c08a6fe5f0d0a"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-14f8604c84d230046cfb"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-a609d29d2670a5f67c6f"></a> <span id="dt-7925953f3b335428132e"><code>&#34;i2c&#34;</code></span>, <span id="dt-909e56decb3b7236cc75"><code>&#34;spi&#34;</code></span>, <span id="dt-57c1c74ff5f42dc123dd"><code>&#34;uartlite&#34;</code></span>, <span id="dt-7cc59b5082731aa487ff"><code>&#34;jtag&#34;</code></span>, <span id="dt-d08dfdd2eaf4ff97f718"><code>&#34;mdio&#34;</code></span>, <span id="dt-789a8ec30c39c88679b4"><code>&#34;sdram&#34;</code></span>, <span id="dt-6c32e5174ed5b2370431"><code>&#34;pci&#34;</code></span>

<a id="dt-4969575ceb566cbe1bec"></a>

**Rule 2**

> <a id="dt-432b26bb0acb9364b8fd"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-0c132b4b89a8bcc5b70f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c0710cd022fc69913c5b"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-43eaed6309bb76e12ec5"><code>&#34;i2c&#34;</code></span>
>
> <a id="dt-a7100032fa50be5eac86"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-110a8e0a0b811e07fec2"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-2107d50673759ab5aa15"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-498fe156f02bae2d3dca"></a> <span id="dt-fd621aadc9c8f4b78f53"><code>&#34;i2c&#34;</code></span>

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

**Rule 3**

> <a id="dt-b12106793ef44031ff5d"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-a3aeab98aa1f650573b8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a9a6691e331385b8cff5"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-0aeb2d2f220b1729af6a"><code>&#34;spi&#34;</code></span>
>
> <a id="dt-406be944acbff6830b09"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-32d1ed4750e58e281750"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f236c98c1e0130001b28"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-c82b1eadd87ded2525d1"></a> <span id="dt-08833e2ef0657127ee63"><code>&#34;spi&#34;</code></span>

<a id="dt-3253c0a56e63064d08ea"></a>

**Rule 4**

> <a id="dt-9e68324997d44fb8cfc3"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-8f9edc2412a2c915bdf3"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-619a23696d904009e2d4"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-5993c2c0046dcc9e38b3"><code>&#34;uartlite&#34;</code></span>
>
> <a id="dt-0e09ae2ad2beb9550acc"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-bc30808f3b37ac9b7075"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9b0601f79627491790a0"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-339a4acfd7f5098186e5"></a> <span id="dt-0235e4df4ee901a493b9"><code>&#34;uartlite&#34;</code></span>

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

**Rule 5**

> <a id="dt-f8031879cdb0ff994352"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-050bd81a8829972d4b68"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-44b98f13434292d20b63"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-9022b66b8f998c8a5373"><code>&#34;jtag&#34;</code></span>
>
> <a id="dt-d896cffd814d9b423175"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-10c2fc54807590ccd25c"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8ef74a0c7bbc6a902d44"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-f3f54d48ea07dcdfc491"></a> <span id="dt-97190eb4e1b1f2adab86"><code>&#34;jtag&#34;</code></span>

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

**Rule 6**

> <a id="dt-4e9caacb28e0e9379f0e"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-dd19d2bb2adf5e5315a8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6462175f57f8a11c0e93"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-9fe85aeb082fb93ba04f"><code>&#34;mdio&#34;</code></span>
>
> <a id="dt-28baed8a85e8075eeb9f"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-e04ceda819833bde3d64"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d6831c291ee5e552159e"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-6f2b13162298d2aa2424"></a> <span id="dt-773ac24dff578801249c"><code>&#34;mdio&#34;</code></span>

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

**Rule 7**

> <a id="dt-112827f0d0b6fd286909"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-7c44f8f20cab9dae5082"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-3f0215d7b7896596582e"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-cde8d9b330cfb14f6422"><code>&#34;sdram&#34;</code></span>
>
> <a id="dt-fb013208cd7644ed47fc"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-317ac52c7a10a8410c1c"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d456a92ce3acab39e8c2"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-8fd23ebdc3bbd50043d2"></a> <span id="dt-f6e62d0f26caf4f84c97"><code>&#34;sdram&#34;</code></span>

<a id="dt-07358b1c7beaa62bc52a"></a>

**Rule 8**

> <a id="dt-984c4e62b4bc674423d8"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-c1e644edaaf442e65f25"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e77f6d6164b211582094"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-d8a21106af502bd980d3"><code>&#34;pci&#34;</code></span>
>
> <a id="dt-3758c8350f88472d71cc"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-3682219b94e544e8dc45"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8b5cf8554cb2bb3a9e56"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-88c0646823cdc27e356c"></a> <span id="dt-12483058b2d47adaceb6"><code>&#34;pci&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

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

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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">pinctrl {
  compatible = "ralink,rt2880-pinctrl";

  i2c_pins: i2c0-pins {
    pinmux {
      groups = "i2c";
      function = "i2c";
    };
  };
};
</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>
