# Qualcomm Audio Stream Manager (Q6ASM)

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

> Device-tree binding reference for Qualcomm Audio Stream Manager (Q6ASM).

<!-- SPDX-License-Identifier: GPL-2.0 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;q6asm&#45;dais&#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;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><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">Q6ASM is one of the APR audio services on Q6DSP. Each of its subnodes represent a dai with board specific configuration.</p>
</div>

<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;q6asm&#45;dais&#34;</code></span>

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

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-06650c5e4c981bc2a500"><code>1</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-e92215bd3c2f5373b164"></a>

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

<a id="dt-23c26b0dfbf47e5b25cb"></a>

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

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

<div id="dt-fd68a1ee056ce4d95b3e">
<p style="white-space: pre-wrap">Q6ASM Digital Audio Interface</p>
</div>

<a id="dt-790828df9c391a7a9ff2"></a>

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

<a id="dt-4440f262ac8525e22cd2"></a>

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

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

<a id="dt-4136caf9eb1ece8455a3"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-04b188731fd3b35fb998">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-dc45e589f9287f7d0988"></a> <span id="dt-23cf75c99df097a6e40d"><code>0</code></span>, <span id="dt-cbf0ddd8e9ba333484d9"><code>1</code></span>, <span id="dt-858b9920b314eab99216"><code>2</code></span>

<div id="dt-f779197d0d42843164f5">
<p style="white-space: pre-wrap">The direction of the dai stream::
 - Q6ASM_DAI_TX_RX (0) for both tx and rx
 - Q6ASM_DAI_TX (1) for only tx (Capture/Encode)
 - Q6ASM_DAI_RX (2) for only rx (Playback/Decode)</p>
</div>

<a id="dt-7e8365b5492ad4bea492"></a>

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

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

<div id="dt-badbb5f14464f668c2ae">
<p style="white-space: pre-wrap">Compress offload dai.</p>
</div>

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

#### Property dependencies (<code>dependencies</code>)

<a id="dt-44d5ca1830920626e40a"></a>

**<code>is&#45;compress&#45;dai</code> — applies when this property is present**

Also requires: <span id="dt-1e7872d02a006b3d7804"><code>&#34;direction&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-b35dbc02fd9d2e390cf0"></a> <span id="dt-3c893388c87a8a7140d9"><code>&#34;reg&#34;</code></span>

<a id="dt-16889d96227a9b17f6ca"></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;sound&#45;dai&#45;cells&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;size&#45;cells&#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">dais {
    compatible = "qcom,q6asm-dais";
    iommus = &lt;&amp;apps_smmu 0x1821 0x0&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    #sound-dai-cells = &lt;1&gt;;

    dai@0 {
        reg = &lt;0&gt;;
    };

    dai@1 {
        reg = &lt;1&gt;;
    };

    dai@2 {
        reg = &lt;2&gt;;
        is-compress-dai;
        direction = &lt;1&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 OR BSD-2-Clause</span></p>

</details>
