# NXP i.MX Co-Processor

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

> Device-tree binding reference for NXP i.MX Co-Processor.

<!-- 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;remoteproc&#47;fsl&#44;imx&#45;rproc&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This binding provides support for ARM Cortex M4 Co-processor found on some NXP iMX SoCs.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Peng Fan &#60;peng&#46;fan&#64;nxp&#46;com&#62;&#34;</code></span>

<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;fsl&#44;imx6sx&#45;cm4&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;fsl&#44;imx7d&#45;cm4&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;fsl&#44;imx7ulp&#45;cm4&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;fsl&#44;imx8mm&#45;cm4&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;fsl&#44;imx8mn&#45;cm7&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;fsl&#44;imx8mn&#45;cm7&#45;mmio&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;fsl&#44;imx8mp&#45;cm7&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;fsl&#44;imx8mp&#45;cm7&#45;mmio&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;fsl&#44;imx8mq&#45;cm4&#34;</code></span>, <span id="dt-1e634b71c3167df349bb"><code>&#34;fsl&#44;imx8qm&#45;cm4&#34;</code></span>, <span id="dt-70e866729f00cfce3510"><code>&#34;fsl&#44;imx8qxp&#45;cm4&#34;</code></span>, <span id="dt-81f973819a6dd2302321"><code>&#34;fsl&#44;imx8ulp&#45;cm33&#34;</code></span>, <span id="dt-e5cbf931a6c5d40231a9"><code>&#34;fsl&#44;imx93&#45;cm33&#34;</code></span>, <span id="dt-5235cdfd9421f63db578"><code>&#34;fsl&#44;imx95&#45;cm7&#34;</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

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

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

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

<div id="dt-94e0d14f31e0ec14b27a">
<p style="white-space: pre-wrap">Phandle to syscon block which provide access to System Reset Controller</p>
</div>

<a id="dt-4ee7b83e6c5727877a02"></a>

### <code>mbox&#45;names</code> — not listed as required here

<a id="dt-48583272e5ed97b0ea27"></a>

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

<a id="dt-3e9657da4c58d3c7f293"></a>

**Item 1**

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

<a id="dt-69854b892779cd21ad4c"></a>

**Item 2**

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

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

**Item 3**

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

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

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

<div id="dt-35048c35d9f2ceeeab93">
<p style="white-space: pre-wrap">This property is required only if the rpmsg/virtio functionality is used. List of &lt;&amp;phandle type channel&gt; - 1 channel for TX, 1 channel for RX, 1 channel for RXDB. (see mailbox/fsl,mu.yaml)</p>
</div>

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

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

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

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">If present, a phandle for a reserved memory area that used for vdev buffer, resource table, vring region and others used by remote processor.</p>
</div>

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

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

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>8</code></span>

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

### <code>fsl&#44;auto&#45;boot</code> — not listed as required here

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

<div id="dt-afef0a23dd2f4152be50">
<p style="white-space: pre-wrap">Indicate whether need to load the default firmware and start the remote processor automatically.</p>
</div>

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

### <code>fsl&#44;entry&#45;address</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-33e4d6adca3dbb7fd891">[<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-e8edbbeb7ec4aa1dc55e">
<p style="white-space: pre-wrap">Specify CPU entry address for SCU enabled processor.</p>
</div>

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

### <code>fsl&#44;iomuxc&#45;gpr</code> — not listed as required here

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

<div id="dt-a3583b2385605e0ab015">
<p style="white-space: pre-wrap">Phandle to IOMUXC GPR block which provide access to CM7 CPUWAIT bit.</p>
</div>

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

### <code>fsl&#44;resource&#45;id</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ae48858b35bdeb99cd48">[<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-c48343c55bd968d8b75b">
<p style="white-space: pre-wrap">This property is to specify the resource id of the remote processor in SoC which supports SCFW</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#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-bf9d7a6c36fc19e6cd0a"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-451f8454a4f96d20fdd9"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Allowed values (<code>enum</code>):** <a id="dt-b0443397560b968195b8"></a> <span id="dt-eee805568886c3c0f483"><code>&#34;fsl&#44;imx8mn&#45;cm7&#45;mmio&#34;</code></span>, <span id="dt-db8973c13f1a89db260a"><code>&#34;fsl&#44;imx8mp&#45;cm7&#45;mmio&#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-abd76beae11ac437362c"></a>
> >
> > **<code>fsl&#44;iomuxc&#45;gpr</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;fsl&#44;imx8qxp&#45;cm4&#34;</code></span>, <span id="dt-97636aa7a2139f7622b5"><code>&#34;fsl&#44;imx8qm&#45;cm4&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-ee96a18d4bb2a9d39bd9"></a> <span id="dt-96ee7f71687cd234a9f8"><code>&#34;power&#45;domains&#34;</code></span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-55c0fd2e5d660e555a25"></a>
> >
> > **<code>power&#45;domains</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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/clock/imx7d-clock.h&gt;
m4_reserved_sysmem1: cm4@80000000 {
  reg = &lt;0x80000000 0x80000&gt;;
};

m4_reserved_sysmem2: cm4@81000000 {
  reg = &lt;0x81000000 0x80000&gt;;
};

imx7d-cm4 {
  compatible = "fsl,imx7d-cm4";
  memory-region = &lt;&amp;m4_reserved_sysmem1&gt;, &lt;&amp;m4_reserved_sysmem2&gt;;
  syscon = &lt;&amp;src&gt;;
  clocks = &lt;&amp;clks IMX7D_ARM_M4_ROOT_CLK&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/clock/imx8mm-clock.h&gt;

imx8mm-cm4 {
  compatible = "fsl,imx8mm-cm4";
  clocks = &lt;&amp;clk IMX8MM_CLK_M4_DIV&gt;;
  mbox-names = "tx", "rx", "rxdb";
  mboxes = &lt;&amp;mu 0 1
            &amp;mu 1 1
            &amp;mu 3 1&gt;;
  memory-region = &lt;&amp;vdev0buffer&gt;, &lt;&amp;vdev0vring0&gt;, &lt;&amp;vdev0vring1&gt;, &lt;&amp;rsc_table&gt;;
  syscon = &lt;&amp;src&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>
