# MediaTek MT8189 ASoC sound card

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

> Device-tree binding reference for MediaTek MT8189 ASoC 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;mediatek&#44;mt8189&#45;nau8825&#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;Darren Ye &#60;darren&#46;ye&#64;mediatek&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Cyril Chao &#60;cyril&#46;chao&#64;mediatek&#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;mediatek&#44;mt8189&#45;nau8825&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;mediatek&#44;mt8189&#45;rt5650&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;mediatek&#44;mt8189&#45;rt5682s&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;mediatek&#44;mt8189&#45;rt5682i&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;mediatek&#44;mt8189&#45;es8326&#34;</code></span>

<a id="dt-09a0f0ac36779d63ab90"></a>

### <code>mediatek&#44;platform</code> — required here

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

<div id="dt-3b75e139cb66f7cb5c14">
<p style="white-space: pre-wrap">The phandle of MT8189 ASoC platform.</p>
</div>

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

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

<a id="dt-56f41762ec5bb833dd20"></a>

### <code>&#94;dai&#45;link&#45;&#91;0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

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

<div id="dt-7c27ca26e21f660e1e36">
<p style="white-space: pre-wrap">Container for dai-link level properties and CODEC sub-nodes.</p>
</div>

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

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

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

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

<div id="dt-6ad670209bbbf6041abe">
<p style="white-space: pre-wrap">This property corresponds to the name of the BE dai-link to which we are going to update parameters in this node.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-553bdbdc5217e6d26946"></a> <span id="dt-0b4b22e5c0bba7a3fc32"><code>&#34;TDM&#95;DPTX&#95;BE&#34;</code></span>, <span id="dt-7eebdd2fe1e08bfde2c8"><code>&#34;I2SOUT0&#95;BE&#34;</code></span>, <span id="dt-2a7e6619b837f8e906f2"><code>&#34;I2SIN0&#95;BE&#34;</code></span>, <span id="dt-5a0db765d6a559b06b32"><code>&#34;I2SOUT1&#95;BE&#34;</code></span>

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

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

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

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

<a id="dt-f323949c0177c8650942"></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-181732cd24e433b247ba"></a>

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

<a id="dt-768a6b8203e77f27ab4f"></a>

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

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

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

**Required in this object (<code>required</code>):** <a id="dt-77122d1fb890bc0741d8"></a> <span id="dt-4e12a93dcb4b19df3125"><code>&#34;sound&#45;dai&#34;</code></span>

<a id="dt-17b16e1260d470cc89cb"></a>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-d2612ab7ffe0719c4791"></a> <span id="dt-cc446460dfd589f39b5a"><code>&#34;i2s&#34;</code></span>, <span id="dt-456640132e1d325d840f"><code>&#34;right&#95;j&#34;</code></span>, <span id="dt-556d0e034eb4ab290ae8"><code>&#34;left&#95;j&#34;</code></span>, <span id="dt-82876d87220ad819c0db"><code>&#34;dsp&#95;a&#34;</code></span>, <span id="dt-2e99389ebae3bd2850ed"><code>&#34;dsp&#95;b&#34;</code></span>

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

**<code>mediatek&#44;clk&#45;provider</code> — not listed as required here**

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

<div id="dt-480111d4177e2d1d881e">
<p style="white-space: pre-wrap">Indicates dai-link clock master.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-fbd6d0da4815716279d5"></a> <span id="dt-e5ab09732c18836e06b9"><code>&#34;cpu&#34;</code></span>, <span id="dt-8dae2647ebde8c39de30"><code>&#34;codec&#34;</code></span>

<a id="dt-14842ea983c6ccc7d4b5"></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-883bf2b15500b3eb27a0"></a> <span id="dt-26d54f64f6bc2a9b4488"><code>&#34;link&#45;name&#34;</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;mediatek&#44;platform&#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 {
    compatible = "mediatek,mt8189-nau8825";
    model = "mt8189_rt9123_8825";
    mediatek,platform = &lt;&amp;afe&gt;;
    dai-link-0 {
        link-name = "I2SOUT1_BE";
        dai-format = "i2s";
        mediatek,clk-provider = "cpu";
        codec {
            sound-dai = &lt;&amp;nau8825&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>
