# Qualcomm Technologies Inc. ASoC sound card drivers

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

> Device-tree binding reference for Qualcomm Technologies Inc. ASoC sound card drivers.

<!-- 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;qcom&#44;sm8250&#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;Srinivas Kandagatla &#60;srinivas&#46;kandagatla&#64;linaro&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This bindings describes Qualcomm SoC based sound cards which uses LPASS internal codec for audio.</p>
</div>

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

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;lenovo&#44;yoga&#45;c630&#45;sndcard&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;qcom&#44;db845c&#45;sndcard&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;qcom&#44;sdm845&#45;sndcard&#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**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;qcom&#44;kaanapali&#45;sndcard&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;qcom&#44;sm8550&#45;sndcard&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;qcom&#44;sm8650&#45;sndcard&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;qcom&#44;sm8750&#45;sndcard&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;qcom&#44;sm8450&#45;sndcard&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> **Allowed values (<code>enum</code>):** <a id="dt-9fc3f5081af7fe32b794"></a> <span id="dt-264517b00ca7c7f3c30f"><code>&#34;fairphone&#44;fp4&#45;sndcard&#34;</code></span>, <span id="dt-78ff4d043ca24550ed33"><code>&#34;fairphone&#44;fp5&#45;sndcard&#34;</code></span>, <span id="dt-aada3a31ecc374bd5eca"><code>&#34;qcom&#44;apq8096&#45;sndcard&#34;</code></span>, <span id="dt-6cdb02d4beab121ea3fa"><code>&#34;qcom&#44;glymur&#45;sndcard&#34;</code></span>, <span id="dt-f978b4044ceeb19adde5"><code>&#34;qcom&#44;qcm6490&#45;idp&#45;sndcard&#34;</code></span>, <span id="dt-1ea77152497c76252ea0"><code>&#34;qcom&#44;qcs615&#45;sndcard&#34;</code></span>, <span id="dt-42352670cc4b67ace014"><code>&#34;qcom&#44;qcs6490&#45;rb3gen2&#45;sndcard&#34;</code></span>, <span id="dt-657f89e877f0e7f48111"><code>&#34;qcom&#44;qcs8275&#45;sndcard&#34;</code></span>, <span id="dt-dd4d83ee81a3a49510c2"><code>&#34;qcom&#44;qcs9075&#45;sndcard&#34;</code></span>, <span id="dt-5e0f6eea0ed31e7c5b41"><code>&#34;qcom&#44;qcs9100&#45;sndcard&#34;</code></span>, <span id="dt-776ab284615a2eb66980"><code>&#34;qcom&#44;qrb2210&#45;sndcard&#34;</code></span>, <span id="dt-35b415f5e5743da2c2e4"><code>&#34;qcom&#44;qrb4210&#45;rb2&#45;sndcard&#34;</code></span>, <span id="dt-a09732c94ca673ecdaa1"><code>&#34;qcom&#44;qrb5165&#45;rb5&#45;sndcard&#34;</code></span>, <span id="dt-a3f640e38f88111b3293"><code>&#34;qcom&#44;sc7180&#45;qdsp6&#45;sndcard&#34;</code></span>, <span id="dt-bd567ce86ec3796e98e4"><code>&#34;qcom&#44;sc8280xp&#45;sndcard&#34;</code></span>, <span id="dt-441077d368c86390d99a"><code>&#34;qcom&#44;sdm845&#45;sndcard&#34;</code></span>, <span id="dt-8c1e8b500a9f8ee4cb03"><code>&#34;qcom&#44;sm8250&#45;sndcard&#34;</code></span>, <span id="dt-2bb3c2dcbfe20105885d"><code>&#34;qcom&#44;sm8450&#45;sndcard&#34;</code></span>, <span id="dt-21f6e1f3844a473c160b"><code>&#34;qcom&#44;x1e80100&#45;sndcard&#34;</code></span>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-5aa48addbfe3befc2051">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;non&#45;unique&#45;string&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-493f5d03b14b15ff7558>)</span>

<div id="dt-ac2f16e184b02d2d5305">
<p style="white-space: pre-wrap">A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, MicBias of codec and the jacks on the board.</p>
</div>

<a id="dt-48eea20abd1f0fe7f8c9"></a>

### <code>aux&#45;devs</code> — not listed as required here

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

<div id="dt-e7ac154f20c412e1287a">
<p style="white-space: pre-wrap">List of phandles pointing to auxiliary devices, such
as amplifiers, to be added to the sound card.</p>
</div>

<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 visible long sound card name</p>
</div>

<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-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-3811eb8b23bde373ff10"></a>

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

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

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

<a id="dt-4486d820defcedbb8666"></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-4f31ac45200b9da5ccab"></a>

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-6b8b8330665a898bf1a0"><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>8</code></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-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>, <span id="dt-ee7433925c1528c16b99"><code>&#34;model&#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">#include &lt;dt-bindings/sound/qcom,q6afe.h&gt;
#include &lt;dt-bindings/sound/qcom,q6asm.h&gt;
sound {
    compatible = "qcom,qrb5165-rb5-sndcard";
    model = "Qualcomm-qrb5165-RB5-WSA8815-Speakers-DMIC0";
    audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
                "SpkrRight IN", "WSA_SPK2 OUT",
                "VA DMIC0", "vdd-micb",
                "VA DMIC1", "vdd-micb";

    mm1-dai-link {
        link-name = "MultiMedia0";
        cpu {
            sound-dai = &lt;&amp;q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1&gt;;
        };
    };

    mm2-dai-link {
        link-name = "MultiMedia2";
        cpu {
            sound-dai = &lt;&amp;q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2&gt;;
        };
    };

    mm3-dai-link {
        link-name = "MultiMedia3";
        cpu {
            sound-dai = &lt;&amp;q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3&gt;;
        };
    };

    hdmi-dai-link {
        link-name = "HDMI Playback";
        cpu {
            sound-dai = &lt;&amp;q6afedai TERTIARY_MI2S_RX&gt;;
        };

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

        codec {
            sound-dai = &lt;&amp;lt9611_codec 0&gt;;
        };
    };

    wsa-dai-link {
        link-name = "WSA Playback";
        cpu {
            sound-dai = &lt;&amp;q6afedai WSA_CODEC_DMA_RX_0&gt;;
        };

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

        codec {
            sound-dai = &lt;&amp;left_spkr&gt;, &lt;&amp;right_spkr&gt;, &lt;&amp;swr0 0&gt;, &lt;&amp;wsamacro&gt;;
        };
    };

    va-dai-link {
        link-name = "VA Capture";
        cpu {
            sound-dai = &lt;&amp;q6afedai VA_CODEC_DMA_TX_0&gt;;
        };

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

        codec {
            sound-dai = &lt;&amp;vamacro 0&gt;;
        };
    };

    usb-dai-link {
        link-name = "USB Playback";
        cpu {
            sound-dai = &lt;&amp;q6afedai USB_RX&gt;;
        };

        codec {
            sound-dai = &lt;&amp;usbdai USB_RX&gt;;
        };

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