# Microchip Inter-processor communication (IPC) mailbox controller

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

> Device-tree binding reference for Microchip Inter-processor communication (IPC) mailbox controller.

<!-- 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;mailbox&#47;microchip&#44;sbi&#45;ipc&#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;Valentina Fernandez &#60;valentina&#46;fernandezalanis&#64;microchip&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Microchip Inter-processor Communication (IPC) facilitates message passing between processors using an interrupt signaling mechanism.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Intended for use by software running in supervisor privileged mode (s-mode). This SBI interface is compatible with the Mi-V Inter-hart Communication (IHC) IP.</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;microchip&#44;sbi&#45;ipc&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">Intended for use by the SBI implementation in machine mode (m-mode), this compatible string is for the MIV_IHC Soft-IP.</p>
> </div>
>
> **Exact value (<code>const</code>):** <span id="dt-58a429cd4bf531951c0d"><code>&#34;microchip&#44;miv&#45;ihc&#45;rtl&#45;v2&#34;</code></span>

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

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

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

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

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

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

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

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

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

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

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

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-5db41c6b97ee97a03ba4"></a> <span id="dt-740be24d54c040792aec"><code>&#34;hart&#45;0&#34;</code></span>, <span id="dt-6c9c7b9c30651175ddeb"><code>&#34;hart&#45;1&#34;</code></span>, <span id="dt-304ac5fda3c96083752b"><code>&#34;hart&#45;2&#34;</code></span>, <span id="dt-fe291a44b490f2c74a72"><code>&#34;hart&#45;3&#34;</code></span>, <span id="dt-b34e09aebd279114445c"><code>&#34;hart&#45;4&#34;</code></span>, <span id="dt-791e37fe3cdc4fe8d248"><code>&#34;hart&#45;5&#34;</code></span>

<a id="dt-02ba4fa8955648673731"></a>

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

<div id="dt-c8db8f9a4474894f1bab">
<p style="white-space: pre-wrap">For "microchip,sbi-ipc", the cell represents the global "logical" channel IDs. The meaning of channel IDs are platform firmware dependent.
For "microchip,miv-ihc-rtl-v2", the cell represents the physical channel and does not vary based on the platform firmware.</p>
</div>

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

<a id="dt-47510f252a378a7159c3"></a>

### <code>microchip&#44;ihc&#45;chan&#45;disabled&#45;mask</code> — not listed as required here

<div id="dt-9dbe939a3cc26f64ccb3">
<p style="white-space: pre-wrap">Represents the enable/disable state of the bi-directional IHC channels within the MIV-IHC IP configuration.
A bit set to '1' indicates that the corresponding channel is disabled, and any read or write operations to that channel will return zero.
A bit set to '0' indicates that the corresponding channel is enabled and will be accessible through its dedicated address range registers.
The actual enable/disable state of each channel is determined by the IP block’s configuration.</p>
</div>

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

**Maximum value (<code>maximum</code>):** <span id="dt-03bbc6fa7252d28262f5"><code>32767</code></span>

**Default value (<code>default</code>):** <span id="dt-8c4cee05423059e79202"><code>0</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;&#35;mbox&#45;cells&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;microchip&#44;sbi&#45;ipc&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-f6af340cf87a1ddfe255"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-8d22a1c20da2bd25a03a"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > This rule adds no constraints.
> >
> > <div id="dt-4014adb50a728271a471">
> > <p style="white-space: pre-wrap">The 'microchip,sbi-ipc' operates in a programming model that does not require memory-mapped I/O (MMIO) registers since it uses SBI ecalls provided by the m-mode/firmware SBI implementation to access hardware registers.</p>
> > </div>
> >
> > <a id="dt-f5c8a5c6d3512feada61"></a>
> >
> > **<code>microchip&#44;ihc&#45;chan&#45;disabled&#45;mask</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-9f814971a49b2b16029a"></a> <span id="dt-37139fbd463ab3b18082"><code>&#34;reg&#34;</code></span>, <span id="dt-8c03dcb3d185395e0247"><code>&#34;microchip&#44;ihc&#45;chan&#45;disabled&#45;mask&#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">mailbox {
  compatible = "microchip,sbi-ipc";
  interrupt-parent = &lt;&amp;plic&gt;;
  interrupts = &lt;180&gt;, &lt;179&gt;, &lt;178&gt;;
  interrupt-names = "hart-1", "hart-2", "hart-3";
  #mbox-cells = &lt;1&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">mailbox@50000000 {
  compatible = "microchip,miv-ihc-rtl-v2";
  microchip,ihc-chan-disabled-mask = /bits/ 16 &lt;0&gt;;
  reg = &lt;0x50000000 0x1c000&gt;;
  interrupt-parent = &lt;&amp;plic&gt;;
  interrupts = &lt;180&gt;, &lt;179&gt;, &lt;178&gt;;
  interrupt-names = "hart-1", "hart-2", "hart-3";
  #mbox-cells = &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-only OR BSD-2-Clause)</span></p>

</details>
