# Nuvoton MA35D1 pin control and GPIO

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

> Device-tree binding reference for Nuvoton MA35D1 pin control and GPIO.

<!-- 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;nuvoton&#44;ma35d1&#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;Shan&#45;Chun Hung &#60;schung&#64;nuvoton&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Jacky Huang &#60;ychuang3&#64;nuvoton&#46;com&#62;&#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>

<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;nuvoton&#44;ma35d1&#45;pinctrl&#34;</code></span>

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

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

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

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

### <code>&#35;address&#45;cells</code> — not listed as 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> — not listed as required here

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

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

### <code>nuvoton&#44;sys</code> — required here

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

<div id="dt-95f64646ac357b28824a">
<p style="white-space: pre-wrap">phandle of the system-management node.</p>
</div>

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

### <code>ranges</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-83ffd0aecad0478199bc"></a>

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

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

<a id="dt-8fc8c6ec54f04ed64062"></a>

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

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

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

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

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

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

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

<a id="dt-955294291eef170c25da"></a>

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

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

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

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

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

<a id="dt-64b16b3f1f7401311bc8"></a>

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

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

<a id="dt-1203d079f1d3f223332a"></a>

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

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

<a id="dt-72b6ee74b6188484fc3f"></a>

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

<div id="dt-f09d625dfe1ca747d40f">
<p style="white-space: pre-wrap">The interrupt outputs to sysirq.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-ef5427162f081e95a3ef"></a> <span id="dt-d799f9ae19e7d6509c9f"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-d65a35737b942bdaf3d5"><code>&#34;&#35;gpio&#45;cells&#34;</code></span>, <span id="dt-20aaef827df3a8435d8c"><code>&#34;reg&#34;</code></span>, <span id="dt-55f3c73f2de07af87de4"><code>&#34;clocks&#34;</code></span>, <span id="dt-0d8c6f5aa6c73c303821"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-6e9f2ebd012a4a6ac676"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-e863164afbc27369d723"><code>&#34;interrupts&#34;</code></span>

<a id="dt-d89d2d553a5efcc4738e"></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-76b00ad14b2cb0cb885a"></a>

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

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

<div id="dt-8038d7bef5525b285e4e">
<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>

<a id="dt-7817f007f3dab7f92a1d"></a>

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

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

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

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

<div id="dt-e44c8570b894b0ee75f8">
<p style="white-space: pre-wrap">A pinctrl node should contain at least one subnodes representing the pinctrl groups 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 strength, input enable/disable and input schmitt.</p>
</div>

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

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

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

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

<div id="dt-0cca7aece37ee36aacf6">
<p style="white-space: pre-wrap">Each entry consists of 4 parameters and represents the mux and config setting for one pin.</p>
</div>

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

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

<a id="dt-076d8e02e88af257467d"></a>

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

> <a id="dt-6194d1af8f01f0f8a81b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-31612925db8dd34653ad"></a>
>
> **Item 1**
>
> > **Minimum value (<code>minimum</code>):** <span id="dt-c185c5038cb0cfa4fa24"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-aabcc92a6d2a9b761e9c"><code>13</code></span>
> >
> > <div id="dt-1926cd72f86d7e804dca">
> > <p style="white-space: pre-wrap">Pin bank.</p>
> > </div>
>
> <a id="dt-d22977d1695866730047"></a>
>
> **Item 2**
>
> > **Minimum value (<code>minimum</code>):** <span id="dt-a7b86f6e51ba19eb6fa4"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-c1a024bdbc5b3bcf7703"><code>15</code></span>
> >
> > <div id="dt-e56b5dc59aee1a975beb">
> > <p style="white-space: pre-wrap">Pin bank index.</p>
> > </div>
>
> <a id="dt-809c4df0e3daf60a8470"></a>
>
> **Item 3**
>
> > **Minimum value (<code>minimum</code>):** <span id="dt-597869e737f7e037d1dc"><code>0</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-2467a32b3de0436e6ee9"><code>15</code></span>
> >
> > <div id="dt-942841ae94922f3bd640">
> > <p style="white-space: pre-wrap">Mux 0 means GPIO and mux 1 to 15 means the specific device function.</p>
> > </div>

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

**<code>power&#45;source</code> — not listed as required here**

<div id="dt-feab8e1395b3649ea6a6">
<p style="white-space: pre-wrap">Valid arguments are described as below:
0: power supply of 1.8V
1: power supply of 3.3V</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-17e54517ba970744e5a8"></a> <span id="dt-ff0ff0d1660729086678"><code>0</code></span>, <span id="dt-f403e34deb6fba216ce4"><code>1</code></span>

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

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

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

**Exactly one of these rules must match (<code>oneOf</code>)**

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-6da9b37f0a3c32665dae"></a> <span id="dt-122089a7dcf852175732"><code>2900</code></span>, <span id="dt-babee8f6d5545f8a99ab"><code>4400</code></span>, <span id="dt-9c1abbffbc736c737608"><code>5800</code></span>, <span id="dt-9af085486c304ba9828a"><code>7300</code></span>, <span id="dt-b005998fbc881fcba739"><code>8600</code></span>, <span id="dt-b6b67120c699db4f329b"><code>10100</code></span>, <span id="dt-64f51bd67795f916f616"><code>11500</code></span>, <span id="dt-fb4a46031b07993502d1"><code>13000</code></span>
>
> <div id="dt-3334532b6ffe268ed02d">
> <p style="white-space: pre-wrap">1.8V I/O driving strength</p>
> </div>

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

**Rule 2**

> **Allowed values (<code>enum</code>):** <a id="dt-186e3f00b6d99976b4e7"></a> <span id="dt-1dae8c0f483102b94c39"><code>17100</code></span>, <span id="dt-bfeba38b56b5fd4fdb58"><code>25600</code></span>, <span id="dt-b4f1142c1d77d8277060"><code>34100</code></span>, <span id="dt-d033fc8e8950734df724"><code>42800</code></span>, <span id="dt-27ccb16148d5701eea07"><code>48000</code></span>, <span id="dt-e012751990b199e5edc7"><code>56000</code></span>, <span id="dt-a55454d15d188c8def7a"><code>77000</code></span>, <span id="dt-88da9d5f481d3591581a"><code>82000</code></span>
>
> <div id="dt-d612b89b41f234560f51">
> <p style="white-space: pre-wrap">3.3V I/O driving strength</p>
> </div>

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

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

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

<a id="dt-73797b53e753449e41e5"></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-f81241c5dce96e8296f9"></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-1920d2648b07b5c4dddb"></a>

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

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

<a id="dt-9e1ae3f139651e69d8f8"></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-84f1c4fb942b76bb0c57"></a>

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

<code>false</code>

Not allowed by this 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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;nuvoton&#44;sys&#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;
#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/clock/nuvoton,ma35d1-clk.h&gt;

pinctrl@40040000 {
    compatible = "nuvoton,ma35d1-pinctrl";
    reg = &lt;0x40040000 0xc00&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    nuvoton,sys = &lt;&amp;sys&gt;;
    ranges = &lt;0x0 0x40040000 0x400&gt;;

    gpio@0 {
        reg = &lt;0x0 0x40&gt;;
        interrupts = &lt;GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH&gt;;
        clocks = &lt;&amp;clk GPA_GATE&gt;;
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        interrupt-controller;
        #interrupt-cells = &lt;2&gt;;
    };

    uart-grp {
        uart11-pins {
            nuvoton,pins = &lt;11 0 2&gt;,
                           &lt;11 1 2&gt;,
                           &lt;11 2 2&gt;,
                           &lt;11 3 2&gt;;
            power-source = &lt;1&gt;;
            bias-disable;
        };
    };
};
</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>
