# Cix Sky1 Soc Pin Controller

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

> Device-tree binding reference for Cix Sky1 Soc 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;cix&#44;sky1&#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;Gary Yang &#60;gary&#46;yang&#64;cixtech&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The pin-controller is used to control Soc pins. There are two pin-controllers on Cix Sky1 platform. one is used under S0 state, the other one is used under S0 and S5 state.</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;cix&#44;sky1&#45;pinctrl&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;cix&#44;sky1&#45;pinctrl&#45;s5&#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 base</p>
> </div>

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

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

<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-6587e986a22eb0742cc2"></a>

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

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

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

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

<a id="dt-89de825ed3a72447b97e"></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-549adada725339229f8c">
<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 pull, and drive strength.</p>
</div>

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

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

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

**Rule 1**

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

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

**Rule 2**

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

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

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

<a id="dt-47ea48ce503a7ef07f38"></a>

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

<div id="dt-5b3f883750654e4298ad">
<p style="white-space: pre-wrap">Values are constructed from pin number and mux setting, pin number is left shifted by 8 bits, then ORed with mux setting</p>
</div>

<a id="dt-052e120677f369b2c9e1"></a>

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

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

<a id="dt-31ca6904af0720e843a0"></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-e831b10e92d04607cb3c"></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-746968c7d594d2c2f834"></a>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-c697a196cb4f3daa3f35"></a> <span id="dt-df2b3471d088762ba017"><code>2</code></span>, <span id="dt-959b439d7b67fcb9dcdf"><code>3</code></span>, <span id="dt-1a2da843c463fab6556d"><code>5</code></span>, <span id="dt-36dd10c39fb1633ef94a"><code>6</code></span>, <span id="dt-0b0716700db74355632a"><code>8</code></span>, <span id="dt-2661d119d0a0657ce41f"><code>9</code></span>, <span id="dt-4a6a2fbbf1816d8a1d33"><code>11</code></span>, <span id="dt-5c7e4bbee8b909096e62"><code>12</code></span>, <span id="dt-321935aef1cefc1588fe"><code>13</code></span>, <span id="dt-7ee862e86624d24566f8"><code>14</code></span>, <span id="dt-21889cb53d622dc9d137"><code>17</code></span>, <span id="dt-e8170b94946ada14aff9"><code>18</code></span>, <span id="dt-4bfa7ea3a93cd4ac6773"><code>20</code></span>, <span id="dt-c53c777be2cb30a0b978"><code>21</code></span>, <span id="dt-09253f4649cbe33fe2a5"><code>23</code></span>, <span id="dt-f8c6d887ffcb17a6f2df"><code>24</code></span>

**Required in this object (<code>required</code>):** <a id="dt-aca263d803d81884ca98"></a> <span id="dt-50b6b89d479f664cb1e4"><code>&#34;pinmux&#34;</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>

<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">#define CIX_PAD_GPIO012_FUNC_GPIO012 (11 &lt;&lt; 8 | 0x0)
pinctrl@4170000 {
    compatible = "cix,sky1-pinctrl";
    reg = &lt;0x4170000 0x1000&gt;;

    wifi_vbat_gpio: wifi-vbat-gpio-cfg {
        pins {
            pinmux = &lt;CIX_PAD_GPIO012_FUNC_GPIO012&gt;;
            bias-pull-up;
            drive-strength = &lt;8&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>
