# Sophgo CV1800 Pin Controller

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

> Device-tree binding reference for Sophgo CV1800 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;sophgo&#44;cv1800&#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;Inochi Amaoto &#60;inochiama&#64;outlook&#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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;sophgo&#44;cv1800b&#45;pinctrl&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;sophgo&#44;cv1812h&#45;pinctrl&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;sophgo&#44;sg2000&#45;pinctrl&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;sophgo&#44;sg2002&#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">pinctrl for system domain</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">pinctrl for rtc domain</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;sys&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;rtc&#34;</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-e92215bd3c2f5373b164"></a>

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

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

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

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

<div id="dt-29a5791beee62cf474d8">
<p style="white-space: pre-wrap">A pinctrl node should contain at least one subnode representing the pinctrl groups available on the machine.</p>
</div>

<a id="dt-c585109ab96ce3634f06"></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-6587e986a22eb0742cc2"></a>

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

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

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

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

<div id="dt-d320c2d25f0cffc852f1">
<p style="white-space: pre-wrap">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, slew-rate, drive strength
and bus hold state. In addition, all pins in the same subnode
should have the same power domain. For configuration detail,
refer to https://github.com/sophgo/sophgo-doc/.</p>
</div>

<a id="dt-1286ce356c1102015efe"></a>

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

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

**Rule 1**

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

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

**Rule 2**

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

<a id="dt-48f77668f0630213cff6"></a>

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

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

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

<div id="dt-2e926b7c0fc7e4566c72">
<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 PINMUX or PINMUX2
macro.</p>
</div>

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

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

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

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

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

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

<a id="dt-740ebb1c4a660c418efd"></a>

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

<div id="dt-4a04eaeb1dd6de27c2c2">
<p style="white-space: pre-wrap">typical current when output high level.</p>
</div>

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

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

<div id="dt-bf2382b79462085574a1">
<p style="white-space: pre-wrap">typical threshold for schmitt trigger.</p>
</div>

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

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

<div id="dt-5bc39a9b62fae860b606">
<p style="white-space: pre-wrap">power supplies at X mV.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-4b313fa038b21890f57a"></a> <span id="dt-25556ef7dbd2c680bb25"><code>1800</code></span>, <span id="dt-8852fd914e27684bc4fe"><code>3300</code></span>

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

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

<div id="dt-bb375ea7264099b3e72d">
<p style="white-space: pre-wrap">slew rate for output buffer (0 is fast, 1 is slow)</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-8e76460337620b15a184"></a> <span id="dt-14d7d6f2033bcc34a392"><code>0</code></span>, <span id="dt-df7392ff12620384da12"><code>1</code></span>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-8d36acb7228596d67090"></a> <span id="dt-0cd052ddcc306f968e18"><code>&#34;pinmux&#34;</code></span>, <span id="dt-3f09d2670c2c4ddc4aff"><code>&#34;power&#45;source&#34;</code></span>

<a id="dt-ca121e5914c0df29a6f8"></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;reg&#45;names&#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/pinctrl-cv1800b.h&gt;

pinctrl@3001000 {
    compatible = "sophgo,cv1800b-pinctrl";
    reg = &lt;0x03001000 0x1000&gt;,
          &lt;0x05027000 0x1000&gt;;
    reg-names = "sys", "rtc";

    uart0_cfg: uart0-cfg {
        uart0-pins {
            pinmux = &lt;PINMUX(PIN_UART0_TX, 0)&gt;,
                     &lt;PINMUX(PIN_UART0_RX, 0)&gt;;
            bias-pull-up;
            drive-strength-microamp = &lt;10800&gt;;
            input-schmitt-microvolt = &lt;0&gt;;
            power-source = &lt;3300&gt;;
            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>
