# StarFive JH7110 SYS Pin Controller

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

> Device-tree binding reference for StarFive JH7110 SYS 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;starfive&#44;jh7110&#45;sys&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Bindings for the JH7110 RISC-V SoC from StarFive Technology Ltd.</p>
<p style="white-space: pre-wrap">Out of the SoC's many pins only the ones named PAD_GPIO0 to PAD_GPIO63
can be multiplexed and have configurable bias, drive strength,
schmitt trigger etc.
Some peripherals have their I/O go through the 64 "GPIOs". This also
includes a number of other UARTs, I2Cs, SPIs, PWMs etc.
All these peripherals are connected to all 64 GPIOs such that
any GPIO can be set up to be controlled by any of the peripherals.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Hal Feng &#60;hal&#46;feng&#64;starfivetech&#46;com&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;starfive&#44;jh7110&#45;sys&#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-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> — not listed as required here

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

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

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

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

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

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

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

<a id="dt-8586fac2d9a71adf4795"></a>

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

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>2</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-e92215bd3c2f5373b164"></a>

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

<a id="dt-767024746c3f2e8ec95b"></a>

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

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

<a id="dt-69d18d7b4e9c4581a5d1"></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-b8feb3c9def75425153c"></a>

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

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

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

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

<div id="dt-8ce33d991ee07e82e1ab">
<p style="white-space: pre-wrap">A pinctrl node should contain at least one subnode 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, bias, input enable/disable, input schmitt
trigger enable/disable, slew-rate and drive strength.</p>
</div>

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

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

<a id="dt-564053a0b25b6ea120fa"></a>

**Rule 1**

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

**Rule 2**

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

<a id="dt-b6906daa802ce692c5da"></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-cdedaec80e9b14429049"></a>

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

<a id="dt-63e9fe06f4ca4d294661"></a>

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

<div id="dt-2cdd5afba37ec31ebe4c">
<p style="white-space: pre-wrap">The list of GPIOs and their mux settings that properties in the
node apply to. This should be set using the GPIOMUX or PINMUX
macros.</p>
</div>

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

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

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

<a id="dt-2246d24e24dd48f0ca04"></a>

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

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

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

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-9400080d2e8c9f3cf87d"></a> <span id="dt-7cdd46e58f0f2cf13b9e"><code>2</code></span>, <span id="dt-904de5a3f687902ea624"><code>4</code></span>, <span id="dt-d13f5bb2cb4a9e94980f"><code>8</code></span>, <span id="dt-8898d6d945fb0cec4e83"><code>12</code></span>

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

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

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

<a id="dt-96fb76fccdb40b067089"></a>

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

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

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

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

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

<a id="dt-cd314575a2fd17816460"></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-f0717e307e2b54ff2c5a"></a>

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

**Maximum value (<code>maximum</code>):** <span id="dt-56ef913d5bd54258a468"><code>1</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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;&#35;gpio&#45;cells&#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@13040000 {
    compatible = "starfive,jh7110-sys-pinctrl";
    reg = &lt;0x13040000 0x10000&gt;;
    clocks = &lt;&amp;syscrg 112&gt;;
    resets = &lt;&amp;syscrg 2&gt;;
    interrupts = &lt;86&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;2&gt;;
    gpio-controller;
    #gpio-cells = &lt;2&gt;;

    uart0-0 {
        tx-pins {
            pinmux = &lt;0xff140005&gt;;
            bias-disable;
            drive-strength = &lt;12&gt;;
            input-disable;
            input-schmitt-disable;
            slew-rate = &lt;0&gt;;
        };

        rx-pins {
            pinmux = &lt;0x0E000406&gt;;
            bias-pull-up;
            drive-strength = &lt;2&gt;;
            input-enable;
            input-schmitt-enable;
            slew-rate = &lt;0&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>

</details>
