# OMAP4+ Remoteproc Devices

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

> Device-tree binding reference for OMAP4+ Remoteproc Devices.

<!-- 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;remoteproc&#47;ti&#44;omap&#45;remoteproc&#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;Suman Anna &#60;s&#45;anna&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The OMAP family of SoCs usually have one or more slave processor sub-systems that are used to offload some of the processor-intensive tasks, or to manage other hardware accelerators, for achieving various system level goals.
The processor cores in the sub-system are usually behind an IOMMU, and may contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L2 caches, an Interrupt Controller, a Cache Controller etc.
The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor sub-system. The DSP processor sub-system can contain any of the TI's C64x, C66x or C67x family of DSP cores as the main execution unit. The IPU processor sub-system usually contains either a Dual-Core Cortex-M3 or Dual-Core Cortex-M4 processors.
Each remote processor sub-system is represented as a single DT node. Each node has a number of required or optional properties that enable the OS running on the host processor (MPU) to perform the device management of the remote processor and to communicate with the remote processor. The various properties can be classified as constant or variable. The constant properties are dictated by the SoC and does not change from one board to another having the same SoC. Examples of constant properties include 'iommus', 'reg'. The variable properties are dictated by the system integration aspects such as memory on the board, or configuration used within the corresponding firmware image. Examples of variable properties include 'mboxes', 'memory-region', 'timers', 'watchdog-timers' etc.</p>
</div>

<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;ti&#44;omap4&#45;dsp&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;omap5&#45;dsp&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;dra7&#45;dsp&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;omap4&#45;ipu&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;omap5&#45;ipu&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;dra7&#45;ipu&#34;</code></span>

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

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

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

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

<div id="dt-d0107bd8d2225cdbefb8">
<p style="white-space: pre-wrap">phandles to OMAP IOMMU nodes, that need to be programmed
for this remote processor to access any external RAM memory or
other peripheral device address spaces. This property usually
has only a single phandle. Multiple phandles are used only in
cases where the sub-system has different ports for different
sub-modules within the processor sub-system (eg: DRA7 DSPs),
and need the same programming in both the MMUs.</p>
</div>

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

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

**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>2</code></span>

<div id="dt-35048c35d9f2ceeeab93">
<p style="white-space: pre-wrap">OMAP Mailbox specifier denoting the sub-mailbox, to be used for
communication with the remote processor. The specifier format is
as per the bindings,
Documentation/devicetree/bindings/mailbox/ti,omap-mailbox.yaml
This property should match with the sub-mailbox node used in
the firmware image.</p>
</div>

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Main functional clock for the remote processor</p>
</div>

<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>

<div id="dt-d372137de588ae9d23ee">
<p style="white-space: pre-wrap">Reset handles for the remote processor</p>
</div>

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

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

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

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

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

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">phandle to the reserved memory node to be associated
with the remoteproc device. The reserved memory node
can be a CMA memory node, and should be defined as
per the bindings,
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt</p>
</div>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">Address space for any remoteproc memories present on
the SoC. Should contain an entry for each value in
'reg-names'. These are mandatory for all DSP and IPU
processors that have them (OMAP4/OMAP5 DSPs do not have
any RAMs)</p>
</div>

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

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

<div id="dt-c6f78d81605b46af6c17">
<p style="white-space: pre-wrap">Required names for each of the address spaces defined in
the 'reg' property. Expects the names from the following
list, in the specified order, each representing the corresponding
internal RAM memory region.</p>
</div>

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

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

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

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

**Item 1**

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

<a id="dt-12013039402717d72b48"></a>

**Item 2**

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

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

**Item 3**

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

<a id="dt-64e713150b3409898449"></a>

### <code>ti&#44;bootreg</code> — not listed as required here

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

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

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

**Item 1**

> <a id="dt-31250dab320bd261bda1"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-03f4882c20573a3503be"></a>
>
> **Item 1**
>
> > <div id="dt-d628cae6086721d136d2">
> > <p style="white-space: pre-wrap">phandle to the System Control Configuration region</p>
> > </div>
>
> <a id="dt-20994e25674b52bfef94"></a>
>
> **Item 2**
>
> > <div id="dt-af98c032e3924e96610a">
> > <p style="white-space: pre-wrap">register offset of the boot address register</p>
> > </div>
>
> <a id="dt-43dc2e514b84c2655dd2"></a>
>
> **Item 3**
>
> > <div id="dt-5279863194c7e8abb9d6">
> > <p style="white-space: pre-wrap">the bit shift within the register</p>
> > </div>

<div id="dt-aef7218c99eb31aeb136">
<p style="white-space: pre-wrap">This property is required for all the DSP instances on OMAP4, OMAP5 and DRA7xx SoCs.</p>
</div>

<a id="dt-7530aeafcaedc4764f07"></a>

### <code>ti&#44;autosuspend&#45;delay&#45;ms</code> — not listed as required here

<div id="dt-6ee7dd0a956f6ba3d2a9">
<p style="white-space: pre-wrap">Custom autosuspend delay for the remoteproc in milliseconds.
Recommended values is preferable to be in the order of couple
of seconds. A negative value can also be used to disable the
autosuspend behavior.</p>
</div>

<a id="dt-23d0643e6a03f21eb039"></a>

### <code>ti&#44;timers</code> — not listed as required here

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

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

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

<div id="dt-40d96b604151013feb2f">
<p style="white-space: pre-wrap">One or more phandles to OMAP DMTimer nodes, that serve
as System/Tick timers for the OS running on the remote
processors. This will usually be a single timer if the
processor sub-system is running in SMP mode, or one per
core in the processor sub-system. This can also be used
to reserve specific timers to be dedicated to the
remote processors.</p>
<p style="white-space: pre-wrap">This property is mandatory on remote processors requiring
external tick wakeup, and to support Power Management
features. The timers to be used should match with the
timers used in the firmware image.</p>
</div>

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

### <code>ti&#44;watchdog&#45;timers</code> — not listed as required here

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

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

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

<div id="dt-064065ed30a284e3b90e">
<p style="white-space: pre-wrap">One or more phandles to OMAP DMTimer nodes, used to
serve as Watchdog timers for the processor cores. This
will usually be one per executing processor core, even
if the processor sub-system is running a SMP OS.</p>
<p style="white-space: pre-wrap">The timers to be used should match with the watchdog
timers used in the firmware image.</p>
</div>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> **Allowed values (<code>enum</code>):** <a id="dt-82466830f6ec17b6938d"></a> <span id="dt-ff9868c1167a983b65d3"><code>&#34;ti&#44;dra7&#45;dsp&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> <a id="dt-d3da345ec82b9041251c"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-8893b96000b374eb19f2"></a>
>
> #### <code>reg</code> — required here
>
> **Minimum number of items (<code>minItems</code>):** <span id="dt-321e0e16fe3625b59ae7"><code>3</code></span>
>
> **Maximum number of items (<code>maxItems</code>):** <span id="dt-91b7bae59d17a6b7385d"><code>3</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;reg&#34;</code></span>, <span id="dt-dd9db9085e2885964a9c"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-0d447fba1979bb23b68c"><code>&#34;ti&#44;bootreg&#34;</code></span>

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

## When the condition does not match (<code>else</code>)

> <a id="dt-9d3d039ed48a94011ee3"></a>
>
> ### Condition (<code>if</code>)
>
> > <a id="dt-66f09d9ff6cb0051c9dd"></a>
> >
> > #### Properties and child nodes (<code>properties</code>)
> >
> > <a id="dt-8af070bc44744058b204"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-ff2e94d81f9ee81734ac"></a> <span id="dt-69f9152947b7a90e94f1"><code>&#34;ti&#44;omap4&#45;ipu&#34;</code></span>, <span id="dt-cd83870c2f87236f0bf8"><code>&#34;ti&#44;omap5&#45;ipu&#34;</code></span>, <span id="dt-50a3cdc867beccefbd53"><code>&#34;ti&#44;dra7&#45;ipu&#34;</code></span>
>
> <a id="dt-bc67bb3b3f94a62c5444"></a>
>
> ### When the condition matches (<code>then</code>)
>
> > <a id="dt-da209efc1aa849a2d66f"></a>
> >
> > #### Properties and child nodes (<code>properties</code>)
> >
> > <a id="dt-038e8811bba23fbab704"></a>
> >
> > **<code>reg</code> — required here**
> >
> > **Minimum number of items (<code>minItems</code>):** <span id="dt-8ac9bc3d95d8d7280eec"><code>1</code></span>
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-ddb345512e90c7d8a8ac"><code>1</code></span>
> >
> > <a id="dt-b87b94574788cabb7c7f"></a>
> >
> > **<code>ti&#44;bootreg</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-b936cb08ddb542690a6c"></a> <span id="dt-3b91745206d07c1fba07"><code>&#34;reg&#34;</code></span>, <span id="dt-f06b484dbb8acb6c8c3b"><code>&#34;reg&#45;names&#34;</code></span>
>
> <a id="dt-6691db3738347923a6c8"></a>
>
> ### When the condition does not match (<code>else</code>)
>
> > <a id="dt-912418d81c16904f2fe3"></a>
> >
> > #### Properties and child nodes (<code>properties</code>)
> >
> > <a id="dt-cf6da517f418661625bc"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > **Required in this object (<code>required</code>):** <a id="dt-1cd9377d7161a19fa3dc"></a> <span id="dt-a478f3f7b689a895b8d1"><code>&#34;ti&#44;bootreg&#34;</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;iommus&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;mboxes&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;resets&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;firmware&#45;name&#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">
//Example 1: OMAP4 DSP

/* DSP Reserved Memory node */
#include &lt;dt-bindings/clock/omap4.h&gt;
reserved-memory {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    dsp_memory_region: dsp-memory@98000000 {
        compatible = "shared-dma-pool";
        reg = &lt;0x98000000 0x800000&gt;;
        reusable;
    };
};

/* DSP node */
ocp {
    dsp: dsp {
        compatible = "ti,omap4-dsp";
        ti,bootreg = &lt;&amp;scm_conf 0x304 0&gt;;
        iommus = &lt;&amp;mmu_dsp&gt;;
        mboxes = &lt;&amp;mailbox &amp;mbox_dsp&gt;;
        memory-region = &lt;&amp;dsp_memory_region&gt;;
        ti,timers = &lt;&amp;timer5&gt;;
        ti,watchdog-timers = &lt;&amp;timer6&gt;;
        clocks = &lt;&amp;tesla_clkctrl OMAP4_DSP_CLKCTRL 0&gt;;
        resets = &lt;&amp;prm_tesla 0&gt;, &lt;&amp;prm_tesla 1&gt;;
        firmware-name = "omap4-dsp-fw.xe64T";
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">
//Example 2: OMAP5 IPU

/* IPU Reserved Memory node */
#include &lt;dt-bindings/clock/omap5.h&gt;
reserved-memory {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    ipu_memory_region: ipu-memory@95800000 {
        compatible = "shared-dma-pool";
        reg = &lt;0 0x95800000 0 0x3800000&gt;;
        reusable;
    };
};

/* IPU node */
ocp {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    ipu: ipu@55020000 {
        compatible = "ti,omap5-ipu";
        reg = &lt;0x55020000 0x10000&gt;;
        reg-names = "l2ram";
        iommus = &lt;&amp;mmu_ipu&gt;;
        mboxes = &lt;&amp;mailbox &amp;mbox_ipu&gt;;
        memory-region = &lt;&amp;ipu_memory_region&gt;;
        ti,timers = &lt;&amp;timer3&gt;, &lt;&amp;timer4&gt;;
        ti,watchdog-timers = &lt;&amp;timer9&gt;, &lt;&amp;timer11&gt;;
        clocks = &lt;&amp;ipu_clkctrl OMAP5_MMU_IPU_CLKCTRL 0&gt;;
        resets = &lt;&amp;prm_core 2&gt;;
        firmware-name = "omap5-ipu-fw.xem4";
    };
};

</code></pre>

<pre id="dt-d0212a4cd671f89a0b40"><code class="language-dts">
//Example 3: DRA7xx/AM57xx DSP

/* DSP1 Reserved Memory node */
#include &lt;dt-bindings/clock/dra7.h&gt;
reserved-memory {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    dsp1_memory_region: dsp1-memory@99000000 {
        compatible = "shared-dma-pool";
        reg = &lt;0x0 0x99000000 0x0 0x4000000&gt;;
        reusable;
    };
};

/* DSP1 node */
ocp {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;

    dsp1: dsp@40800000 {
        compatible = "ti,dra7-dsp";
        reg = &lt;0x40800000 0x48000&gt;,
              &lt;0x40e00000 0x8000&gt;,
              &lt;0x40f00000 0x8000&gt;;
        reg-names = "l2ram", "l1pram", "l1dram";
        ti,bootreg = &lt;&amp;scm_conf 0x55c 0&gt;;
        iommus = &lt;&amp;mmu0_dsp1&gt;, &lt;&amp;mmu1_dsp1&gt;;
        mboxes = &lt;&amp;mailbox5 &amp;mbox_dsp1_ipc3x&gt;;
        memory-region = &lt;&amp;dsp1_memory_region&gt;;
        ti,timers = &lt;&amp;timer5&gt;;
        ti,watchdog-timers = &lt;&amp;timer10&gt;;
        resets = &lt;&amp;prm_dsp1 0&gt;;
        clocks = &lt;&amp;dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0&gt;;
        firmware-name = "dra7-dsp1-fw.xe66";
    };
};
</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 87:</strong> <span> Optional properties:</span></p>

<p id="dt-comment-2"><strong>Line 88:</strong> <span> --------------------</span></p>

<p id="dt-comment-3"><strong>Line 89:</strong> <span> Some of these properties are mandatory on some SoCs, and some are optional</span></p>

<p id="dt-comment-4"><strong>Line 90:</strong> <span> depending on the configuration of the firmware image to be executed on the</span></p>

<p id="dt-comment-5"><strong>Line 91:</strong> <span> remote processor. The conditions are mentioned for each property.</span></p>

<p id="dt-comment-6"><strong>Line 92:</strong> <span></span></p>

<p id="dt-comment-7"><strong>Line 93:</strong> <span> The following are the optional properties:</span></p>

</details>
