# Freescale IMX35/IMX5x/IMX6 IOMUX Controller

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

> Device-tree binding reference for Freescale IMX35/IMX5x/IMX6 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;imx35&#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;Dong Aisheng &#60;aisheng&#46;dong&#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-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>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;fsl&#44;imx35&#45;iomuxc&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;fsl&#44;imx51&#45;iomuxc&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;fsl&#44;imx53&#45;iomuxc&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;fsl&#44;imx6dl&#45;iomuxc&#34;</code></span>, <span id="dt-d29c3f554eb9a606c63a"><code>&#34;fsl&#44;imx6q&#45;iomuxc&#34;</code></span>, <span id="dt-6abdfa16ccd722b794e6"><code>&#34;fsl&#44;imx6sl&#45;iomuxc&#34;</code></span>, <span id="dt-7775c6eae6cdca3e9809"><code>&#34;fsl&#44;imx6sll&#45;iomuxc&#34;</code></span>, <span id="dt-9727c2c60e912d553bb7"><code>&#34;fsl&#44;imx6sx&#45;iomuxc&#34;</code></span>, <span id="dt-1361d1fce62d86040b5e"><code>&#34;fsl&#44;imx6ul&#45;iomuxc&#34;</code></span>, <span id="dt-a66cdf3fb4555997cc02"><code>&#34;fsl&#44;imx6ull&#45;iomuxc&#45;snvs&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;fsl&#44;imx50&#45;iomuxc&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fsl&#44;imx53&#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/arm/boot/dts/nxp/imx/imx*-pinfunc.h&gt;. The last integer CONFIG is the pad setting value like pull-up on this pin. Please refer to matching i.MX 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">
> > <pre><code>"pad_setting" indicates the pad configuration value to be applied.
> > Common i.MX35
> >   PAD_CTL_DRIVE_VOLAGAGE_18       (1 &lt;&lt; 13)
> >   PAD_CTL_DRIVE_VOLAGAGE_33       (0 &lt;&lt; 13)
> >   PAD_CTL_HYS                     (1 &lt;&lt; 8)
> >   PAD_CTL_PKE                     (1 &lt;&lt; 7)
> >   PAD_CTL_PUE                     (1 &lt;&lt; 6)
> >   PAD_CTL_PUS_100K_DOWN           (0 &lt;&lt; 4)
> >   PAD_CTL_PUS_47K_UP              (1 &lt;&lt; 4)
> >   PAD_CTL_PUS_100K_UP             (2 &lt;&lt; 4)
> >   PAD_CTL_PUS_22K_UP              (3 &lt;&lt; 4)
> >   PAD_CTL_ODE_CMOS                (0 &lt;&lt; 3)
> >   PAD_CTL_ODE_OPENDRAIN           (1 &lt;&lt; 3)
> >   PAD_CTL_DSE_NOMINAL             (0 &lt;&lt; 1)
> >   PAD_CTL_DSE_HIGH                (1 &lt;&lt; 1)
> >   PAD_CTL_DSE_MAX                 (2 &lt;&lt; 1)
> >   PAD_CTL_SRE_FAST                (1 &lt;&lt; 0)
> >   PAD_CTL_SRE_SLOW                (0 &lt;&lt; 0)
> > Common i.MX50/i.MX51/i.MX53 bits
> >   PAD_CTL_HVE                     (1 &lt;&lt; 13)
> >   PAD_CTL_HYS                     (1 &lt;&lt; 8)
> >   PAD_CTL_PKE                     (1 &lt;&lt; 7)
> >   PAD_CTL_PUE                     (1 &lt;&lt; 6)
> >   PAD_CTL_PUS_100K_DOWN           (0 &lt;&lt; 4)
> >   PAD_CTL_PUS_47K_UP              (1 &lt;&lt; 4)
> >   PAD_CTL_PUS_100K_UP             (2 &lt;&lt; 4)
> >   PAD_CTL_PUS_22K_UP              (3 &lt;&lt; 4)
> >   PAD_CTL_ODE                     (1 &lt;&lt; 3)
> >   PAD_CTL_DSE_LOW                 (0 &lt;&lt; 1)
> >   PAD_CTL_DSE_MED                 (1 &lt;&lt; 1)
> >   PAD_CTL_DSE_HIGH                (2 &lt;&lt; 1)
> >   PAD_CTL_DSE_MAX                 (3 &lt;&lt; 1)
> >   PAD_CTL_SRE_FAST                (1 &lt;&lt; 0)
> >   PAD_CTL_SRE_SLOW                (0 &lt;&lt; 0)
> > Common i.MX6 bits
> >   PAD_CTL_HYS                     (1 &lt;&lt; 16)
> >   PAD_CTL_PUS_100K_DOWN           (0 &lt;&lt; 14)
> >   PAD_CTL_PUS_47K_UP              (1 &lt;&lt; 14)
> >   PAD_CTL_PUS_100K_UP             (2 &lt;&lt; 14)
> >   PAD_CTL_PUS_22K_UP              (3 &lt;&lt; 14)
> >   PAD_CTL_PUE                     (1 &lt;&lt; 13)
> >   PAD_CTL_PKE                     (1 &lt;&lt; 12)
> >   PAD_CTL_ODE                     (1 &lt;&lt; 11)
> >   PAD_CTL_SPEED_LOW               (0 &lt;&lt; 6)
> >   PAD_CTL_SPEED_MED               (1 &lt;&lt; 6)
> >   PAD_CTL_SPEED_HIGH              (3 &lt;&lt; 6)
> >   PAD_CTL_DSE_DISABLE             (0 &lt;&lt; 3)
> >   PAD_CTL_SRE_FAST                (1 &lt;&lt; 0)
> >   PAD_CTL_SRE_SLOW                (0 &lt;&lt; 0)
> > i.MX6SL/MX6SLL specific bits
> >   PAD_CTL_LVE                     (1 &lt;&lt; 22) (MX6SL/SLL only)
> > i.MX6SLL/i.MX6SX/i.MX6UL/i.MX6ULL specific bits
> >   PAD_CTL_DSE_260ohm              (1 &lt;&lt; 3)
> >   PAD_CTL_DSE_130ohm              (2 &lt;&lt; 3)
> >   PAD_CTL_DSE_87ohm               (3 &lt;&lt; 3)
> >   PAD_CTL_DSE_65ohm               (4 &lt;&lt; 3)
> >   PAD_CTL_DSE_52ohm               (5 &lt;&lt; 3)
> >   PAD_CTL_DSE_43ohm               (6 &lt;&lt; 3)
> >   PAD_CTL_DSE_37ohm               (7 &lt;&lt; 3)
> > i.MX6DL/i.MX6Q/i.MX6SL specific bits
> >   PAD_CTL_DSE_240ohm              (1 &lt;&lt; 3)
> >   PAD_CTL_DSE_120ohm              (2 &lt;&lt; 3)
> >   PAD_CTL_DSE_80ohm               (3 &lt;&lt; 3)
> >   PAD_CTL_DSE_60ohm               (4 &lt;&lt; 3)
> >   PAD_CTL_DSE_48ohm               (5 &lt;&lt; 3)
> >   PAD_CTL_DSE_40ohm               (6 &lt;&lt; 3)
> >   PAD_CTL_DSE_34ohm               (7 &lt;&lt; 3)</code></pre>
> > </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.

**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@20e0000 {
  compatible = "fsl,imx6ul-iomuxc";
  reg = &lt;0x020e0000 0x4000&gt;;

  mux_uart: uartgrp {
    fsl,pins = &lt;
      0x0084 0x0310 0x0000 0 0 0x1b0b1
      0x0088 0x0314 0x0624 0 3 0x1b0b1
    &gt;;
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">iomuxc_snvs: pinctrl@2290000 {
  compatible = "fsl,imx6ull-iomuxc-snvs";
  reg = &lt;0x02290000 0x4000&gt;;

  pinctrl_snvs_usbc_det: snvsusbcdetgrp {
    fsl,pins = &lt;
      0x0010 0x0054 0x0000 0x5 0x0 0x130b0
    &gt;;
  };
};
</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">iomuxc_mx6q: pinctrl@20e0000 {
    compatible = "fsl,imx6q-iomuxc";
    reg = &lt;0x20e0000 0x4000&gt;;

    pinctrl_uart4: uart4grp {
        fsl,pins =
            &lt;0x288 0x658 0x000 0x3 0x0	0x140&gt;,
            &lt;0x28c 0x65c 0x938 0x3 0x3	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 40:</strong> <span> Client device subnode's properties</span></p>

</details>
