# Apple Mailbox Controller

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

> Device-tree binding reference for Apple Mailbox Controller.

<!-- 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;mailbox&#47;apple&#44;mailbox&#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;Hector Martin &#60;marcan&#64;marcan&#46;st&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Sven Peter &#60;sven&#64;svenpeter&#46;dev&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Apple mailbox consists of two FIFOs used to exchange 64+32 bit messages between the main CPU and a co-processor. Multiple instances of this mailbox can be found on Apple SoCs. One of the two FIFOs is used to send data to a co-processor while the other FIFO is used for the other direction. Various clients implement different IPC protocols based on these simple messages and shared memory buffers.</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">ASC mailboxes are the most common variant found on the M1 used for example for the display controller, the system management controller and the NVMe coprocessor.</p>
> </div>
>
> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;apple&#44;t8103&#45;asc&#45;mailbox&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;apple&#44;t8112&#45;asc&#45;mailbox&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;apple&#44;t6000&#45;asc&#45;mailbox&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;apple&#44;t6020&#45;asc&#45;mailbox&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;apple&#44;asc&#45;mailbox&#45;v4&#34;</code></span>

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

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">An older ASC mailbox interface found on T2 and A11 that is also used for the NVMe coprocessor and the system management controller.</p>
> </div>
>
> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;apple&#44;t8015&#45;asc&#45;mailbox&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <div id="dt-34ebc3371373135d1528">
> <p style="white-space: pre-wrap">M3 mailboxes are an older variant with a slightly different MMIO interface still found on the M1. It is used for the Thunderbolt co-processors.</p>
> </div>
>
> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;apple&#44;t8103&#45;m3&#45;mailbox&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;apple&#44;t8112&#45;m3&#45;mailbox&#34;</code></span>, <span id="dt-dba59cbb664a09df0380"><code>&#34;apple&#44;t6000&#45;m3&#45;mailbox&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;apple&#44;m3&#45;mailbox&#45;v2&#34;</code></span>

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

### <code>reg</code> — 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

<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">send fifo is empty interrupt</p>
> </div>

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

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">send fifo is not empty interrupt</p>
> </div>

<a id="dt-6825e597892563d56556"></a>

**Item 3**

> <div id="dt-2c85367ad575dfda8b35">
> <p style="white-space: pre-wrap">receive fifo is empty interrupt</p>
> </div>

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

**Item 4**

> <div id="dt-aa4f93a6c04967e709f9">
> <p style="white-space: pre-wrap">receive fifo is not empty interrupt</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;send&#45;empty&#34;</code></span>

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

**Item 2**

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

<a id="dt-01a6f91e38388cdf0f5a"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-25e85adf3e7caf29cd92"><code>&#34;recv&#45;empty&#34;</code></span>

<a id="dt-96b5fc50d1d5da0ddc64"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-bb507334c2bd56c85638"><code>&#34;recv&#45;not&#45;empty&#34;</code></span>

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

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

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>1</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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupt&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;mbox&#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">mailbox@77408000 {
    compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4";
    reg = &lt;0x77408000 0x4000&gt;;
    interrupts = &lt;1 583 4&gt;, &lt;1 584 4&gt;, &lt;1 585 4&gt;, &lt;1 586 4&gt;;
    interrupt-names = "send-empty", "send-not-empty",
                      "recv-empty", "recv-not-empty";
    #mbox-cells = &lt;0&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>
