# NXP S32G2 pin controller

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

> Device-tree binding reference for NXP S32G2 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;nxp&#44;s32g2&#45;siul2&#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;Ghennadi Procopciuc &#60;Ghennadi&#46;Procopciuc&#64;oss&#46;nxp&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Chester Lin &#60;chester62515&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>S32G2 pinmux is implemented in SIUL2 (System Integration Unit Lite2),
whose memory map is split into two regions:
  SIUL2_0 @ 0x4009c000
  SIUL2_1 @ 0x44010000</code></pre>
<p style="white-space: pre-wrap">Every SIUL2 region has multiple register types, and here only MSCR and
IMCR registers need to be revealed for kernel to configure pinmux.</p>
<p style="white-space: pre-wrap">Please note that some register indexes are reserved in S32G2, such as
MSCR102-MSCR111, MSCR123-MSCR143, IMCR84-IMCR118 and IMCR398-IMCR429.</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;nxp&#44;s32g2&#45;siul2&#45;pinctrl&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<pre><code>A list of MSCR/IMCR register regions to be reserved.
- MSCR (Multiplexed Signal Configuration Register)
  An MSCR register can configure the associated pin as either a GPIO pin
  or a function output pin depends on the selected signal source.
- IMCR (Input Multiplexed Signal Configuration Register)
  An IMCR register can configure the associated pin as function input
  pin depends on the selected signal source.</code></pre>
</div>

<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">MSCR registers group 0 in SIUL2_0</p>
> </div>

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

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">MSCR registers group 1 in SIUL2_1</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">MSCR registers group 2 in SIUL2_1</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">IMCR registers group 0 in SIUL2_0</p>
> </div>

<a id="dt-55b482bd3ef74ad8e49c"></a>

**Item 5**

> <div id="dt-9034b08616e8a84a1200">
> <p style="white-space: pre-wrap">IMCR registers group 1 in SIUL2_1</p>
> </div>

<a id="dt-7eb2e2ea414ce6daa055"></a>

**Item 6**

> <div id="dt-3ae17db5a7c599245517">
> <p style="white-space: pre-wrap">IMCR registers group 2 in SIUL2_1</p>
> </div>

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

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

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

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

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

<a id="dt-9069dcc32114c9a4bdd9"></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-f2c13f8782757ab52e33"></a>

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

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

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

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

<a id="dt-551473651551f5695624"></a>

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

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

**Rule 1**

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

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

**Rule 2**

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

<div id="dt-60929e04e35f5f6e26b0">
<p style="white-space: pre-wrap">Pinctrl node's client devices specify pin muxes using subnodes,
which in turn use the standard properties below.</p>
</div>

<a id="dt-67e2463091f1b6b9d055"></a>

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

<a id="dt-06ea5ca3a82690b95cba"></a>

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

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

<a id="dt-2a1cd99bae681d615ec2"></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-09ba1bbcb6aecc4a4c8b"></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-1bc6ed580b824cf64a5b"></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-88ed8eb57294575d06fc"></a>

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

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

<a id="dt-23218ecd2d7fb0ad10ec"></a>

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

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

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

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

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

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

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

<div id="dt-75c6dc70ddceb829ac0a">
<p style="white-space: pre-wrap">An integer array for representing pinmux configurations of
a device. Each integer consists of a PIN_ID and a 4-bit
selected signal source(SSS) as IOMUX setting, which is
calculated as: pinmux = (PIN_ID &lt;&lt; 4 | SSS)</p>
</div>

<a id="dt-19cf236eb4f4d14dc1b5"></a>

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

<div id="dt-24ce4108d5ab24e8680a">
<p style="white-space: pre-wrap">Supported slew rate based on Fmax values (MHz)</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-e3dad7243f6854aca24b"></a> <span id="dt-57f423ebe1191e1f0cd8"><code>83</code></span>, <span id="dt-e8bbb41c2fc1bdbc8767"><code>133</code></span>, <span id="dt-8fba8afa23ea117bc3bf"><code>150</code></span>, <span id="dt-b9fb6e9fb62e9e5ac7fc"><code>166</code></span>, <span id="dt-1d186097aee6a823e0db"><code>208</code></span>

<a id="dt-9ea97a221868be6a2116"></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>

<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@4009c240 {
    compatible = "nxp,s32g2-siul2-pinctrl";

          /* MSCR0-MSCR101 registers on siul2_0 */
    reg = &lt;0x4009c240 0x198&gt;,
          /* MSCR112-MSCR122 registers on siul2_1 */
          &lt;0x44010400 0x2c&gt;,
          /* MSCR144-MSCR190 registers on siul2_1 */
          &lt;0x44010480 0xbc&gt;,
          /* IMCR0-IMCR83 registers on siul2_0 */
          &lt;0x4009ca40 0x150&gt;,
          /* IMCR119-IMCR397 registers on siul2_1 */
          &lt;0x44010c1c 0x45c&gt;,
          /* IMCR430-IMCR495 registers on siul2_1 */
          &lt;0x440110f8 0x108&gt;;

    llce-can0-pins {
        llce-can0-grp0 {
            pinmux = &lt;0x2b0&gt;;
            input-enable;
            slew-rate = &lt;208&gt;;
        };

        llce-can0-grp1 {
            pinmux = &lt;0x2c2&gt;;
            output-enable;
            slew-rate = &lt;208&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2022 NXP</span></p>

</details>
