# STMicroelectronics STM32 remote processor controller

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

> Device-tree binding reference for STMicroelectronics STM32 remote processor 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;remoteproc&#47;st&#44;stm32&#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 document defines the binding for the remoteproc component that loads and boots firmwares on the ST32MP family chipset.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Fabien Dessenne &#60;fabien&#46;dessenne&#64;foss&#46;st&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Arnaud Pouliquen &#60;arnaud&#46;pouliquen&#64;foss&#46;st&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;st&#44;stm32mp1&#45;m4&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Address ranges of the RETRAM and MCU SRAM memories used by the remote processor.</p>
</div>

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

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

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

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

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

<a id="dt-563c20491090a57ac4c9"></a>

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

<a id="dt-353fc881e5c58d1dcba1"></a>

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

<a id="dt-5629342117bd5a110a5b"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-00c19fce1fea453eab02"><code>&#34;mcu&#95;rst&#34;</code></span>

<a id="dt-80813f149d5a57545875"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-bff27a7e8c043853e284"><code>&#34;hold&#95;boot&#34;</code></span>

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

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

### <code>st&#44;syscfg&#45;holdboot</code> — not listed as required here

<div id="dt-0fce31b545547b64af90">
<p style="white-space: pre-wrap">remote processor reset hold boot</p>
</div>

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

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

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

**Item 1**

> <a id="dt-8fc0bf991f14908ce6ea"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-2702c9e28c908beef5d2"></a>
>
> **Item 1**
>
> > <div id="dt-f9a31b0d57eb6f2f5d6d">
> > <p style="white-space: pre-wrap">Phandle of syscon block</p>
> > </div>
>
> <a id="dt-fe4081752aa1404af375"></a>
>
> **Item 2**
>
> > <div id="dt-bcd6c83c6db2b92769a2">
> > <p style="white-space: pre-wrap">The offset of the hold boot setting register</p>
> > </div>
>
> <a id="dt-57b1a71950e32a590ac4"></a>
>
> **Item 3**
>
> > <div id="dt-9ec2093d50a8c8742407">
> > <p style="white-space: pre-wrap">The field mask of the hold boot</p>
> > </div>

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

### <code>st&#44;syscfg&#45;tz</code> — not listed as required here

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

<div id="dt-c3c2760ba6afd8692669">
<p style="white-space: pre-wrap">Reference to the system configuration which holds the RCC trust zone mode</p>
</div>

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

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

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

**Item 1**

> <a id="dt-278da8319fcb7e32d19b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-0f38b219eae98f54c311"></a>
>
> **Item 1**
>
> > <div id="dt-e5e20dcf5f1ceec16c18">
> > <p style="white-space: pre-wrap">Phandle of syscon block</p>
> > </div>
>
> <a id="dt-109695de79d23b47e9f3"></a>
>
> **Item 2**
>
> > <div id="dt-d6462d83fd7de035c791">
> > <p style="white-space: pre-wrap">The offset of the trust zone setting register</p>
> > </div>
>
> <a id="dt-3613f00678e6a78f6993"></a>
>
> **Item 3**
>
> > <div id="dt-c2c1a22a243a2c9f4a95">
> > <p style="white-space: pre-wrap">The field mask of the trust zone state</p>
> > </div>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Should contain the WWDG1 watchdog reset interrupt</p>
</div>

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

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

### <code>wakeup&#45;source</code> — not listed as required here

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

<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.</p>
</div>

<a id="dt-9989e8e5633f2c6ccb3b"></a>

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

<a id="dt-53d69334d9dba1b769db"></a>

**Item 1**

> <div id="dt-9fe3a6bfb71f511e8481">
> <pre><code>A channel (a) used to communicate through virtqueues with the
> remote proc.
> Bi-directional channel:
>   - from local to remote = send message
>   - from remote to local = send message ack</code></pre>
> </div>

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

**Item 2**

> <div id="dt-07aab42c3360989394db">
> <p style="white-space: pre-wrap">A channel (b) working the opposite direction of channel (a)</p>
> </div>

<a id="dt-41d1cd9ab96cb34f4bd0"></a>

**Item 3**

> <div id="dt-01d6343dc14d1a60273a">
> <pre><code>A channel (c) used by the local proc to notify the remote proc that it
> is about to be shut down.
> Unidirectional channel:
>   - from local to remote, where ACK from the remote means that it is
>     ready for shutdown</code></pre>
> </div>

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

**Item 4**

> <div id="dt-795339bfcabf6e7465d4">
> <pre><code>A channel (d) used by the local proc to notify the remote proc that it
> has to stop interprocessor communication.
> Unidirectional channel:
>   - from local to remote, where ACK from the remote means that communication
>     as been stopped on the remote side.</code></pre>
> </div>

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

<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;vq0&#34;</code></span>

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

**Item 2**

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

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

**Item 3**

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

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

**Item 4**

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

**Minimum number of items (<code>minItems</code>):** <span id="dt-da172cb02efe99004858"><code>1</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">List of phandles to the reserved memory regions associated with the remoteproc device. This is variable and describes the memories shared with the remote processor (e.g. remoteproc firmware and carveouts, rpmsg vrings, ...). (see ../reserved-memory/reserved-memory.txt)</p>
</div>

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

### <code>st&#44;syscfg&#45;pdds</code> — not listed as required here

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

<div id="dt-30de5a1a48eb74c46c92">
<p style="white-space: pre-wrap">Reference to the system configuration which holds the remote</p>
</div>

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

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

<a id="dt-6e0304e34e472115ebc8"></a>

**Item 1**

> <a id="dt-447cd790416d91de4717"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-3ccf450ffa23e66f68c8"></a>
>
> **Item 1**
>
> > <div id="dt-172a40c06c2e3d5daca3">
> > <p style="white-space: pre-wrap">Phandle of syscon block</p>
> > </div>
>
> <a id="dt-b000464a69adb5a1f44b"></a>
>
> **Item 2**
>
> > <div id="dt-328bb1f46859987fdf0a">
> > <p style="white-space: pre-wrap">The offset of the power setting register</p>
> > </div>
>
> <a id="dt-d3e5728f4d6cbfe58ac7"></a>
>
> **Item 3**
>
> > <div id="dt-7c8035adc7e4877d2cf4">
> > <p style="white-space: pre-wrap">The field mask of the PDDS selection</p>
> > </div>

<a id="dt-734801c95dfa03c8e084"></a>

### <code>st&#44;syscfg&#45;m4&#45;state</code> — not listed as required here

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

<div id="dt-7cb6758296aa047dd90d">
<p style="white-space: pre-wrap">Reference to the tamp register which exposes the Cortex-M4 state.</p>
</div>

<a id="dt-339e20d5276b3708917a"></a>

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

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

**Item 1**

> <a id="dt-52d896d6b5f617fdac10"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-22309c7d6fb728abfe63"></a>
>
> **Item 1**
>
> > <div id="dt-54ffc2b5387a78fc47cf">
> > <p style="white-space: pre-wrap">Phandle of syscon block with the tamp register</p>
> > </div>
>
> <a id="dt-87d78e49bdbdcd05286c"></a>
>
> **Item 2**
>
> > <div id="dt-a0c0240ee324db842258">
> > <p style="white-space: pre-wrap">The offset of the tamp register</p>
> > </div>
>
> <a id="dt-796a47916833838a63bc"></a>
>
> **Item 3**
>
> > <div id="dt-232daf1affc05280e38f">
> > <p style="white-space: pre-wrap">The field mask of the Cortex-M4 state</p>
> > </div>

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

### <code>st&#44;syscfg&#45;rsc&#45;tbl</code> — not listed as required here

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

<div id="dt-eb689cbad7c4d0f22b45">
<p style="white-space: pre-wrap">Reference to the tamp register which references the Cortex-M4
resource table address.</p>
</div>

<a id="dt-15b728ff6cfca3183b61"></a>

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

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

**Item 1**

> <a id="dt-85c067053edd257c6403"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-112aa62639a54e260d02"></a>
>
> **Item 1**
>
> > <div id="dt-7fac700d31db07981c3b">
> > <p style="white-space: pre-wrap">Phandle of syscon block with the tamp register</p>
> > </div>
>
> <a id="dt-5d3796e182ed49ca038c"></a>
>
> **Item 2**
>
> > <div id="dt-4d1e449362e452df5002">
> > <p style="white-space: pre-wrap">The offset of the tamp register</p>
> > </div>
>
> <a id="dt-3b66d71ceca6df7e50a1"></a>
>
> **Item 3**
>
> > <div id="dt-65c13848060b9ce0e53c">
> > <p style="white-space: pre-wrap">The field mask of the Cortex-M4 resource table address</p>
> > </div>

<a id="dt-79574e713efa01130631"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-addcde187fd51c21ef42">[<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-ddc3b51b234361ca0e67">
<p style="white-space: pre-wrap">If defined, when remoteproc is probed, it loads the default firmware and starts the remote processor.</p>
</div>

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

### <code>firmware&#45;name</code> — not listed as required here

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

<div id="dt-0b76b2c415d449884d95">
<p style="white-space: pre-wrap">Default name of the remote processor firmware.</p>
</div>

**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;resets&#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-e48433271a63ee1ea7bb"></a>
> >
> > **<code>reset&#45;names</code> — not listed as required here**
> >
> > <a id="dt-1075e028382f3268ac7b"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3bbf8218951ca073b6fa"></a>
> > >
> > > **Rule for matching array elements (<code>contains</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-98b262c203e3b29f9d13"><code>&#34;hold&#95;boot&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;st&#44;syscfg&#45;holdboot&#34;</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-0b56c96a40292905ded0"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-d491aab1cade871dc3ab"></a>
> >
> > **<code>st&#44;syscfg&#45;holdboot</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/reset/stm32mp1-resets.h&gt;
m4@10000000 {
  compatible = "st,stm32mp1-m4";
  reg = &lt;0x10000000 0x40000&gt;,
        &lt;0x30000000 0x40000&gt;,
        &lt;0x38000000 0x10000&gt;;
  resets = &lt;&amp;rcc MCU_R&gt;;
  reset-names = "mcu_rst";
  /* Hold boot managed using system config*/
  st,syscfg-holdboot = &lt;&amp;rcc 0x10C 0x1&gt;;
  st,syscfg-rsc-tbl = &lt;&amp;tamp 0x144 0xFFFFFFFF&gt;;
  st,syscfg-m4-state = &lt;&amp;tamp 0x148 0xFFFFFFFF&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/reset/stm32mp1-resets.h&gt;
m4@10000000 {
  compatible = "st,stm32mp1-m4";
  reg = &lt;0x10000000 0x40000&gt;,
        &lt;0x30000000 0x40000&gt;,
        &lt;0x38000000 0x10000&gt;;
  /* Hold boot managed using SCMI reset controller */
  resets = &lt;&amp;scmi MCU_R&gt;, &lt;&amp;scmi MCU_HOLD_BOOT_R&gt;;
  reset-names = "mcu_rst", "hold_boot";
  st,syscfg-rsc-tbl = &lt;&amp;tamp 0x144 0xFFFFFFFF&gt;;
  st,syscfg-m4-state = &lt;&amp;tamp 0x148 0xFFFFFFFF&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>
