# Google SC7180-Trogdor ASoC sound card driver

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

> Device-tree binding reference for Google SC7180-Trogdor ASoC 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;google&#44;sc7180&#45;trogdor&#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;Rohit kumar &#60;quic&#95;rohkumar&#64;quicinc&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Cheng&#45;Yi Chiang &#60;cychiang&#64;chromium&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding describes the SC7180 sound card which uses LPASS for audio.</p>
</div>

<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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;google&#44;sc7180&#45;trogdor&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;google&#44;sc7180&#45;coachz&#34;</code></span>

<a id="dt-2efe70314a961a652abe"></a>

### <code>&#35;address&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>1</code></span>

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

### <code>&#35;size&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

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

### <code>dmic&#45;gpios</code> — not listed as required here

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

<div id="dt-4e5bb588aae411d98f91">
<p style="white-space: pre-wrap">GPIO for switching between DMICs</p>
</div>

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

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-355a9c04106e4ea53e51"></a>

### <code>&#94;dai&#45;link&#40;&#64;&#91;0&#45;9&#93;&#41;&#63;&#36;</code> — name matches this regular expression

<div id="dt-b5f3e0884ae9a9ead649">
<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-dc1c8332f6d3e836ec60"><code>&#34;object&#34;</code></span>

<a id="dt-902faec5e77c424902d4"></a>

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

<a id="dt-840dbe5292638bc97c47"></a>

**<code>link&#45;name</code> — required here**

<div id="dt-d883823f5cb2d6e87780">
<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-49ecc9890b1d57081235">[<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-4fb08fd447cbde725cfc"><code>1</code></span>

<a id="dt-5fe176b0da288708f3e9"></a>

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

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

<div id="dt-1fab071a3a78a54c8d1d">
<p style="white-space: pre-wrap">dai link address.</p>
</div>

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

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

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

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

<a id="dt-7c278912f39feba93b7f"></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-7015956768f49315df1b"></a>

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

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

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

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

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

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

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

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

<a id="dt-f603e58a1f99e9263c52"></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-7099eda296bf07869035"></a>

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

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

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-d1b85e2fe6107ca6ddea"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5e856560d5be2d72f7ed"><code>4</code></span>

**Required in this object (<code>required</code>):** <a id="dt-eb851970fc26f27689c0"></a> <span id="dt-82c56fd161b15cac9a6f"><code>&#34;link&#45;name&#34;</code></span>, <span id="dt-b100e12522ed6bad3f1a"><code>&#34;cpu&#34;</code></span>, <span id="dt-f5aa92145edd58b69a59"><code>&#34;codec&#34;</code></span>

<a id="dt-2eda36cce67abc08009b"></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;&#35;address&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;size&#45;cells&#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.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">sound {
    compatible = "google,sc7180-trogdor";
    model = "sc7180-rt5682-max98357a-2mic";

    audio-routing =
                "Headphone Jack", "HPOL",
                "Headphone Jack", "HPOR";

    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    dmic-gpios = &lt;&amp;tlmm 86 0&gt;;

    dai-link@0 {
        link-name = "MultiMedia0";
        reg = &lt;0&gt;;
        cpu {
            sound-dai = &lt;&amp;lpass_cpu 0&gt;;
        };

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

    dai-link@1 {
        link-name = "MultiMedia1";
        reg = &lt;1&gt;;
        cpu {
            sound-dai = &lt;&amp;lpass_cpu 1&gt;;
        };

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

    dai-link@2 {
        link-name = "MultiMedia2";
        reg = &lt;2&gt;;
        cpu {
            sound-dai = &lt;&amp;lpass_hdmi 0&gt;;
        };

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