# Qualcomm APQ8016 and similar sound cards

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

> Device-tree binding reference for Qualcomm APQ8016 and similar sound cards.

<!-- 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;apq8016&#45;sbc&#45;sndcard&#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>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Stephan Gerhold &#60;stephan&#64;gerhold&#46;net&#62;&#34;</code></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;qcom&#44;apq8016&#45;sbc&#45;sndcard&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;msm8916&#45;qdsp6&#45;sndcard&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Microphone I/O mux register address</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Speaker I/O mux register address</p>
> </div>

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

### <code>reg&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;mic&#45;iomux&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;spkr&#45;iomux&#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-df42fa2a6b9643674eb7"></a>

### <code>pin&#45;switches</code> — not listed as required here

<div id="dt-e556518cfaac13899738">
<p style="white-space: pre-wrap">List of widget names for which pin switches should be created.</p>
</div>

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

<a id="dt-0a1e54e85dc2fe07ad66"></a>

### <code>widgets</code> — not listed as required here

<div id="dt-fec35ea038af2f22d06a">
<p style="white-space: pre-wrap">User specified audio sound widgets.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d105e308a7dced953180">[<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>

<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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><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,lpass.h&gt;
sound@7702000 {
    compatible = "qcom,apq8016-sbc-sndcard";
    reg = &lt;0x07702000 0x4&gt;, &lt;0x07702004 0x4&gt;;
    reg-names = "mic-iomux", "spkr-iomux";

    model = "DB410c";
    audio-routing =
        "AMIC2", "MIC BIAS Internal2",
        "AMIC3", "MIC BIAS External1";

    pinctrl-0 = &lt;&amp;cdc_pdm_lines_act &amp;ext_sec_tlmm_lines_act &amp;ext_mclk_tlmm_lines_act&gt;;
    pinctrl-1 = &lt;&amp;cdc_pdm_lines_sus &amp;ext_sec_tlmm_lines_sus &amp;ext_mclk_tlmm_lines_sus&gt;;
    pinctrl-names = "default", "sleep";

    quaternary-dai-link {
        link-name = "ADV7533";
        cpu {
            sound-dai = &lt;&amp;lpass MI2S_QUATERNARY&gt;;
        };
        codec {
            sound-dai = &lt;&amp;adv_bridge 0&gt;;
        };
    };

    primary-dai-link {
        link-name = "WCD";
        cpu {
            sound-dai = &lt;&amp;lpass MI2S_PRIMARY&gt;;
        };
        codec {
            sound-dai = &lt;&amp;lpass_codec 0&gt;, &lt;&amp;wcd_codec 0&gt;;
        };
    };

    tertiary-dai-link {
        link-name = "WCD-Capture";
        cpu {
            sound-dai = &lt;&amp;lpass MI2S_TERTIARY&gt;;
        };
        codec {
            sound-dai = &lt;&amp;lpass_codec 1&gt;, &lt;&amp;wcd_codec 1&gt;;
        };
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/sound/qcom,q6afe.h&gt;
#include &lt;dt-bindings/sound/qcom,q6asm.h&gt;
sound@7702000 {
    compatible = "qcom,msm8916-qdsp6-sndcard";
    reg = &lt;0x07702000 0x4&gt;, &lt;0x07702004 0x4&gt;;
    reg-names = "mic-iomux", "spkr-iomux";

    model = "msm8916";
    widgets =
        "Speaker", "Speaker",
        "Headphone", "Headphones";
    pin-switches = "Speaker";
    audio-routing =
        "Speaker", "Speaker Amp OUT",
        "Speaker Amp IN", "HPH_R",
        "Headphones", "HPH_L",
        "Headphones", "HPH_R",
        "AMIC1", "MIC BIAS Internal1",
        "AMIC2", "MIC BIAS Internal2",
        "AMIC3", "MIC BIAS Internal3";
    aux-devs = &lt;&amp;speaker_amp&gt;;

    pinctrl-names = "default", "sleep";
    pinctrl-0 = &lt;&amp;cdc_pdm_lines_act&gt;;
    pinctrl-1 = &lt;&amp;cdc_pdm_lines_sus&gt;;

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

    primary-dai-link {
        link-name = "Primary MI2S";
        cpu {
            sound-dai = &lt;&amp;q6afedai PRIMARY_MI2S_RX&gt;;
        };
        platform {
            sound-dai = &lt;&amp;q6routing&gt;;
        };
        codec {
            sound-dai = &lt;&amp;lpass_codec 0&gt;, &lt;&amp;wcd_codec 0&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>
