# MediaTek MT8188 ASoC sound card

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

> Device-tree binding reference for MediaTek MT8188 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;mt8188&#45;mt6359&#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;Trevor Wu &#60;trevor&#46;wu&#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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Allowed values (<code>enum</code>):** <a id="dt-617e1a2040e2496013d4"></a> <span id="dt-c31075c43df89b2793e3"><code>&#34;mediatek&#44;mt8188&#45;es8326&#34;</code></span>, <span id="dt-44b402f75e7bf3caf313"><code>&#34;mediatek&#44;mt8188&#45;mt6359&#45;evb&#34;</code></span>, <span id="dt-f03e1478792ca587ff5c"><code>&#34;mediatek&#44;mt8188&#45;nau8825&#34;</code></span>, <span id="dt-34cab0afbb7f2b55efc5"><code>&#34;mediatek&#44;mt8188&#45;rt5682s&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;mediatek&#44;mt8390&#45;mt6359&#45;evk&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;mediatek&#44;mt8188&#45;mt6359&#45;evb&#34;</code></span>

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

### <code>audio&#45;routing</code> — not listed as required here

<div id="dt-ac2f16e184b02d2d5305">
<p style="white-space: pre-wrap">Valid names could be the input or output widgets of audio components, power supplies, MicBias of codec and the software switch.</p>
</div>

<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 MT8188 ASoC platform.</p>
</div>

<a id="dt-19327a0f6ca52fc4f2c6"></a>

### <code>mediatek&#44;adsp</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-039d680699a95bf7ea56">[<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-c23e038b40f205e8a9bd">
<p style="white-space: pre-wrap">The phandle of the MT8188 ADSP platform, which is the optional Audio DSP hardware that provides additional audio functionalities if present. The AFE will link to ADSP when the phandle is provided.</p>
</div>

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

### <code>mediatek&#44;accdet</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-356dfe02f4f4b44c38c0">[<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-202ca465b0e79968da52">
<p style="white-space: pre-wrap">The phandle to the MT6359 accessory detection block, which detects audio jack insertion and removal. This property should only be present if the accdet block is actually wired to the audio jack pins and to be used for jack detection.</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>

<a id="dt-57ea0912895cbaf6c24e"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-bb822485db9517cf7996"></a> <span id="dt-93360e583ba0670a815c"><code>&#34;DPTX&#95;BE&#34;</code></span>, <span id="dt-a08944ecff5d508e58bb"><code>&#34;ETDM1&#95;IN&#95;BE&#34;</code></span>, <span id="dt-51a3029a31da3308d68a"><code>&#34;ETDM2&#95;IN&#95;BE&#34;</code></span>, <span id="dt-3727654564275847b985"><code>&#34;ETDM1&#95;OUT&#95;BE&#34;</code></span>, <span id="dt-eec90dfdd0b77a0a60a7"><code>&#34;ETDM2&#95;OUT&#95;BE&#34;</code></span>, <span id="dt-5198ed5d42e949cdbf8d"><code>&#34;ETDM3&#95;OUT&#95;BE&#34;</code></span>, <span id="dt-554b42ef7b32b4d1ef20"><code>&#34;PCM1&#95;BE&#34;</code></span>, <span id="dt-e2515e54f5a752f6d8c8"><code>&#34;DL&#95;SRC&#95;BE&#34;</code></span>, <span id="dt-b48cb575012c0538111f"><code>&#34;UL&#95;SRC&#95;BE&#34;</code></span>, <span id="dt-b99a9b843ecf19dd5514"><code>&#34;DMIC&#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>

<a id="dt-2766c4bb669756b2b0bf"></a>

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

> **Allowed values (<code>enum</code>):** <a id="dt-363090d0ce982b184261"></a> <span id="dt-6e8bedd772c3aebc1a3a"><code>&#34;i2s&#34;</code></span>, <span id="dt-f324e023319a8c353574"><code>&#34;right&#95;j&#34;</code></span>, <span id="dt-d0350fa9015b1fc51fe7"><code>&#34;left&#95;j&#34;</code></span>, <span id="dt-217b40276b7f274a2f5d"><code>&#34;dsp&#95;a&#34;</code></span>, <span id="dt-4487524891daa34cf351"><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>

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

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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>, <span id="dt-ee7433925c1528c16b99"><code>&#34;mediatek&#44;platform&#34;</code></span>

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">sound {
    compatible = "mediatek,mt8188-mt6359-evb";
    model = "MT6359-EVB";
    mediatek,platform = &lt;&amp;afe&gt;;
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;aud_pins_default&gt;;
    audio-routing =
        "Headphone", "Headphone L",
        "Headphone", "Headphone R",
        "AIN1", "Headset Mic";
    dai-link-0 {
        link-name = "ETDM3_OUT_BE";
        dai-format = "i2s";
        mediatek,clk-provider = "cpu";
        codec {
            sound-dai = &lt;&amp;hdmi0&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>
