# Loongson 7axxx/2kxxx ASoC audio sound card driver

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

> Device-tree binding reference for Loongson 7axxx/2kxxx ASoC audio sound card driver.

<!-- 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;loongson&#44;ls&#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;Yingkun Meng &#60;mengyingkun&#64;loongson&#46;cn&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The binding describes the sound card present in loongson 7axxx/2kxxx platform. The sound card is an ASoC component which uses Loongson I2S controller to transfer the audio data.</p>
</div>

<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;loongson&#44;ls&#45;audio&#45;card&#34;</code></span>

<a id="dt-35a8a57fdd6e9ed01be8"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ca4888cbb3b35392d2f7">[<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-bf4b69bd171c38756e1b">
<p style="white-space: pre-wrap">User specified audio sound card name</p>
</div>

<a id="dt-8e85cab1fca961abdf70"></a>

### <code>mclk&#45;fs</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ec40d16fe26e4eab2d20">[<code>simple&#45;card&#46;yaml&#35;&#47;definitions&#47;mclk&#45;fs</code>](</kernel/hardware/devicetree-bindings/dt-sound/simple-card.md#dt-704baca6eb95d5a6bae1>)</span>

<a id="dt-04b422a940a732dc566a"></a>

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

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

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

<a id="dt-512ea5fe7417e34aff51"></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-04b86380754f3d28fabf"></a>

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

<a id="dt-83919e46621447566035"></a>

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

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

**Required in this object (<code>required</code>):** <a id="dt-2bf5668c4f369cbc9896"></a> <span id="dt-2417fd65df7d98fbe891"><code>&#34;sound&#45;dai&#34;</code></span>

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

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

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

**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**

**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>

**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;model&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;mclk&#45;fs&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;cpu&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;codec&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></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-1a130cabaa8a47b058bf"></a>

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">sound {
    compatible = "loongson,ls-audio-card";
    model = "loongson-audio";
    mclk-fs = &lt;512&gt;;

    cpu {
        sound-dai = &lt;&amp;i2s&gt;;
    };
    codec {
         sound-dai = &lt;&amp;es8323&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>
