# MediaTek MT7986 sound card with WM8960 codec

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

> Device-tree binding reference for MediaTek MT7986 sound card with WM8960 codec.

<!-- 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;mt7986&#45;wm8960&#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;Maso Huang &#60;maso&#46;huang&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;mediatek&#44;mt7986&#45;wm8960&#45;sound&#34;</code></span>

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

### <code>platform</code> — required here

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

<a id="dt-a492853c3926e11a8cd2"></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-d65c7f4e1c1fd2f076ba"></a>

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

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

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

<div id="dt-0fb0c6264047a4066a49">
<p style="white-space: pre-wrap">The phandle of MT7986 platform.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-294d008d802cdd97802f"></a> <span id="dt-3901d5106c1df575b83f"><code>&#34;sound&#45;dai&#34;</code></span>

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

### <code>codec</code> — required here

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

<a id="dt-b99d5f0fdb9f9922c358"></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-689bd98d988b5ce4bf07"></a>

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

<a id="dt-8906a371a28515f3547c"></a>

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

<div id="dt-7822b5a12827e0159859">
<p style="white-space: pre-wrap">The phandle of wm8960 codec.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-e7a1a1ce11b5da6da8bf"></a> <span id="dt-06b87627922e020727a4"><code>&#34;sound&#45;dai&#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;audio&#45;routing&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;platform&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;codec&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">sound {
    compatible = "mediatek,mt7986-wm8960-sound";
    model = "mt7986-wm8960";
    audio-routing =
        "Headphone", "HP_L",
        "Headphone", "HP_R",
        "LINPUT1", "AMIC",
        "RINPUT1", "AMIC";

    platform {
        sound-dai = &lt;&amp;afe&gt;;
    };

    codec {
        sound-dai = &lt;&amp;wm8960&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>
