# NXP i.MX audio sound card.

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

> Device-tree binding reference for NXP i.MX audio sound card..

<!-- 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;imx&#45;audio&#45;card&#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;Shengjiu Wang &#60;shengjiu&#46;wang&#64;nxp&#46;com&#62;&#34;</code></span>

<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>sound&#45;card&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-sound/sound-card-common.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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;fsl&#44;imx&#45;audio&#45;card&#34;</code></span>

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

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

<a id="dt-1835a0317dae1488a052"></a>

### <code>&#46;&#42;&#45;dai&#45;link&#36;</code> — name matches this regular expression

<div id="dt-1ddc58bbafb86167caab">
<p style="white-space: pre-wrap">Each subnode represents a dai link. Subnodes of each dai links would be cpu/codec dais.</p>
</div>

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

<a id="dt-9937d7ae7daaa5558a92"></a>

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

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

**<code>link&#45;name</code> — required here**

<div id="dt-9e8bacbda230fc6c3874">
<p style="white-space: pre-wrap">Indicates dai-link name and PCM stream name.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-806efc76516466767abc">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</span>

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

<a id="dt-0f95d274655a3a8a049f"></a>

**<code>format</code> — not listed as required here**

<div id="dt-8feee58fc8d0add63341">
<p style="white-space: pre-wrap">audio format.</p>
</div>

<a id="dt-28ca3da93241a8a682a9"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-e35334349eb0f1ff5b37"></a> <span id="dt-572eb3563f4fd87ba0d6"><code>&#34;i2s&#34;</code></span>, <span id="dt-c1b075f5e974bfecd090"><code>&#34;dsp&#95;b&#34;</code></span>

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

**<code>dai&#45;tdm&#45;slot&#45;num</code> — not listed as required here**

<div id="dt-2c39f15d9b07f3b3f17a">
<p style="white-space: pre-wrap">see tdm-slot.txt.</p>
</div>

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

<a id="dt-46d81f35071ed556abf8"></a>

**<code>dai&#45;tdm&#45;slot&#45;width</code> — not listed as required here**

<div id="dt-3e4a2cea245f863ccbb9">
<p style="white-space: pre-wrap">see tdm-slot.txt.</p>
</div>

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

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

**<code>playback&#45;only</code> — not listed as required here**

<div id="dt-6e06915bf720570a7c60">
<p style="white-space: pre-wrap">link is used only for playback</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-2152ce692b86bd68ac31">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

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

**<code>capture&#45;only</code> — not listed as required here**

<div id="dt-ab7bfa61ac59727d5a8c">
<p style="white-space: pre-wrap">link is used only for capture</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-50c49c995bb4d1d00ae3">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

<a id="dt-638fcaea80d6bbf0d4d6"></a>

**<code>cpu</code> — required here**

<div id="dt-b35871b6b0ec6fb4c4c1">
<p style="white-space: pre-wrap">Holds subnode which indicates cpu dai.</p>
</div>

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

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

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

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

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

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

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

**<code>codec</code> — not listed as required here**

<div id="dt-390ad724e6e87a8e6f31">
<p style="white-space: pre-wrap">Holds subnode which indicates codec dai.</p>
</div>

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

<a id="dt-a476ce8ca86c939806d1"></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-273b21d778eba1efd580"></a>

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

<a id="dt-0936ce529515b6115195"></a>

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

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

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

<a id="dt-0a9751fffd431d24b82a"></a>

**<code>fsl&#44;mclk&#45;equal&#45;bclk</code> — not listed as required here**

<div id="dt-bec0fc2b9e4718d74126">
<p style="white-space: pre-wrap">Indicates mclk can be equal to bclk, especially for sai interface</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-74b99958d49e65e8508d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

**Required in this object (<code>required</code>):** <a id="dt-0c473b2dd68c1cb91dd6"></a> <span id="dt-5ada0b495601465325ac"><code>&#34;link&#45;name&#34;</code></span>, <span id="dt-bbb1ed2e2f457adfeae4"><code>&#34;cpu&#34;</code></span>

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

#### All of these rules must match (<code>allOf</code>)

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

**Rule 1**

> <a id="dt-33f67d89e511931d6f64"></a>
>
> **This rule must not match (<code>not</code>)**
>
> > **Required in this object (<code>required</code>):** <a id="dt-bb82d12d0cf83eaa917c"></a> <span id="dt-0211a4367eee1c464388"><code>&#34;playback&#45;only&#34;</code></span>, <span id="dt-ef5c9f680df30aaed797"><code>&#34;capture&#45;only&#34;</code></span>

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

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">sound-ak4458 {
    compatible = "fsl,imx-audio-card";
    model = "ak4458-audio";
    pri-dai-link {
        link-name = "akcodec";
        format = "i2s";
        fsl,mclk-equal-bclk;
        cpu {
             sound-dai = &lt;&amp;sai1&gt;;
        };
        codec {
             sound-dai = &lt;&amp;ak4458_1&gt;, &lt;&amp;ak4458_2&gt;;
        };
    };
    fe-dai-link {
        link-name = "HiFi-ASRC-FE";
        format = "i2s";
        cpu {
            sound-dai = &lt;&amp;easrc&gt;;
        };
    };
    be-dai-link {
        link-name = "HiFi-ASRC-BE";
        format = "dsp_b";
        dai-tdm-slot-num = &lt;8&gt;;
        dai-tdm-slot-width = &lt;32&gt;;
        fsl,mclk-equal-bclk;
        cpu {
            sound-dai = &lt;&amp;sai1&gt;;
        };
        codec {
            sound-dai = &lt;&amp;ak4458_1&gt;, &lt;&amp;ak4458_2&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>

</details>
