# Qualcomm Shared Memory Point 2 Point

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / qcom_

> Device-tree binding reference for Qualcomm Shared Memory Point 2 Point.

<!-- 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;soc&#47;qcom&#47;qcom&#44;smp2p&#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;Andy Gross &#60;agross&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#46;org&#62;&#34;</code></span>, <span id="dt-2f1516674166ff6e66b8"><code>&#34;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Shared Memory Point to Point (SMP2P) protocol facilitates communication of a single 32-bit value between two processors.  Each value has a single writer (the local side) and a single reader (the remote side).  Values are uniquely identified in the system by the directed edge (local processor ID to remote processor ID) and a string identifier.</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;smp2p&#34;</code></span>

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

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

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

<a id="dt-574e031ceefcc9ce5f61"></a>

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

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

<div id="dt-35048c35d9f2ceeeab93">
<p style="white-space: pre-wrap">Reference to the mailbox representing the outgoing doorbell in APCS for this client.</p>
</div>

<a id="dt-90be48a5a2d1e5fd1d97"></a>

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

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

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

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

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

**Item 1**

> <a id="dt-e156dfe8f50f31443c18"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-f9fef7ee3554a3291e09"></a>
>
> **Item 1**
>
> > <div id="dt-1b8e2e69c4853e518788">
> > <p style="white-space: pre-wrap">phandle to a syscon node representing the APCS registers</p>
> > </div>
>
> <a id="dt-36df8e569d7f097be581"></a>
>
> **Item 2**
>
> > <div id="dt-1695278cffe4be017bc2">
> > <p style="white-space: pre-wrap">u32 representing offset to the register within the syscon</p>
> > </div>
>
> <a id="dt-b9a698c60ac6e2dd8cdd"></a>
>
> **Item 3**
>
> > <div id="dt-6714f2e43cc1da72b7b8">
> > <p style="white-space: pre-wrap">u32 representing the ipc bit within the register</p>
> > </div>

<div id="dt-46a46c9a2afe52eb2941">
<p style="white-space: pre-wrap">Three entries specifying the outgoing ipc bit used for signaling the remote end of the smp2p edge.</p>
</div>

**Deprecated (<code>deprecated</code>):** <span id="dt-977f845f988d884091d0"><code>true</code></span>

<a id="dt-09c7932ba2c39517f2af"></a>

### <code>qcom&#44;local&#45;pid</code> — required here

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

<div id="dt-f348e16bacb7483f0059">
<p style="white-space: pre-wrap">The identifier of the local endpoint of this edge.</p>
</div>

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

### <code>qcom&#44;remote&#45;pid</code> — required here

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

<div id="dt-875d90f2a2e25ae2575d">
<p style="white-space: pre-wrap">The identifier of the remote endpoint of this edge.</p>
</div>

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

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

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

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

<div id="dt-f93a9f4e1355f1f6f507">
<p style="white-space: pre-wrap">Two identifiers of the inbound and outbound smem items used for this edge.</p>
</div>

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

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

<a id="dt-90d093e74b5a1ff13401"></a>

### <code>&#94;master&#45;kernel&#124;slave&#45;kernel&#124;ipa&#45;ap&#45;to&#45;modem&#124;ipa&#45;modem&#45;to&#45;ap&#124;wlan&#45;ap&#45;to&#45;wpss&#124;wlan&#45;wpss&#45;to&#45;ap&#36;</code> — name matches this regular expression

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

<div id="dt-bdbdc5e684e44858ad80">
<p style="white-space: pre-wrap">Each SMP2P pair contain a set of inbound and outbound entries, these are described in subnodes of the smp2p device node. The node names are not important.</p>
</div>

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

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

<a id="dt-485d57ecb5b26e30a259"></a>

**<code>interrupt&#45;controller</code> — not listed as required here**

<div id="dt-40d352511b66a6c911a5">
<p style="white-space: pre-wrap">Marks the entry as inbound; the node should be specified as a two cell interrupt-controller.  If not specified this node will denote the outgoing entry.</p>
</div>

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

**<code>&#35;interrupt&#45;cells</code> — not listed as required here**

**Exact value (<code>const</code>):** <span id="dt-803f6f44571a8b5bc580"><code>2</code></span>

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

**<code>qcom&#44;entry&#45;name</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d8cecc366d915c398aef">[<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-cecb810cd25807013fc8">
<p style="white-space: pre-wrap">The name of this entry, for inbound entries this will be used to match against the remotely allocated entry and for outbound entries this name is used for allocating entries.</p>
</div>

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

**<code>&#35;qcom&#44;smem&#45;state&#45;cells</code> — not listed as required here**

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

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

<div id="dt-c880c61226f028a0ee5f">
<p style="white-space: pre-wrap">Required for outgoing entries.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-f54592e25635febd3e7a"></a> <span id="dt-f0b37842c4025f1adcc5"><code>&#34;qcom&#44;entry&#45;name&#34;</code></span>

<a id="dt-47fd4d3d1fe2e56ddb0a"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Required in this object (<code>required</code>):** <a id="dt-9344ca549d593736132e"></a> <span id="dt-b6b099398faeea7000ba"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-0c2706099016b160ff4f"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>

<a id="dt-2438b00740421dd0d57e"></a>

**Rule 2**

> **Required in this object (<code>required</code>):** <a id="dt-40c4a7bbbd45b9001a11"></a> <span id="dt-c71c0c2446a84555cdc3"><code>&#34;&#35;qcom&#44;smem&#45;state&#45;cells&#34;</code></span>

<a id="dt-859b48a1570424421a88"></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;interrupts&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;qcom&#44;local&#45;pid&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;qcom&#44;remote&#45;pid&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;qcom&#44;smem&#34;</code></span>

<a id="dt-51356188806d31ca2021"></a>

## Exactly one of these rules must match (<code>oneOf</code>)

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

### Rule 1

> **Required in this object (<code>required</code>):** <a id="dt-48cc38ffec184df79a62"></a> <span id="dt-bbd3b687ebb435349af2"><code>&#34;mboxes&#34;</code></span>

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

### Rule 2

> **Required in this object (<code>required</code>):** <a id="dt-686ce4562589647d257c"></a> <span id="dt-8060cb7221f215eec82f"><code>&#34;qcom&#44;ipc&#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;

shared-memory {
    compatible = "qcom,smp2p";
    qcom,smem = &lt;431&gt;, &lt;451&gt;;
    interrupts = &lt;GIC_SPI 143 IRQ_TYPE_EDGE_RISING&gt;;
    mboxes = &lt;&amp;apcs 18&gt;;
    qcom,local-pid = &lt;0&gt;;
    qcom,remote-pid = &lt;4&gt;;

    wcnss_smp2p_out: master-kernel {
        qcom,entry-name = "master-kernel";
        #qcom,smem-state-cells = &lt;1&gt;;
    };

    wcnss_smp2p_in: slave-kernel {
        qcom,entry-name = "slave-kernel";
        interrupt-controller;
        #interrupt-cells = &lt;2&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>

<p id="dt-comment-1"><strong>Line 121:</strong> <span> The following example shows the SMP2P setup with the wireless processor,</span></p>

<p id="dt-comment-2"><strong>Line 122:</strong> <span> defined from the 8974 apps processor's point-of-view. It encompasses one</span></p>

<p id="dt-comment-3"><strong>Line 123:</strong> <span> inbound and one outbound entry.</span></p>

</details>
