# Common multiplexer controller consumer

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

> Device-tree binding reference for Common multiplexer controller consumer.

<!-- 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;mux&#47;mux&#45;consumer&#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">Mux controller consumers should specify a list of mux controllers that they
want to use with a property containing a 'mux-ctrl-list':</p>
<pre><code>  mux-ctrl-list ::= &lt;single-mux-ctrl&gt; [mux-ctrl-list]
  single-mux-ctrl ::= &lt;mux-ctrl-phandle&gt; [mux-ctrl-specifier]
  mux-ctrl-phandle : phandle to mux controller node
  mux-ctrl-specifier : array of #mux-control-cells specifying the
                       given mux controller (controller specific)</code></pre>
<p style="white-space: pre-wrap">Mux controller properties should be named "mux-controls". The exact meaning of
each mux controller property must be documented in the device tree binding for
each consumer. An optional property "mux-control-names" may contain a list of
strings to label each of the mux controllers listed in the "mux-controls"
property.</p>
<p style="white-space: pre-wrap">If it is required to provide the state that the mux controller needs to
be set to, the property "mux-states" must be used. An optional property
"mux-state-names" can be used to provide a list of strings, to label
each of the multiplixer states listed in the "mux-states" property.</p>
<p style="white-space: pre-wrap">Properties "mux-controls" and "mux-states" can be used depending on how
the consumers want to control the mux controller. If the consumer needs
needs to set multiple states in a mux controller, then property
"mux-controls" can be used. If the consumer needs to set the mux
controller to a given state then property "mux-states" can be used.</p>
<p style="white-space: pre-wrap">mux-ctrl-specifier typically encodes the chip-relative mux controller number.
If the mux controller chip only provides a single mux controller, the
mux-ctrl-specifier can typically be left out.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>true</code>

This selection rule always matches.

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-924312f386431bb50909">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-773c584138dc066d517e">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-8f5710c4314b4caa4970>)</span>

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

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

<div id="dt-abbc31c6045d84976466">
<p style="white-space: pre-wrap">Devices that use more than a single mux controller can use the "mux-control-names" property to map the name of the requested mux controller to an index into the list given by the "mux-controls" property.</p>
</div>

<a id="dt-0620e4a0be54e52ed2f3"></a>

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

<div id="dt-1498fd385302e9b4ba06">
<p style="white-space: pre-wrap">Devices that use more than a single multiplexer state can use the "mux-state-names" property to map the name of the requested mux controller to an index into the list given by the "mux-states" property.</p>
</div>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

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