# Sunplus SP7021 Pin Controller

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

> Device-tree binding reference for Sunplus SP7021 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;sunplus&#44;sp7021&#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;Dvorkin Dmitry &#60;dvorkin&#64;tibbo&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Wells Lu &#60;wellslutw&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Sunplus SP7021 pin controller is used to control SoC pins. Please
refer to pinctrl-bindings.txt in this directory for details of the common
pinctrl bindings used by client devices.</p>
<p style="white-space: pre-wrap">SP7021 has 99 digital GPIO pins which are numbered from GPIO 0 to 98. All
are multiplexed with some special function pins. SP7021 has 3 types of
special function pins:</p>
<pre><code>(1) function-group pins:
    Ex 1 (SPI-NOR flash):
      If control-field SPI_FLASH_SEL is set to 1, GPIO 83, 84, 86 and 87
      will be pins of SPI-NOR flash. If it is set to 2, GPIO 76, 78, 79
      and 81 will be pins of SPI-NOR flash.</code></pre>
<pre><code>    Ex 2 (UART_0):
      If control-bit UA0_SEL is set to 1, GPIO 88 and 89 will be TX and
      RX pins of UART_0 (UART channel 0).</code></pre>
<pre><code>    Ex 3 (eMMC):
      If control-bit EMMC_SEL is set to 1, GPIO 72, 73, 74, 75, 76, 77,
      78, 79, 80, 81 will be pins of an eMMC device.</code></pre>
<pre><code>    Properties "function" and "groups" are used to select function-group
    pins.</code></pre>
<pre><code>(2) fully pin-mux (like phone exchange mux) pins:
    GPIO 8 to 71 are 'fully pin-mux' pins. Any pins of peripherals of
    SP7021 (ex: UART_1, UART_2, UART_3, UART_4, I2C_0, I2C_1, and etc.)
    can be routed to any pins of fully pin-mux pins.</code></pre>
<pre><code>    Ex 1 (UART channel 1):
      If control-field UA1_TX_SEL is set to 3, TX pin of UART_1 will be
      routed to GPIO 10 (3 - 1 + 8 = 10).
      If control-field UA1_RX_SEL is set to 4, RX pin of UART_1 will be
      routed to GPIO 11 (4 - 1 + 8 = 11).
      If control-field UA1_RTS_SEL is set to 5, RTS pin of UART_1 will
      be routed to GPIO 12 (5 - 1 + 8 = 12).
      If control-field UA1_CTS_SEL is set to 6, CTS pin of UART_1 will
      be routed to GPIO 13 (6 - 1 + 8 = 13).</code></pre>
<pre><code>    Ex 2 (I2C channel 0):
      If control-field I2C0_CLK_SEL is set to 20, CLK pin of I2C_0 will
      be routed to GPIO 27 (20 - 1 + 8 = 27).
      If control-field I2C0_DATA_SEL is set to 21, DATA pin of I2C_0
      will be routed to GPIO 28 (21 - 1 + 9 = 28).</code></pre>
<pre><code>    Totally, SP7021 has 120 peripheral pins. The peripheral pins can be
    routed to any of 64 'fully pin-mux' pins.</code></pre>
<pre><code>(3) I/O processor pins
    SP7021 has a built-in I/O processor.
    Any GPIO pins (GPIO 0 to 98) can be set to pins of I/O processor.</code></pre>
<p style="white-space: pre-wrap">Vendor property "sunplus,pins" is used to select "fully pin-mux" pins,
"I/O processor pins" and "digital GPIO" pins.</p>
<p style="white-space: pre-wrap">The device node of pin controller of Sunplus SP7021 has following
properties.</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;sunplus&#44;sp7021&#45;pctl&#34;</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-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">the MOON2 registers</p>
> </div>

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

**Item 2**

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

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">the FIRST registers</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">the MOON1 registers</p>
> </div>

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

### <code>reg&#45;names</code> — required here

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

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

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

**Item 1**

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

<a id="dt-12013039402717d72b48"></a>

**Item 2**

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

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

**Item 3**

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

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

**Item 4**

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

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-86a6993fcd90367ac91d"><code>1</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>

<div id="dt-d0f0a177b390ac94f08f">
<p style="white-space: pre-wrap">A pinctrl node should contain at least one subnodes representing the
pins or function-pins group available on the machine. Each subnode
will list the pins it needs, and how they should be configured.</p>
<p style="white-space: pre-wrap">Pinctrl node's client devices use subnodes for desired pin
configuration. Client device subnodes use below standard properties.</p>
</div>

**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-ecc6c382576b1bff3c04"></a>

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

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

**<code>sunplus&#44;pins</code> — not listed as required here**

<div id="dt-0ef502350828f9f0668c">
<p style="white-space: pre-wrap">Define 'sunplus,pins' which are used by pinctrl node's client
device.</p>
<p style="white-space: pre-wrap">It consists of one or more integers which represents the config
setting for corresponding pin. Each integer defines a individual
pin in which:</p>
<pre><code>Bit 32~24: defines GPIO number. Its range is 0 ~ 98.
Bit 23~16: defines types: (1) fully pin-mux pins
                          (2) IO processor pins
                          (3) digital GPIO pins
Bit 15~8:  defines pins of peripherals (which are defined in
           'include/dt-binging/pinctrl/sppctl.h').
Bit 7~0:   defines types or initial-state of digital GPIO pins.</code></pre>
<p style="white-space: pre-wrap">Please use macro SPPCTL_IOPAD to define the integers for pins.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c7f290b76b43628d636e">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-03a03f95a666fe4b033c>)</span>

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

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

<div id="dt-66e1b1f7ee05f109c7f9">
<p style="white-space: pre-wrap">Define pin-function which is used by pinctrl node's client device.
The name should be one of string in the following enumeration.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-f150d7cb555e54280f5a"></a> <span id="dt-418c17df698d2c35b9a2"><code>&#34;SPI&#95;FLASH&#34;</code></span>, <span id="dt-872ddb5a8d0ec9f5b887"><code>&#34;SPI&#95;FLASH&#95;4BIT&#34;</code></span>, <span id="dt-e6f746a5c0f73cad03bd"><code>&#34;SPI&#95;NAND&#34;</code></span>, <span id="dt-9e690c6f2033b0443bcf"><code>&#34;CARD0&#95;EMMC&#34;</code></span>, <span id="dt-ca9b0825316107556fea"><code>&#34;SD&#95;CARD&#34;</code></span>, <span id="dt-e2a55a05faba06a4cf75"><code>&#34;UA0&#34;</code></span>, <span id="dt-5eacfd85c54d1c2d45fa"><code>&#34;FPGA&#95;IFX&#34;</code></span>, <span id="dt-57fa51802be3c54b23c9"><code>&#34;HDMI&#95;TX&#34;</code></span>, <span id="dt-7681f312e6b7551b2954"><code>&#34;LCDIF&#34;</code></span>, <span id="dt-895a943d2a5053d6c83d"><code>&#34;USB0&#95;OTG&#34;</code></span>, <span id="dt-1618b237014245c41458"><code>&#34;USB1&#95;OTG&#34;</code></span>

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

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

<div id="dt-f5f132eadc3ce2b93a6f">
<p style="white-space: pre-wrap">Define pin-group in a specified pin-function.
The name should be one of string in the following enumeration.</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-7da66071b5699a781fa1"></a> <span id="dt-635939d9b11d52991072"><code>&#34;SPI&#95;FLASH1&#34;</code></span>, <span id="dt-a0c4ad447eac60ee11c8"><code>&#34;SPI&#95;FLASH2&#34;</code></span>, <span id="dt-6b42b984e96553a65687"><code>&#34;SPI&#95;FLASH&#95;4BIT1&#34;</code></span>, <span id="dt-cd723406485a5d1fc3fb"><code>&#34;SPI&#95;FLASH&#95;4BIT2&#34;</code></span>, <span id="dt-467f66849892f0d73e54"><code>&#34;SPI&#95;NAND&#34;</code></span>, <span id="dt-72290a4c6c540eb93cb6"><code>&#34;CARD0&#95;EMMC&#34;</code></span>, <span id="dt-9b6544160a71777d37a1"><code>&#34;SD&#95;CARD&#34;</code></span>, <span id="dt-551af39f237cddc8b891"><code>&#34;UA0&#34;</code></span>, <span id="dt-9d4f8119c55d4589ca59"><code>&#34;FPGA&#95;IFX&#34;</code></span>, <span id="dt-4f94d354b6606d09cdc2"><code>&#34;HDMI&#95;TX1&#34;</code></span>, <span id="dt-b411b6554635c0991535"><code>&#34;HDMI&#95;TX2&#34;</code></span>, <span id="dt-aa49038541fde2d09a31"><code>&#34;HDMI&#95;TX3&#34;</code></span>, <span id="dt-a834e497eb3bd0ccd885"><code>&#34;LCDIF&#34;</code></span>, <span id="dt-d27fe81e5eb2b5623c72"><code>&#34;USB0&#95;OTG&#34;</code></span>, <span id="dt-8893984cd7614fd0b0f9"><code>&#34;USB1&#95;OTG&#34;</code></span>

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

**<code>sunplus&#44;zerofunc</code> — not listed as required here**

<div id="dt-81d8e922da8702fd7d09">
<p style="white-space: pre-wrap">This is a vendor specific property. It is used to disable pins
which are not used by pinctrl node's client device.
Some pins may be enabled by boot-loader. We can use this
property to disable them.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e6791d4727dddbaaed28">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-03a03f95a666fe4b033c>)</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-830aaa249c246a97e3e1"></a>

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

<a id="dt-4d439424caabb6c41d8f"></a>

**Rule 1**

> <a id="dt-bba6c60ff3dd5ec43e10"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-c8da0a8d773759259386"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-24af226b2971ee7a420f"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-9c4cb780d0947b551211"></a> <span id="dt-cad456b1f7e8c3939a9b"><code>&#34;SPI&#95;FLASH&#34;</code></span>
>
> <a id="dt-2c68b31cae03b20ac294"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-0a760e48b701acdb37c0"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-86aa57b7648a23ad84e3"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-f013d27a9377e257af9f"></a> <span id="dt-583c3cd338ea18db477b"><code>&#34;SPI&#95;FLASH1&#34;</code></span>, <span id="dt-cb87b0eb7750671dc8e4"><code>&#34;SPI&#95;FLASH2&#34;</code></span>

<a id="dt-4633a6073d5d7ec23ce3"></a>

**Rule 2**

> <a id="dt-af8b2dad74400767ea55"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-61ccb5f39357471c9f3e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-2507d96beb63c08cf5c8"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-e62de6670df2ec682ace"></a> <span id="dt-1c449c2455dfd6155a2d"><code>&#34;SPI&#95;FLASH&#95;4BIT&#34;</code></span>
>
> <a id="dt-bd3eab9ad4d5610d32dd"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-4e781e731fa7e361153d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bf1ebe9fb770d6c7640c"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-44396ce93a6650fd99b7"></a> <span id="dt-7509acfe332df3e796e4"><code>&#34;SPI&#95;FLASH&#95;4BIT1&#34;</code></span>, <span id="dt-e3f5e079aba23b0fe44b"><code>&#34;SPI&#95;FLASH&#95;4BIT2&#34;</code></span>

<a id="dt-66dce5a72b46fee49c93"></a>

**Rule 3**

> <a id="dt-926d629f8bddd4246e97"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-8c440455260830e75c84"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c92472d9480bd0940167"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-ec6ef6128b84534b9595"></a> <span id="dt-5aef8e9bb1f965d78c15"><code>&#34;SPI&#95;NAND&#34;</code></span>
>
> <a id="dt-32f80cd79e7ead330a7f"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-e7706a33951cc0430d6a"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-2f7320c3e28cb9ff989c"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-bea593bc265ebeebfbf1"></a> <span id="dt-c3a0f56df4b8b2a756e9"><code>&#34;SPI&#95;NAND&#34;</code></span>

<a id="dt-787e5e7ddf269df71098"></a>

**Rule 4**

> <a id="dt-398c2c4ec09a785b6fbf"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-decf3b77727f14bdfb83"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9cbb22a93cd1fdcfafef"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-86fce443cbbde24d52bd"></a> <span id="dt-ad01e313aff6526628c8"><code>&#34;CARD0&#95;EMMC&#34;</code></span>
>
> <a id="dt-b193ba03bea20b5a747a"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-7c8d7de67b9d6efa5dcc"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-4da4fc9295cd15a72100"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-9e1643626e30d8a91c58"></a> <span id="dt-f95ebd2649d9efd33c60"><code>&#34;CARD0&#95;EMMC&#34;</code></span>

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

**Rule 5**

> <a id="dt-54a91bd25c69b0d4c340"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-45536fe3fa95e909d956"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-60757778adc1619b465c"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-17c03bf69f61b601bfc1"></a> <span id="dt-a3d3479f537e26c83cb4"><code>&#34;SD&#95;CARD&#34;</code></span>
>
> <a id="dt-3806ac967a070aaf6197"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-ccdc4bd320214b7d1a63"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-1b0e184160f73f771433"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-4a5132bab07ca2be0f87"></a> <span id="dt-a82dab3c2e29631b67ea"><code>&#34;SD&#95;CARD&#34;</code></span>

<a id="dt-190ecf83fa7d0315e461"></a>

**Rule 6**

> <a id="dt-5ed8169313e45710ba22"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-51fd8e721142c4a832d2"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c0fcd2f6cfff702c4d1a"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-9dc8a2887bb47c2d5130"></a> <span id="dt-488fae070059e4afe4ff"><code>&#34;UA0&#34;</code></span>
>
> <a id="dt-c5025ff114da23854228"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-53ca2eb2912b999685b3"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f54e2782263bbe8867b9"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-4315312e1754bcaec187"></a> <span id="dt-c2046e02bc9100ea7fc9"><code>&#34;UA0&#34;</code></span>

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

**Rule 7**

> <a id="dt-deabeda62602f383f4f0"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-63ccae5ef7f941adbef8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-5628e0cda9d00119a347"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-0248ce2af4266090d7c1"></a> <span id="dt-14a4a8e0cb80da113e35"><code>&#34;FPGA&#95;IFX&#34;</code></span>
>
> <a id="dt-373d0b23a9b239087d12"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-c572d195f6fc53a93619"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f130ddeb0153f9d85b77"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-166f58c28df4653a48fb"></a> <span id="dt-e08a0c8834fb83310e70"><code>&#34;FPGA&#95;IFX&#34;</code></span>

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

**Rule 8**

> <a id="dt-c2c372de81a6f4599774"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-769f341020f39ee07c47"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6a69623c18c4f3eefce8"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-1e1382565ce680dc2bc4"></a> <span id="dt-d7f46567e1f00a14dfa0"><code>&#34;HDMI&#95;TX&#34;</code></span>
>
> <a id="dt-5b8bcdf061793bacc1f7"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-a84a3d2ff165a25fd366"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-9782c731017915d4e90c"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-0f5cdf821eb39b069c59"></a> <span id="dt-64c2c9b9d97465c12125"><code>&#34;HDMI&#95;TX1&#34;</code></span>, <span id="dt-3ff32aa73b4c34a6c20f"><code>&#34;HDMI&#95;TX2&#34;</code></span>, <span id="dt-99d68a75a93da05741e2"><code>&#34;HDMI&#95;TX3&#34;</code></span>

<a id="dt-1af907c08bde4bcda030"></a>

**Rule 9**

> <a id="dt-a80ca0c61e82dabc28c8"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-9eada176f7656cf60aac"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b505332f0e5d9fa16ce4"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-e23cd59d801300595b42"></a> <span id="dt-f90331ee999143870850"><code>&#34;LCDIF&#34;</code></span>
>
> <a id="dt-233e7c79642cf24c5a22"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-db11f2b0e6ef851128e7"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-46d40dfdfc1b5eb387c6"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-762b94d099ce09709e7a"></a> <span id="dt-ec0a8e962732987493d3"><code>&#34;LCDIF&#34;</code></span>

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

**Rule 10**

> <a id="dt-4ddfdc6385f712181cc0"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-53c674150ff5d9487f82"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9462bbcee2acc16db6d"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-be3371d680ab89a05a63"></a> <span id="dt-94fe6fd5bee47099cb33"><code>&#34;USB0&#95;OTG&#34;</code></span>
>
> <a id="dt-8fd141cc26e7c217a84d"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-01469f0d16dfeaba8810"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-84cffe3df51f4b8362e5"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-4b2bd2d19585aa8ad79b"></a> <span id="dt-4a35ae598ae825d40206"><code>&#34;USB0&#95;OTG&#34;</code></span>

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

**Rule 11**

> <a id="dt-784a715daf0d4d4d6947"></a>
>
> **Condition (<code>if</code>)**
>
> > <a id="dt-36c3f7842404bfc58190"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f0b1f1bcf109f1b55682"></a>
> >
> > **<code>function</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-2483f900c3ea85ab3c7c"></a> <span id="dt-5c42b5f2110b0cb5b71c"><code>&#34;USB1&#95;OTG&#34;</code></span>
>
> <a id="dt-2a0ec55e3143cd5927c3"></a>
>
> **When the condition matches (<code>then</code>)**
>
> > <a id="dt-71a9f36e2648864b6524"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-4b9188de64ef5d0496c6"></a>
> >
> > **<code>groups</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-191d8778a9c9093ec915"></a> <span id="dt-56145d41ad22da2f7b04"><code>&#34;USB1&#95;OTG&#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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;clocks&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;resets&#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-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>

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/pinctrl/sppctl-sp7021.h&gt;

pinctrl@9c000100 {
    compatible = "sunplus,sp7021-pctl";
    reg = &lt;0x9c000100 0x100&gt;, &lt;0x9c000300 0x100&gt;,
          &lt;0x9c0032e4 0x1c&gt;, &lt;0x9c000080 0x20&gt;;
    reg-names = "moon2", "gpioxt", "first", "moon1";
    gpio-controller;
    #gpio-cells = &lt;2&gt;;
    clocks = &lt;&amp;clkc 0x83&gt;;
    resets = &lt;&amp;rstc 0x73&gt;;

    uart0-pins {
        function = "UA0";
        groups = "UA0";
    };

    spinand0-pins {
        function = "SPI_NAND";
        groups = "SPI_NAND";
    };

    uart1-pins {
        sunplus,pins = &lt;
            SPPCTL_IOPAD(11, SPPCTL_PCTL_G_PMUX, MUXF_UA1_TX, 0)
            SPPCTL_IOPAD(10, SPPCTL_PCTL_G_PMUX, MUXF_UA1_RX, 0)
        &gt;;
    };

    uart2-pins {
        sunplus,pins = &lt;
            SPPCTL_IOPAD(20, SPPCTL_PCTL_G_PMUX, MUXF_UA1_TX, 0)
            SPPCTL_IOPAD(21, SPPCTL_PCTL_G_PMUX, MUXF_UA1_RX, 0)
            SPPCTL_IOPAD(22, SPPCTL_PCTL_G_PMUX, MUXF_UA1_RTS, 0)
            SPPCTL_IOPAD(23, SPPCTL_PCTL_G_PMUX, MUXF_UA1_CTS, 0)
        &gt;;
    };

    emmc-pins {
        function = "CARD0_EMMC";
        groups = "CARD0_EMMC";
    };

    sdcard-pins {
        function = "SD_CARD";
        groups = "SD_CARD";
        sunplus,pins = &lt; SPPCTL_IOPAD(91, SPPCTL_PCTL_G_GPIO, 0, 0) &gt;;
    };

    hdmi_A_tx1-pins {
        function = "HDMI_TX";
        groups = "HDMI_TX1";
    };
    hdmi_A_tx2-pins {
        function = "HDMI_TX";
        groups = "HDMI_TX2";
    };
    hdmi_A_tx3-pins {
        function = "HDMI_TX";
        groups = "HDMI_TX3";
    };

    ethernet-pins {
        sunplus,pins = &lt;
            SPPCTL_IOPAD(49,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_CLK_OUT,0)
            SPPCTL_IOPAD(44,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_MAC_SMI_MDC,0)
            SPPCTL_IOPAD(43,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_MAC_SMI_MDIO,0)
            SPPCTL_IOPAD(52,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXEN,0)
            SPPCTL_IOPAD(50,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXD0,0)
            SPPCTL_IOPAD(51,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXD1,0)
            SPPCTL_IOPAD(46,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_CRSDV,0)
            SPPCTL_IOPAD(47,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_RXD0,0)
            SPPCTL_IOPAD(48,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_RXD1,0)
        &gt;;
        sunplus,zerofunc = &lt;
            MUXF_L2SW_LED_FLASH0
            MUXF_L2SW_LED_ON0
            MUXF_L2SW_P0_MAC_RMII_RXER
        &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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) Sunplus Co., Ltd.</span></p>

</details>
