# Renesas RZ/N1 Pin Controller

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

> Device-tree binding reference for Renesas RZ/N1 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;renesas&#44;rzn1&#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;Fabrizio Castro &#60;fabrizio&#46;castro&#46;jz&#64;renesas&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Geert Uytterhoeven &#60;geert&#43;renesas&#64;glider&#46;be&#62;&#34;</code></span>

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

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;renesas&#44;r9a06g032&#45;pinctrl&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;renesas&#44;rzn1&#45;pinctrl&#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">GPIO Multiplexing Level1 Register Block</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">GPIO Multiplexing Level2 Register Block</p>
> </div>

<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-041d7cd76b652a5de06a"></a>

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

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

<div id="dt-d153c20aa0faf1618c41">
<p style="white-space: pre-wrap">The bus clock, sometimes described as pclk, for register accesses.</p>
</div>

<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>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

> <a id="dt-74025fdda3b0f2ccbb52"></a>
>
> ### At least one of these rules must match (<code>anyOf</code>)
>
> <a id="dt-a33e995e3459bbc9c3bf"></a>
>
> #### Rule 1
>
> > **Value type (<code>type</code>):** <span id="dt-8f7d8194563269752d66"><code>&#34;object&#34;</code></span>
> >
> > <a id="dt-cd38571e0ef2875bbf7e"></a>
> >
> > **All of these rules must match (<code>allOf</code>)**
> >
> > <a id="dt-67bf03de8b1cd4523243"></a>
> >
> > **Rule 1**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a1e025752b4ac3b293ee">[<code>pincfg&#45;node&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/pincfg-node.md#dt-root>)</span>
> >
> > <a id="dt-eb191eda50c42855c8ad"></a>
> >
> > **Rule 2**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-85ccf6e810e3dfc514c5">[<code>pinmux&#45;node&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/pinmux-node.md#dt-root>)</span>
> >
> > <div id="dt-5ef1ad922cfb1e1b3a8c">
> > <p style="white-space: pre-wrap">A pin multiplexing sub-node describes how to configure a set of (or a single) pin in some desired alternate function mode. A single sub-node may define several pin configurations.</p>
> > </div>
> >
> > <a id="dt-ee2c393d33ea61fdcb10"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-987f796a07866a67e141"></a>
> >
> > **<code>pinmux</code> — required here**
> >
> > <div id="dt-656fcad37ea816c980dd">
> > <p style="white-space: pre-wrap">Integer array representing pin number and pin multiplexing
> > configuration.
> > When a pin has to be configured in alternate function mode, use
> > this property to identify the pin by its global index, and provide
> > its alternate function configuration number along with it.
> > When multiple pins are required to be configured as part of the
> > same alternate function they shall be specified as members of the
> > same argument list of a single "pinmux" property.
> > Integers values in the "pinmux" argument list are assembled as:
> > (PIN | MUX_FUNC &lt;&lt; 8)
> > where PIN directly corresponds to the pl_gpio pin number and
> > MUX_FUNC is one of the alternate function identifiers defined in:
> > &lt;include/dt-bindings/pinctrl/rzn1-pinctrl.h&gt;
> > These identifiers collapse the IO Multiplex Configuration Level 1
> > and Level 2 numbers that are detailed in the hardware reference
> > manual into a single number. The identifiers for Level 2 are simply
> > offset by 10.  Additional identifiers are provided to specify the
> > MDIO source peripheral.</p>
> > </div>
> >
> > <a id="dt-8f48d1dffc68d4490708"></a>
> >
> > **<code>bias&#45;disable</code> — not listed as required here**
> >
> > <code>true</code> — No constraints added by this property rule.
> >
> > <a id="dt-9b3ec6913eba857e208a"></a>
> >
> > **<code>bias&#45;pull&#45;up</code> — not listed as required here**
> >
> > <div id="dt-4cb17eb03dc3db88cccf">
> > <p style="white-space: pre-wrap">Pull up the pin with 50 kOhm</p>
> > </div>
> >
> > <a id="dt-9cb4598a8a1e96496969"></a>
> >
> > **<code>bias&#45;pull&#45;down</code> — not listed as required here**
> >
> > <div id="dt-4a8323448d16a9a9fa5c">
> > <p style="white-space: pre-wrap">Pull down the pin with 50 kOhm</p>
> > </div>
> >
> > <a id="dt-fbe622e2b7683fbb5041"></a>
> >
> > **<code>bias&#45;high&#45;impedance</code> — not listed as required here**
> >
> > <code>true</code> — No constraints added by this property rule.
> >
> > <a id="dt-5adecc923314d003965b"></a>
> >
> > **<code>drive&#45;strength</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-b86f8dcf51b67b3eb83d"></a> <span id="dt-e0ab1514f8c1ba910856"><code>4</code></span>, <span id="dt-f2e254413ac4b8c44882"><code>6</code></span>, <span id="dt-90f92162a74612b028b8"><code>8</code></span>, <span id="dt-d460de651041eb61e71a"><code>12</code></span>
> >
> > **Required in this object (<code>required</code>):** <a id="dt-919bbbcbeed554b46cc2"></a> <span id="dt-231102036fc0ec7e09c8"><code>&#34;pinmux&#34;</code></span>
> >
> > <a id="dt-b64bb7c924d4e6b8ba7a"></a>
> >
> > **Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f867c60e3597737347b7">[<code>&#35;&#47;additionalProperties&#47;anyOf&#47;0</code>](<#dt-a33e995e3459bbc9c3bf>)</span>
>
> <a id="dt-9f432d735b8d2134a7ea"></a>
>
> #### Rule 2
>
> > **Value type (<code>type</code>):** <span id="dt-8ced3f9faed618b8bf5b"><code>&#34;object&#34;</code></span>
> >
> > <a id="dt-bce3783d1f440a7733bc"></a>
> >
> > **Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fd78f5954bc3d12343f8">[<code>&#35;&#47;additionalProperties&#47;anyOf&#47;0</code>](<#dt-a33e995e3459bbc9c3bf>)</span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/clock/r9a06g032-sysctrl.h&gt;
#include &lt;dt-bindings/pinctrl/rzn1-pinctrl.h&gt;
pinctrl: pinctrl@40067000 {
        compatible = "renesas,r9a06g032-pinctrl", "renesas,rzn1-pinctrl";
        reg = &lt;0x40067000 0x1000&gt;, &lt;0x51000000 0x480&gt;;
        clocks = &lt;&amp;sysctrl R9A06G032_HCLK_PINCONFIG&gt;;
        clock-names = "bus";

        /*
         * A serial communication interface with a TX output pin and an RX
         * input pin.
         */
        pins_uart0: pins_uart0 {
                pinmux = &lt;
                        RZN1_PINMUX(103, RZN1_FUNC_UART0_I) /* UART0_TXD */
                        RZN1_PINMUX(104, RZN1_FUNC_UART0_I) /* UART0_RXD */
                &gt;;
        };

        /*
         * Set the pull-up on the RXD pin of the UART.
         */
        pins_uart0_alt: pins_uart0_alt {
                pinmux = &lt;RZN1_PINMUX(103, RZN1_FUNC_UART0_I)&gt;;

                pins_uart6_rx {
                        pinmux = &lt;RZN1_PINMUX(104, RZN1_FUNC_UART0_I)&gt;;
                        bias-pull-up;
                };
        };
};
</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 16:</strong> <span> RZ/N1D</span></p>

<p id="dt-comment-2"><strong>Line 17:</strong> <span> Generic RZ/N1</span></p>

</details>
