# STM32 GPIO and Pin Mux/Config controller

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

> Device-tree binding reference for STM32 GPIO and Pin Mux/Config 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;pinctrl&#47;st&#44;stm32&#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;Alexandre TORGUE &#60;alexandre&#46;torgue&#64;foss&#46;st&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">STMicroelectronics's STM32 MCUs integrate a GPIO and Pin mux/config hardware
controller. It controls the input/output settings on the available pins and
also provides ability to multiplex and configure the output of various
on-chip controllers onto these pads.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;st&#44;stm32f429&#45;pinctrl&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;st&#44;stm32f469&#45;pinctrl&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;st&#44;stm32f746&#45;pinctrl&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;st&#44;stm32f769&#45;pinctrl&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;st&#44;stm32h743&#45;pinctrl&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;st&#44;stm32mp135&#45;pinctrl&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;st&#44;stm32mp157&#45;pinctrl&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;st&#44;stm32mp157&#45;z&#45;pinctrl&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;st&#44;stm32mp257&#45;pinctrl&#34;</code></span>, <span id="dt-1e634b71c3167df349bb"><code>&#34;st&#44;stm32mp257&#45;z&#45;pinctrl&#34;</code></span>

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>1</code></span>

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

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

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

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

### <code>pins&#45;are&#45;numbered</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a38b721761b42d822395">[<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-6863cfd96bfde27d76b8"><code>true</code></span>

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

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

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

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

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

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

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

### <code>st&#44;syscfg</code> — not listed as required here

<div id="dt-cd46a6ff2c24fa7b007e">
<p style="white-space: pre-wrap">Phandle+args to the syscon node which includes IRQ mux selection.</p>
</div>

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

<a id="dt-39b97864658ecd135d01"></a>

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

<a id="dt-6ad68663918ac4fc2b48"></a>

**Item 1**

> **Minimum number of items (<code>minItems</code>):** <span id="dt-7442a220e6d0c2fe2803"><code>2</code></span>
>
> <a id="dt-e000ffb148c125ff149f"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-e363fbf2ab4273d2f9a8"></a>
>
> **Item 1**
>
> > <div id="dt-abddebfae4612558c743">
> > <p style="white-space: pre-wrap">syscon node which includes IRQ mux selection</p>
> > </div>
>
> <a id="dt-1bad0b4194f367d52e8e"></a>
>
> **Item 2**
>
> > <div id="dt-0601795acb4be8e69e5a">
> > <p style="white-space: pre-wrap">The offset of the IRQ mux selection register</p>
> > </div>
>
> <a id="dt-7a27adb42d5945106b4b"></a>
>
> **Item 3**
>
> > <div id="dt-035abf4d0aa430e65a23">
> > <p style="white-space: pre-wrap">The field mask of IRQ mux, needed if different of 0xf</p>
> > </div>

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

### <code>st&#44;package</code> — not listed as required here

<div id="dt-0ebb58a92337bccdf857">
<p style="white-space: pre-wrap">Indicates the SOC package used. More details in include/dt-bindings/pinctrl/stm32-pinfunc.h</p>
</div>

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

**Allowed values (<code>enum</code>):** <a id="dt-840e408aab5f0807b5e2"></a> <span id="dt-f84897924ac8bb84c4bd"><code>1</code></span>, <span id="dt-6f3c99d681ba8a2daa8c"><code>2</code></span>, <span id="dt-f89906cd338f2a557316"><code>4</code></span>, <span id="dt-eab53eaf468656bc1bee"><code>8</code></span>, <span id="dt-42fe2381a7d887bc2e22"><code>256</code></span>, <span id="dt-406dc89e3cde88d96de4"><code>1024</code></span>, <span id="dt-515c1ceea60960091033"><code>2048</code></span>

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

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

<a id="dt-574a750ac34fe4536c58"></a>

### <code>&#94;gpio&#64;&#91;0&#45;9a&#45;f&#93;&#42;&#36;</code> — name matches this regular expression

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

<a id="dt-db0e073759e41a5f8ac6"></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-c92b2b8a5f3c3b309d7b"></a>

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

<a id="dt-56bcbad8b3158258c80d"></a>

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

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

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

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

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

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

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

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

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

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

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

<a id="dt-5081fea1cb3a805af25c"></a>

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

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

<a id="dt-9371ad6fa332c38e65a4"></a>

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

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

<a id="dt-34181d417033ba6a8609"></a>

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

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

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

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

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

<a id="dt-37299296d38c88d27dc3"></a>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-504a77689e21752c78a1"><code>16</code></span>

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

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

<div id="dt-4955ab8ba49dcc99624a">
<p style="white-space: pre-wrap">Number of available gpios in a bank.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-56b71db8f8f0d5865546"><code>1</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-d44bd19ed06c48feb2c3"><code>16</code></span>

<a id="dt-05a296c8fec45419cea4"></a>

**<code>st&#44;bank&#45;name</code> — required here**

<div id="dt-ed8342d67c350e96e6f2">
<p style="white-space: pre-wrap">Should be a name string for this bank as specified in the datasheet.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c528cc055dff6659dc93">[<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-242afd321e416b9d22d5"></a> <span id="dt-b10ef1914e934cad35dc"><code>&#34;GPIOA&#34;</code></span>, <span id="dt-cbc2eb2877a570de36df"><code>&#34;GPIOB&#34;</code></span>, <span id="dt-34ce484a20f723e58427"><code>&#34;GPIOC&#34;</code></span>, <span id="dt-701abaa07d7da3160c9b"><code>&#34;GPIOD&#34;</code></span>, <span id="dt-570453072314dff14a7f"><code>&#34;GPIOE&#34;</code></span>, <span id="dt-7805e147453f09e060e9"><code>&#34;GPIOF&#34;</code></span>, <span id="dt-31d531bc57f3636df9a2"><code>&#34;GPIOG&#34;</code></span>, <span id="dt-edd9997228ef714f34b0"><code>&#34;GPIOH&#34;</code></span>, <span id="dt-6c6663b5916951b544b6"><code>&#34;GPIOI&#34;</code></span>, <span id="dt-212d5a3d9bf6f0bd6469"><code>&#34;GPIOJ&#34;</code></span>, <span id="dt-7f581488412a4ced1ea6"><code>&#34;GPIOK&#34;</code></span>, <span id="dt-974bae1ca1a0cf1107b9"><code>&#34;GPIOZ&#34;</code></span>

<a id="dt-230f615f86439f2e5a7a"></a>

**<code>st&#44;bank&#45;ioport</code> — not listed as required here**

<div id="dt-e69dd248dc285c91582c">
<p style="white-space: pre-wrap">Should correspond to the EXTI IOport selection (EXTI line used to select GPIOs as interrupts).</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-9bf67b8af90461bb8d76"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-d078ac1c59a2f75c1fde"><code>11</code></span>

<a id="dt-658ef4de4477cd3c08c9"></a>

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

<a id="dt-9074194209b5e96a01ca"></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-a899b4473542e75b064a"><code>&#34;object&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-09ddf3ce68fa02717a16"></a> <span id="dt-cce649fdd95654df4af9"><code>&#34;gpio&#45;hog&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-bae7e65a810e8ebe6a34"></a> <span id="dt-be60bc4ec30798d70136"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-d222f8d4404d83dc47e9"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-40c293cb9b2994166db7"><code>&#34;reg&#34;</code></span>, <span id="dt-6a5d382b15878236c42e"><code>&#34;clocks&#34;</code></span>, <span id="dt-d583ad391687aa0430d4"><code>&#34;st&#44;bank&#45;name&#34;</code></span>

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

### <code>&#45;&#91;0&#45;9&#93;&#42;&#36;</code> — name matches this regular expression

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

<a id="dt-1b5bc6cf8b862e34fbe9"></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-4eeda172baa3f86dd767"></a>

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

<a id="dt-017139eebdadc0e13709"></a>

**<code>&#94;pins</code> — name matches this regular expression**

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

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

**Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**

<code>false</code>

Not allowed by this rule.

<div id="dt-5abb493a2199c0c3c9ee">
<p style="white-space: pre-wrap">A pinctrl node should contain at least one subnode representing the
pinctrl group available on the machine. Each subnode will list the
pins it needs, and how they should be configured, with regard to muxer
configuration, pullups, drive, output high/low and output speed.</p>
</div>

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

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e897a44ab0b46d9338e4">[<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>

<div id="dt-865555341322e0197d60">
<pre><code>Integer array, represents gpio pin number and mux setting.
Supported pin number and mux varies for different SoCs, and are
defined in dt-bindings/pinctrl/&lt;soc&gt;-pinfunc.h directly.
These defines are calculated as: ((port * 16 + line) &lt;&lt; 8) | function
With:
- port: The gpio port index (PA = 0, PB = 1, ..., PK = 11)
- line: The line offset within the port (PA0 = 0, PA1 = 1, ..., PA15 = 15)
- function: The function number, can be:
* 0 : GPIO
* 1 : Alternate Function 0
* 2 : Alternate Function 1
* 3 : Alternate Function 2
* ...
* 16 : Alternate Function 15
* 17 : Analog
* 18 : Reserved
To simplify the usage, macro is available to generate "pinmux" field.
This macro is available here:
  - include/dt-bindings/pinctrl/stm32-pinfunc.h
Setting the pinmux's function to the Reserved (RSVD) value is used to inform
the driver that it shall not apply the mux setting. This can be used to
reserve some pins, for example to a co-processor not running Linux.
Some examples of using macro:
 /* GPIO A9 set as alternate function 2 */
 ... {
            pinmux = &lt;STM32_PINMUX('A', 9, AF2)&gt;;
 };
 /* GPIO A9 set as GPIO  */
 ... {
            pinmux = &lt;STM32_PINMUX('A', 9, GPIO)&gt;;
 };
 /* GPIO A9 set as analog */
 ... {
            pinmux = &lt;STM32_PINMUX('A', 9, ANALOG)&gt;;
 };
 /* GPIO A9 reserved for co-processor */
 ... {
            pinmux = &lt;STM32_PINMUX('A', 9, RSVD)&gt;;
 };</code></pre>
</div>

<a id="dt-214f45f7cb746bf1adfd"></a>

**<code>bias&#45;disable</code> — not listed as required here**

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

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

**<code>bias&#45;pull&#45;down</code> — not listed as required here**

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

<a id="dt-1551df121fe17ab2dc3f"></a>

**<code>bias&#45;pull&#45;up</code> — not listed as required here**

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

<a id="dt-24f9b07fcce165d77a61"></a>

**<code>drive&#45;push&#45;pull</code> — not listed as required here**

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

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

**<code>drive&#45;open&#45;drain</code> — not listed as required here**

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

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

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

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

<a id="dt-71049d83effa226e444f"></a>

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

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

<a id="dt-0e5d4a0b43a5d288284b"></a>

**<code>slew&#45;rate</code> — not listed as required here**

<div id="dt-ef8cd19294dd7c990973">
<p style="white-space: pre-wrap">0: Low speed
1: Medium speed
2: Fast speed
3: High speed</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-f23e0018330076e66445"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-87d63d74fbfa5c32a2f4"><code>3</code></span>

<a id="dt-298dc94242a1a5f1b720"></a>

**<code>skew&#45;delay&#45;input&#45;ps</code> — not listed as required here**

<div id="dt-db2ddbc600763185705f">
<p style="white-space: pre-wrap">IO synchronization skew rate applied to the input path</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-9185c54431e9b802637b"></a> <span id="dt-c76a10393f4e9c207a80"><code>0</code></span>, <span id="dt-8c0bfab05ef225123513"><code>300</code></span>, <span id="dt-6846c0971ef4f2d7cc95"><code>500</code></span>, <span id="dt-11b052b528c78be432a0"><code>750</code></span>, <span id="dt-189c3136bb4b9916ad3b"><code>1000</code></span>, <span id="dt-e6c855fad11f63be51ff"><code>1250</code></span>, <span id="dt-7ef35c76b37e084d741e"><code>1500</code></span>, <span id="dt-2ac0065de0d9fc876024"><code>1750</code></span>, <span id="dt-3b79ce9f4853cf8bbfa2"><code>2000</code></span>, <span id="dt-dd3dfdc8e42f7a21f454"><code>2250</code></span>, <span id="dt-0745c2f9523d681ed0df"><code>2500</code></span>, <span id="dt-d01576427fe3908c8cbc"><code>2750</code></span>, <span id="dt-708ac1127b7d1f170e8f"><code>3000</code></span>, <span id="dt-3296d31a5d3e4864a7a2"><code>3250</code></span>

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

**<code>skew&#45;delay&#45;output&#45;ps</code> — not listed as required here**

<div id="dt-14175b0e5b2f5af3aeea">
<p style="white-space: pre-wrap">IO synchronization latch delay applied to the output path</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-327a6fa4349bec515cd9"></a> <span id="dt-ecf9be0fd6305a4e1b89"><code>0</code></span>, <span id="dt-cc57b84e8b7363607605"><code>300</code></span>, <span id="dt-d834117404e84ca2f388"><code>500</code></span>, <span id="dt-3ae5c616bb7e57b8ef8b"><code>750</code></span>, <span id="dt-16f1e1f2c48afea08c2e"><code>1000</code></span>, <span id="dt-fe98aeb1638da1b4cd52"><code>1250</code></span>, <span id="dt-eecce6d5c4753ad2b089"><code>1500</code></span>, <span id="dt-80a9ebb7dad1a72f2a67"><code>1750</code></span>, <span id="dt-e6a5a7e5e0b8fcbf3d5f"><code>2000</code></span>, <span id="dt-b2bbbcc161b970287ec6"><code>2250</code></span>, <span id="dt-8fa673553846e94df92e"><code>2500</code></span>, <span id="dt-8bca2f4666eeb97a9c09"><code>2750</code></span>, <span id="dt-0a332a927b333746b247"><code>3000</code></span>, <span id="dt-2d2cb4277c980563e7c7"><code>3250</code></span>

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

**<code>st&#44;io&#45;sync</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c384f7ef94b80e3c9ea8">[<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-0a65ca2bbd1a069c5857"></a> <span id="dt-26e0b1cb0d8f0839652b"><code>&#34;pass&#45;through&#34;</code></span>, <span id="dt-65cec86ff5b052260630"><code>&#34;clock inverted&#34;</code></span>, <span id="dt-2aaefdebac86c69ae7d2"><code>&#34;data on rising edge&#34;</code></span>, <span id="dt-00868db65a9aeb03e7e9"><code>&#34;data on falling edge&#34;</code></span>, <span id="dt-77629f86e2e62c06086e"><code>&#34;data on both edges&#34;</code></span>

<div id="dt-65bffef7add403d6f79c">
<p style="white-space: pre-wrap">IO synchronization through re-sampling or inversion
"pass-through"         - data or clock GPIO pass-through
"clock inverted"       - clock GPIO inverted
"data on rising edge"  - data GPIO re-sampled on clock rising edge
"data on falling edge" - data GPIO re-sampled on clock falling edge
"data on both edges"   - data GPIO re-sampled on both clock edges</p>
</div>

**Default value (<code>default</code>):** <span id="dt-bfb4bd70db810a7ba07c"><code>&#34;pass&#45;through&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-b46021cc607dc078a293"></a> <span id="dt-853880693f5406a307db"><code>&#34;pinmux&#34;</code></span>

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

**Condition (<code>if</code>)**

> **Required in this object (<code>required</code>):** <a id="dt-943004ecd4569d24db38"></a> <span id="dt-cc7b79ca1a01f06bce5c"><code>&#34;skew&#45;delay&#45;input&#45;ps&#34;</code></span>

<a id="dt-21123915f38ba4c44408"></a>

**When the condition matches (<code>then</code>)**

> <a id="dt-afa7feb0f6172855e718"></a>
>
> **Properties and child nodes (<code>properties</code>)**
>
> <a id="dt-8411c09bf6901b4ee54d"></a>
>
> **<code>skew&#45;delay&#45;output&#45;ps</code> — not listed as required here**
>
> <code>false</code> — Not permitted by this property 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-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-1f5272cb1d084137975e"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-eebbb9d41b21f12566d7"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-6aeb4c84797e4c678f3d"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-80145746a4351c4efa1b"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Allowed values (<code>enum</code>):** <a id="dt-443ad9ac2f97f204d10a"></a> <span id="dt-a909db0a3ccf92d72799"><code>&#34;st&#44;stm32mp257&#45;pinctrl&#34;</code></span>, <span id="dt-9fdadc529770563e596d"><code>&#34;st&#44;stm32mp257&#45;z&#45;pinctrl&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-8b91e530d80f7cc46df3"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-ae82a83029e9ab44b8fb"></a>
> >
> > **<code>&#45;&#91;0&#45;9&#93;&#42;&#36;</code> — name matches this regular expression**
> >
> > <a id="dt-316f3ba41031470fe032"></a>
> >
> > **Properties matching a name pattern (<code>patternProperties</code>)**
> >
> > <a id="dt-1325c6465a08afada1d1"></a>
> >
> > **<code>&#94;pins</code> — name matches this regular expression**
> >
> > <a id="dt-f3560165e4f632a360ca"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-73c9342eb8789ca5499a"></a>
> >
> > **<code>skew&#45;delay&#45;input&#45;ps</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-644b1411ea526a23c4d7"></a>
> >
> > **<code>skew&#45;delay&#45;output&#45;ps</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-a0d774710884f4ee0125"></a>
> >
> > **<code>st&#44;io&#45;sync</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

**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;&#35;address&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ranges&#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/pinctrl/stm32-pinfunc.h&gt;
#include &lt;dt-bindings/mfd/stm32f4-rcc.h&gt;
//Example 1
  pinctrl@40020000 {
          #address-cells = &lt;1&gt;;
          #size-cells = &lt;1&gt;;
          compatible = "st,stm32f429-pinctrl";
          ranges = &lt;0 0x40020000 0x3000&gt;;

          gpioa: gpio@0 {
                  gpio-controller;
                  #gpio-cells = &lt;2&gt;;
                  reg = &lt;0x0 0x400&gt;;
                  resets = &lt;&amp;reset_ahb1 0&gt;;
                  clocks = &lt;&amp;rcc 0 STM32F4_AHB1_CLOCK(GPIOA)&gt;;
                  st,bank-name = "GPIOA";
          };
   };

//Example 2 (using gpio-ranges)
  pinctrl@50020000 {
          #address-cells = &lt;1&gt;;
          #size-cells = &lt;1&gt;;
          compatible = "st,stm32f429-pinctrl";
          ranges = &lt;0 0x50020000 0x3000&gt;;

          gpiob: gpio@1000 {
                  gpio-controller;
                  #gpio-cells = &lt;2&gt;;
                  reg = &lt;0x1000 0x400&gt;;
                  resets = &lt;&amp;reset_ahb1 0&gt;;
                  clocks = &lt;&amp;rcc 0 STM32F4_AHB1_CLOCK(GPIOB)&gt;;
                  st,bank-name = "GPIOB";
                  gpio-ranges = &lt;&amp;pinctrl 0 0 16&gt;;
          };

          gpioc: gpio@2000 {
                  gpio-controller;
                  #gpio-cells = &lt;2&gt;;
                  reg = &lt;0x2000 0x400&gt;;
                  resets = &lt;&amp;reset_ahb1 0&gt;;
                  clocks = &lt;&amp;rcc 0 STM32F4_AHB1_CLOCK(GPIOC)&gt;;
                  st,bank-name = "GPIOC";
                  ngpios = &lt;5&gt;;
                  gpio-ranges = &lt;&amp;pinctrl 0 16 3&gt;,
                                &lt;&amp;pinctrl 14 30 2&gt;;
          };
  };

//Example 3 pin groups
  pinctrl {
    usart1_pins_a: usart1-0 {
            pins1 {
                    pinmux = &lt;STM32_PINMUX('A', 9, AF7)&gt;;
                    bias-disable;
                    drive-push-pull;
                    slew-rate = &lt;0&gt;;
            };
            pins2 {
                    pinmux = &lt;STM32_PINMUX('A', 10, AF7)&gt;;
                    bias-disable;
            };
    };
};

usart1 {
            pinctrl-0 = &lt;&amp;usart1_pins_a&gt;;
            pinctrl-names = "default";
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/pinctrl/stm32-pinfunc.h&gt;
//Example 4 skew-delay and st,io-sync
  pinctrl: pinctrl@44240000 {
          compatible = "st,stm32mp257-pinctrl";
          #address-cells = &lt;1&gt;;
          #size-cells = &lt;1&gt;;
          ranges = &lt;0 0x44240000 0xa0400&gt;;

          eth3_rgmii_pins_a: eth3-rgmii-0 {
                  pins1 {
                          pinmux = &lt;STM32_PINMUX('A', 6, AF14)&gt;;
                          st,io-sync = "data on both edges";
                  };
                  pins2 {
                          pinmux = &lt;STM32_PINMUX('H', 2, AF14)&gt;;
                          skew-delay-output-ps = &lt;500&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 OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright (C) STMicroelectronics 2019.</span></p>

<p id="dt-comment-2"><strong>Line 253:</strong> <span> Not allowed both skew-delay-input-ps and skew-delay-output-ps</span></p>

</details>
