# Qualcomm BAM Data Multiplexer

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

> Device-tree binding reference for Qualcomm BAM Data Multiplexer.

<!-- 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;net&#47;qcom&#44;bam&#45;dmux&#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;Stephan Gerhold &#60;stephan&#64;gerhold&#46;net&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The BAM Data Multiplexer provides access to the network data channels
of modems integrated into many older Qualcomm SoCs, e.g. Qualcomm MSM8916
or MSM8974. It is built using a simple protocol layer on top of a DMA engine
(Qualcomm BAM DMA) and bidirectional interrupts to coordinate power control.</p>
<p style="white-space: pre-wrap">Note that this schema does not directly describe a hardware block but rather
a firmware convention that combines several other hardware blocks (such as the
DMA engine). As such it is specific to a firmware version, not a particular
SoC or hardware version.</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;qcom&#44;bam&#45;dmux&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupts used by the modem to signal the AP. Both interrupts must be declared as IRQ_TYPE_EDGE_BOTH.</p>
</div>

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">Power control</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">Power control acknowledgment</p>
> </div>

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

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

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;pc&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;pc&#45;ack&#34;</code></span>

<a id="dt-51b736d4c91d2d6d23df"></a>

### <code>qcom&#44;smem&#45;states</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f21443e9f7b18261aa63">[<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-ec7917e57f1d96f28421">
<p style="white-space: pre-wrap">State bits used by the AP to signal the modem.</p>
</div>

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

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

<a id="dt-64965345698de5fff020"></a>

**Item 1**

> <div id="dt-6105da492aae68f042b8">
> <p style="white-space: pre-wrap">Power control</p>
> </div>

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

**Item 2**

> <div id="dt-fd0af668995e0652fc28">
> <p style="white-space: pre-wrap">Power control acknowledgment</p>
> </div>

<a id="dt-539daef746881325d3fa"></a>

### <code>qcom&#44;smem&#45;state&#45;names</code> — required here

<div id="dt-4e05a8b79f6de5edf6b7">
<p style="white-space: pre-wrap">Names for the state bits used by the AP to signal the modem.</p>
</div>

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-e52f6acc653761fa4546"><code>&#34;pc&#34;</code></span>

<a id="dt-6d8175212ce37847f155"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-256adc89bfcf9e68405a"><code>&#34;pc&#45;ack&#34;</code></span>

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

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

<a id="dt-6b8b17969f3f8620256b"></a>

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

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

**Item 1**

> <div id="dt-46fea02e2850ca221aa0">
> <p style="white-space: pre-wrap">TX DMA channel phandle</p>
> </div>

<a id="dt-51dd129ab41c33f151af"></a>

**Item 2**

> <div id="dt-1e039b421ae08d0b7b70">
> <p style="white-space: pre-wrap">RX DMA channel phandle</p>
> </div>

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

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

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-eb45b3d6c9e2700a17b5"><code>&#34;tx&#34;</code></span>

<a id="dt-5368efb369d036c8a734"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0d0500dc5105c48e5e72"><code>&#34;rx&#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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupt&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;qcom&#44;smem&#45;states&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;qcom&#44;smem&#45;state&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;dmas&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;dma&#45;names&#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/interrupt-controller/irq.h&gt;

mpss: remoteproc {
    bam-dmux {
        compatible = "qcom,bam-dmux";

        interrupt-parent = &lt;&amp;modem_smsm&gt;;
        interrupts = &lt;1 IRQ_TYPE_EDGE_BOTH&gt;, &lt;11 IRQ_TYPE_EDGE_BOTH&gt;;
        interrupt-names = "pc", "pc-ack";

        qcom,smem-states = &lt;&amp;apps_smsm 1&gt;, &lt;&amp;apps_smsm 11&gt;;
        qcom,smem-state-names = "pc", "pc-ack";

        dmas = &lt;&amp;bam_dmux_dma 4&gt;, &lt;&amp;bam_dmux_dma 5&gt;;
        dma-names = "tx", "rx";
    };
};
</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>
