# I/O channel multiplexer

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / multiplexer_

> Device-tree binding reference for I/O channel multiplexer.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;iio&#47;multiplexer&#47;io&#45;channel&#45;mux&#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;Peter Rosin &#60;peda&#64;axentia&#46;se&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">If a multiplexer is used to select which hardware signal is fed to
e.g. an ADC channel, these bindings describe that situation.</p>
<p style="white-space: pre-wrap">For each non-empty string in the channels property, an io-channel will be
created. The number of this io-channel is the same as the index into the list
of strings in the channels property, and also matches the mux controller
state. The mux controller state is described in
Documentation/devicetree/bindings/mux/mux-controller.yaml</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;io&#45;channel&#45;mux&#34;</code></span>

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

### <code>io&#45;channels</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b9221b1187f40eb0f40e"><code>1</code></span>

<div id="dt-00f0389e57ab952e1ac1">
<p style="white-space: pre-wrap">Channel node of the parent channel that has multiplexed input.</p>
</div>

<a id="dt-52503acc5d03431d5405"></a>

### <code>io&#45;channel&#45;names</code> — required here

**Exact value (<code>const</code>):** <span id="dt-27bb6bb6712fac2e8172"><code>&#34;parent&#34;</code></span>

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

### <code>mux&#45;controls</code> — required here

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

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

### <code>mux&#45;control&#45;names</code> — not listed as required here

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

<a id="dt-747d0a2c406f7ba77072"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9f5eaa4d79d94acc8981">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;non&#45;unique&#45;string&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-493f5d03b14b15ff7558>)</span>

<div id="dt-3a9053fc83b3427e8296">
<p style="white-space: pre-wrap">List of strings, labeling the mux controller states. An empty string for a state means that the channel is not available.</p>
</div>

<a id="dt-90e6abe3a781f3f2b386"></a>

### <code>settle&#45;time&#45;us</code> — not listed as required here

**Default value (<code>default</code>):** <span id="dt-cbb77a959e8dea0840d8"><code>0</code></span>

<div id="dt-225927c603d01664344d">
<p style="white-space: pre-wrap">Time required for analog signals to settle after muxing.</p>
</div>

<a id="dt-6971e222e0082656e9f5"></a>

### <code>&#35;io&#45;channel&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-d32aef3dfe12cf2b3de1"><code>1</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;io&#45;channels&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;io&#45;channel&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;mux&#45;controls&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;channels&#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/gpio/gpio.h&gt;
mux: mux-controller {
  compatible = "gpio-mux";
  #mux-control-cells = &lt;0&gt;;

  mux-gpios = &lt;&amp;pioA 0 GPIO_ACTIVE_HIGH&gt;,
              &lt;&amp;pioA 1 GPIO_ACTIVE_HIGH&gt;;
};

adc-mux {
  compatible = "io-channel-mux";
  io-channels = &lt;&amp;adc 0&gt;;
  io-channel-names = "parent";

  mux-controls = &lt;&amp;mux&gt;;
  channels = "sync", "in", "system-regulator";
};
</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</span></p>

</details>
