# Freescale IMX8M IOMUX Controller

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

> Device-tree binding reference for Freescale IMX8M IOMUX 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;fsl&#44;imx8m&#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;Peng Fan &#60;peng&#46;fan&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory for common binding part and usage.</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;fsl&#44;imx8mm&#45;iomuxc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;fsl&#44;imx8mn&#45;iomuxc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;fsl&#44;imx8mp&#45;iomuxc&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;fsl&#44;imx8mq&#45;iomuxc&#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-e92215bd3c2f5373b164"></a>

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

<a id="dt-167ee70d44c4fc4662e7"></a>

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

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

<div id="dt-d911c18801d9b4b8ea12">
<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-38d566ac64305a5398e6"></a>

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

<a id="dt-35056c7b21fa98bd8bfd"></a>

**<code>fsl&#44;pins</code> — required here**

<div id="dt-8a2081d26f72e9dca554">
<p style="white-space: pre-wrap">each entry consists of 6 integers and represents the mux and config setting for one pin. The first 5 integers &lt;mux_reg conf_reg input_reg mux_val input_val&gt; are specified using a PIN_FUNC_ID macro, which can be found in &lt;arch/arm64/boot/dts/freescale/imx8m[m,n,p,q]-pinfunc.h&gt;. The last integer CONFIG is the pad setting value like pull-up on this pin. Please refer to i.MX8M Mini/Nano/Plus/Quad Reference Manual for detailed CONFIG settings.</p>
</div>

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

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

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

> <a id="dt-268de68a98769774f580"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-0bb5a80f53abaecb69a2"></a>
>
> **Item 1**
>
> > <div id="dt-273abfabe9fe89ae145a">
> > <p style="white-space: pre-wrap">"mux_reg" indicates the offset of mux register.</p>
> > </div>
>
> <a id="dt-bc5cfc0d78fc9add83fd"></a>
>
> **Item 2**
>
> > <div id="dt-56c98e4124c8830a4182">
> > <p style="white-space: pre-wrap">"conf_reg" indicates the offset of pad configuration register.</p>
> > </div>
>
> <a id="dt-ac26f46ee99e9afade56"></a>
>
> **Item 3**
>
> > <div id="dt-7e5a80794aa4bdaf5a5f">
> > <p style="white-space: pre-wrap">"input_reg" indicates the offset of select input register.</p>
> > </div>
>
> <a id="dt-1746170e074ff402dc03"></a>
>
> **Item 4**
>
> > <div id="dt-5e5ac9bed6de90301685">
> > <p style="white-space: pre-wrap">"mux_val" indicates the mux value to be applied.</p>
> > </div>
>
> <a id="dt-e43018f710267fd4a7b8"></a>
>
> **Item 5**
>
> > <div id="dt-e335cb7b899b66e98e24">
> > <p style="white-space: pre-wrap">"input_val" indicates the select input value to be applied.</p>
> > </div>
>
> <a id="dt-72014aea4c9c9daf176f"></a>
>
> **Item 6**
>
> > <div id="dt-2e0faee19ba070507a9d">
> > <p style="white-space: pre-wrap">"pad_setting" indicates the pad configuration value to be
> > applied.</p>
> > </div>

**Required in this object (<code>required</code>):** <a id="dt-421e642aea8e611d6a58"></a> <span id="dt-5411719ffe4aa34346f4"><code>&#34;fsl&#44;pins&#34;</code></span>

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

**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">iomuxc: pinctrl@30330000 {
    compatible = "fsl,imx8mm-iomuxc";
    reg = &lt;0x30330000 0x10000&gt;;

    pinctrl_uart2: uart2grp {
        fsl,pins =
            &lt;0x23C 0x4A4 0x4FC 0x0 0x0	0x140&gt;,
            &lt;0x240 0x4A8 0x000 0x0 0x0	0x140&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 27:</strong> <span> Client device subnode's properties</span></p>

<p id="dt-comment-2"><strong>Line 77:</strong> <span> Pinmux controller node</span></p>

</details>
