# Qualcomm FastRPC Driver

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

> Device-tree binding reference for Qualcomm FastRPC 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;misc&#47;qcom&#44;fastrpc&#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">The FastRPC implements an IPC (Inter-Processor Communication)
mechanism that allows for clients to transparently make remote method
invocations across DSP and APPS boundaries. This enables developers
to offload tasks to the DSP and free up the application processor for
other tasks.</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;kaanapali&#45;fastrpc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;fastrpc&#34;</code></span>

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

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

**Allowed values (<code>enum</code>):** <a id="dt-7e9cb5cfb3df9798ceea"></a> <span id="dt-8016aaf3c2b3e1ecc43f"><code>&#34;adsp&#34;</code></span>, <span id="dt-3d04b476e9dd50df44c4"><code>&#34;mdsp&#34;</code></span>, <span id="dt-06d6359b18b41e140289"><code>&#34;sdsp&#34;</code></span>, <span id="dt-928af862ac1ce9542cc6"><code>&#34;cdsp&#34;</code></span>, <span id="dt-88c699387a111690e4c3"><code>&#34;cdsp1&#34;</code></span>, <span id="dt-e08f39cf97b00ddbe3f8"><code>&#34;gdsp0&#34;</code></span>, <span id="dt-1e4ae97949a5c3d75d7c"><code>&#34;gdsp1&#34;</code></span>

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

### <code>memory&#45;region</code> — not listed as required here

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">Phandle to a node describing memory to be used for remote heap CMA.</p>
</div>

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

### <code>qcom&#44;glink&#45;channels</code> — not listed as required here

<div id="dt-a3b693aadedf162dd833">
<p style="white-space: pre-wrap">A list of channels tied to this function, used for matching the function to a set of virtual channels.</p>
</div>

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

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

<a id="dt-64a3f98c1f04731c6f5c"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-b0a1419c886f277b423f"><code>&#34;fastrpcglink&#45;apps&#45;dsp&#34;</code></span>

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

### <code>qcom&#44;non&#45;secure&#45;domain</code> — not listed as required here

<div id="dt-2e386a0930a32469b350">
<p style="white-space: pre-wrap">Used to mark the current domain as non-secure.</p>
</div>

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

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

### <code>qcom&#44;smd&#45;channels</code> — not listed as required here

<div id="dt-335548a85ec10865e1a8">
<p style="white-space: pre-wrap">Channel name used for the RPM communication</p>
</div>

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-558f073f616e5b95bc92"><code>&#34;fastrpcsmd&#45;apps&#45;dsp&#34;</code></span>

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

### <code>qcom&#44;vmids</code> — not listed as required here

<div id="dt-e267455b8e952a95d676">
<p style="white-space: pre-wrap">Virtual machine IDs for remote processor.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-81610dba2833d2098a81">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-03a03f95a666fe4b033c>)</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-73b47bf21c2f032dd38b"></a>

### <code>&#40;compute&#45;&#41;&#63;cb&#64;&#91;0&#45;9&#93;&#42;&#36;</code> — name matches this regular expression

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

<div id="dt-6d846da5f714be55a40e">
<p style="white-space: pre-wrap">Each subnode of the Fastrpc represents compute context banks available on the dsp.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-ac12cd1ab977783d8f96"><code>&#34;qcom&#44;fastrpc&#45;compute&#45;cb&#34;</code></span>

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

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

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

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

**<code>dma&#45;coherent</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-93c78854e9a07f9e8b27"></a>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-83f948f10492b0d9851c"><code>10</code></span>

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

**<code>qcom&#44;nsessions</code> — not listed as required here**

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

**Default value (<code>default</code>):** <span id="dt-f8d96a539fb3b21b03e5"><code>1</code></span>

<div id="dt-bb4fec7429c5071b4dd2">
<p style="white-space: pre-wrap">A value indicating how many sessions can share this context bank.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-827b9c82039a04421879"></a> <span id="dt-9c333bd017680845d6ff"><code>&#34;compatible&#34;</code></span>, <span id="dt-ae502a09378538e1175f"><code>&#34;reg&#34;</code></span>

<a id="dt-e42d4d81388e0de960eb"></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;label&#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">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/mailbox/qcom-ipcc.h&gt;

glink-edge {
    interrupts-extended = &lt;&amp;ipcc IPCC_CLIENT_LPASS
                                 IPCC_MPROC_SIGNAL_GLINK_QMP
                                 IRQ_TYPE_EDGE_RISING&gt;;
    mboxes = &lt;&amp;ipcc IPCC_CLIENT_LPASS
                    IPCC_MPROC_SIGNAL_GLINK_QMP&gt;;
    label = "lpass";
    qcom,remote-pid = &lt;2&gt;;

    fastrpc {
        compatible = "qcom,fastrpc";
        qcom,glink-channels = "fastrpcglink-apps-dsp";
        label = "sdsp";
        qcom,non-secure-domain;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        compute-cb@1 {
            compatible = "qcom,fastrpc-compute-cb";
            reg = &lt;1&gt;;
            iommus = &lt;&amp;apps_smmu 0x0541 0x0&gt;;
        };

        compute-cb@2 {
            compatible = "qcom,fastrpc-compute-cb";
            reg = &lt;2&gt;;
            iommus = &lt;&amp;apps_smmu 0x0542 0x0&gt;;
        };

        compute-cb@3 {
            compatible = "qcom,fastrpc-compute-cb";
            reg = &lt;3&gt;;
            iommus = &lt;&amp;apps_smmu 0x0543 0x0&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>
