# Cirrus Logic Madera class audio CODECs

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

> Device-tree binding reference for Cirrus Logic Madera class audio CODECs.

<!-- 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;sound&#47;cirrus&#44;madera&#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;patches&#64;opensource&#46;cirrus&#46;com&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This describes audio configuration bindings for these codecs.</p>
<p style="white-space: pre-wrap">See also the core bindings for the parent MFD driver:</p>
<pre><code>  Documentation/devicetree/bindings/mfd/cirrus,madera.yaml</code></pre>
<p style="white-space: pre-wrap">and defines for values used in these bindings:</p>
<pre><code>  include/dt-bindings/sound/madera.h</code></pre>
<p style="white-space: pre-wrap">The properties are all contained in the parent MFD node.</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>dai&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-sound/dai-common.md#dt-root>)</span>

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

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

<a id="dt-4a22cdb1eade348ac0d4"></a>

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

<div id="dt-c6fec2b67f85839e5c16">
<p style="white-space: pre-wrap">The first cell indicating the audio interface.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-06650c5e4c981bc2a500"><code>1</code></span>

<a id="dt-1f57f730a6dc16ec6676"></a>

### <code>cirrus&#44;inmode</code> — not listed as required here

<div id="dt-179d90b0999fa6360443">
<p style="white-space: pre-wrap">A list of input mode settings for each input. A maximum of 24 cells, with four cells per input in the order INnAL, INnAR INnBL INnBR.  For non-muxed inputs the first two cells for that input set the mode for the left and right channel and the second two cells must be 0.  For muxed inputs the first two cells for that input set the mode of the left and right A inputs and the second two cells set the mode of the left and right B inputs.  Valid mode values are one of the MADERA_INMODE_xxx. If the array is shorter than the number of inputs the unspecified inputs default to MADERA_INMODE_DIFF.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-3a4a4bfac81f5e444c05"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-6a31238493c61bc45dfc"><code>24</code></span>

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-1318799756f9f42d7d6f"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-f369a07a473933ffc5df"><code>1</code></span>
>
> **Default value (<code>default</code>):** <span id="dt-ae6da2fa4b41c8891fa5"><code>0</code></span>

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

### <code>cirrus&#44;out&#45;mono</code> — not listed as required here

<div id="dt-69a32060fbebd58b17be">
<p style="white-space: pre-wrap">Mono bit for each output, maximum of six cells if the array is shorter outputs will be set to stereo.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-52b4645594f8b934a32b"><code>1</code></span>

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

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

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

> **Minimum value (<code>minimum</code>):** <span id="dt-5aaa6afdd3e9eb651f07"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-7eac5fd762feeb2a8b60"><code>1</code></span>
>
> **Default value (<code>default</code>):** <span id="dt-5f74754edbac5f1bf96e"><code>0</code></span>

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

### <code>cirrus&#44;dmic&#45;ref</code> — not listed as required here

<div id="dt-d16affc39e44a5e221a3">
<p style="white-space: pre-wrap">Indicates how the MICBIAS pins have been externally connected
to DMICs on each input, one cell per input.</p>
<pre><code>  &lt;IN1 IN2 IN3 ...&gt;</code></pre>
<p style="white-space: pre-wrap">A value of 0 indicates MICVDD and is the default,
other values depend on the codec: For CS47L35 one of the
CS47L35_DMIC_REF_xxx values For all other codecs one of
the MADERA_DMIC_REF_xxx values Also see the datasheet for a
description of the INn_DMIC_SUP field.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-015b6544c750ff0cf327"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-4237073a315ffb976144"><code>6</code></span>

<a id="dt-3485dc37acebdd1385ee"></a>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-be99e65428f693d3fb8d"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-8c72d4cdca8f77e1a7a2"><code>3</code></span>
>
> **Default value (<code>default</code>):** <span id="dt-bbc11202a194d3eda2a6"><code>0</code></span>

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

### <code>cirrus&#44;max&#45;channels&#45;clocked</code> — not listed as required here

<div id="dt-7bc8618782f0342278f8">
<p style="white-space: pre-wrap">Maximum number of channels that I2S clocks will be generated for. Useful when clock master for systems where the I2S bus has multiple data lines.  One cell for each AIF, use a value of zero for AIFs that should be handled normally.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-300d20f9db4e293ca4e1"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-750b7e3f16af34782c4a"><code>4</code></span>

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

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

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

<a id="dt-3ac734aea4c6217c6991"></a>

### <code>cirrus&#44;pdm&#45;fmt</code> — not listed as required here

<div id="dt-7d57436a452fd91e3c8a">
<p style="white-space: pre-wrap">PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See the PDM_SPKn_FMT field in the datasheet for a description of this value. The second cell is ignored for codecs that do not have OUT6.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-0f8c73cd33f1ef1fffc3"><code>2</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-0c9167ea134ad5599663"><code>2</code></span>

<a id="dt-72b707c2d4909213e4c2"></a>

### <code>cirrus&#44;pdm&#45;mute</code> — not listed as required here

<div id="dt-d7c13c3219c3f90a76cc">
<p style="white-space: pre-wrap">PDM mute format, must contain 2 cells (OUT5 and OUT6). See the
PDM_SPKn_CTRL_1 register in the datasheet for a description
of this value.  The second cell is ignored for codecs that
do not have OUT6.</p>
</div>

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-7d63b1bc2dc48c1c4ef1"><code>2</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-9432550234517743ef72"><code>2</code></span>

<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-only OR BSD-2-Clause</span></p>

</details>
