# TI K3 DSP devices

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

> Device-tree binding reference for TI K3 DSP 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;k3&#45;dsp&#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>

**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 TI K3 family of SoCs usually have one or more TI DSP Core sub-systems
that are used to offload some of the processor-intensive tasks or algorithms,
for achieving various system level goals.</p>
<p style="white-space: pre-wrap">These processor sub-systems usually contain additional sub-modules like
L1 and/or L2 caches/SRAMs, an Interrupt Controller, an external memory
controller, a dedicated local power/sleep controller etc. The DSP processor
cores in the K3 SoCs are usually either a TMS320C66x CorePac processor or a
TMS320C71x CorePac processor.</p>
<p style="white-space: pre-wrap">Each DSP Core 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 (Arm CorePac) to perform the device management of the remote
processor and to communicate with the remote processor.</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;am62a&#45;c7xv&#45;dsp&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;j721e&#45;c66&#45;dsp&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;j721e&#45;c71&#45;dsp&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;j721s2&#45;c71&#45;dsp&#34;</code></span>

<div id="dt-e84064a2d568e9bcb9c3">
<p style="white-space: pre-wrap">Use "ti,am62a-c7xv-dsp" for AM62A Deep learning DSPs on K3 AM62A SoCs Use "ti,j721e-c66-dsp" for C66x DSPs on K3 J721E SoCs Use "ti,j721e-c71-dsp" for C71x DSPs on K3 J721E SoCs Use "ti,j721s2-c71-dsp" for C71x DSPs on K3 J721S2 SoCs</p>
</div>

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

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

<div id="dt-d372137de588ae9d23ee">
<p style="white-space: pre-wrap">Should contain the phandle to the reset controller node managing the
local resets for this device, and a reset specifier.</p>
</div>

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

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

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

<div id="dt-0b76b2c415d449884d95">
<p style="white-space: pre-wrap">Should contain the name of the default firmware image
file located on the firmware search path</p>
</div>

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

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

<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. This property should match
with the sub-mailbox node used in the firmware image.</p>
</div>

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

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

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

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

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

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">phandle to the reserved memory nodes to be associated with the remoteproc
device. There should be at least two reserved memory nodes defined. The
reserved memory nodes should be carveout nodes, and should be defined as
per the bindings in
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt</p>
</div>

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

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

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

**Item 1**

> <div id="dt-516466004a46b81b0531">
> <p style="white-space: pre-wrap">region used for dynamic DMA allocations like vrings and vring buffers</p>
> </div>

<a id="dt-508e504adf2bf2af41f5"></a>

**Item 2**

> <div id="dt-01dd6c5311727beedd7e">
> <p style="white-space: pre-wrap">region reserved for firmware image sections</p>
> </div>

<a id="dt-070b43010dd8479b0f6e"></a>

#### Array items beyond the listed positions (<code>additionalItems</code>)

<code>true</code>

Allowed by this rule.

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

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-60dcf8644c24cbb3d02d"><code>4</code></span>

<a id="dt-24a9e4a478173501c61f"></a>

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

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

<div id="dt-2c3b3b5f18fd1a8ae5b1">
<p style="white-space: pre-wrap">phandles to one or more reserved on-chip SRAM regions. The regions
should be defined as child nodes of the respective SRAM node, and
should be defined as per the generic bindings in,
Documentation/devicetree/bindings/sram/sram.yaml</p>
</div>

<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**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-867fe1927430e9b33ede"></a> <span id="dt-7226965ee25a457638c7"><code>&#34;ti&#44;j721e&#45;c66&#45;dsp&#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-47714583d986698a5277"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-51e3de466589c06bce7a"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-ee779ae571d08e44841f">
> > > <p style="white-space: pre-wrap">Address and Size of the L2 SRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-87a371b9a996acf08952"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-cba7a3aa31527d4db158">
> > > <p style="white-space: pre-wrap">Address and Size of the L1 PRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-0c7b652ec799c52beacf"></a>
> >
> > **Item 3**
> >
> > > <div id="dt-2ce008f4e54b72f47d11">
> > > <p style="white-space: pre-wrap">Address and Size of the L1 DRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-3e4b8a37257a98c67a43"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-838bfba5e18699b2e85d"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-4981af497b0f39b31f3f"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-d1a898575092f97901ea"><code>&#34;l2sram&#34;</code></span>
> >
> > <a id="dt-affb4e2bc828c95c05cf"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-260fd69147b91651b94b"><code>&#34;l1pram&#34;</code></span>
> >
> > <a id="dt-3ca5b29752922bda8742"></a>
> >
> > **Item 3**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-27c59e1a87af6b529466"><code>&#34;l1dram&#34;</code></span>

<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**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-c0ab484bd71d0671c6ab"></a> <span id="dt-4eb87bb951292ac8d56d"><code>&#34;ti&#44;j721e&#45;c71&#45;dsp&#34;</code></span>, <span id="dt-68ac103663508bfae0ff"><code>&#34;ti&#44;j721s2&#45;c71&#45;dsp&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-18ed1f4bd380878274d8"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-57a47f31b9538e0be5c1"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-bc319cbd3310a768e6d0"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-9da9173723afbadba2bd">
> > > <p style="white-space: pre-wrap">Address and Size of the L2 SRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-4b59d984630720aedcbf"></a>
> >
> > **Item 2**
> >
> > > <div id="dt-b910d735710af4cc497d">
> > > <p style="white-space: pre-wrap">Address and Size of the L1 DRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-d950ec7774f5cc573245"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-a800b5914a4cda2cce34"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-0428080af588ed1ee599"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-9324644531bdb5ab5d65"><code>&#34;l2sram&#34;</code></span>
> >
> > <a id="dt-7f354359a699c3516473"></a>
> >
> > **Item 2**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-ec321e37d7c7679af086"><code>&#34;l1dram&#34;</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-22249f3875646fe5ea9e"></a> <span id="dt-5632855001ed404c9e46"><code>&#34;ti&#44;am62a&#45;c7xv&#45;dsp&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b5c94fac3a56b4f9f0e9"></a>
> >
> > **<code>reg</code> — not listed as required here**
> >
> > <a id="dt-1f6db9cd4c0d15216b3c"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-7661eb8e08606c71b97d"></a>
> >
> > **Item 1**
> >
> > > <div id="dt-452c29ce52e0d173d461">
> > > <p style="white-space: pre-wrap">Address and Size of the L2 SRAM internal memory region</p>
> > > </div>
> >
> > <a id="dt-bd9dc2a7f2932e6ab1da"></a>
> >
> > **<code>reg&#45;names</code> — not listed as required here**
> >
> > <a id="dt-fde1d3c624a00abc8018"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > <a id="dt-b3b2c750f659b2580a6c"></a>
> >
> > **Item 1**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-b3cf4af1bb090e25b2c6"><code>&#34;l2sram&#34;</code></span>

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

### Rule 4

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-728e42d36b007a43405a">[<code>&#47;schemas&#47;arm&#47;keystone&#47;ti&#44;k3&#45;sci&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-arm/keystone/ti-k3-sci-common.md#dt-root>)</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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;sci&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ti&#44;sci&#45;dev&#45;id&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ti&#44;sci&#45;proc&#45;ids&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;resets&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;firmware&#45;name&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;mboxes&#34;</code></span>, <span id="dt-1a79af41bdb7f37c802f"><code>&#34;memory&#45;region&#34;</code></span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">soc {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    mailbox0_cluster3: mailbox-0 {
        #mbox-cells = &lt;1&gt;;
    };

    mailbox0_cluster4: mailbox-1 {
        #mbox-cells = &lt;1&gt;;
    };

    bus@100000 {
        compatible = "simple-bus";
        #address-cells = &lt;2&gt;;
        #size-cells = &lt;2&gt;;
        ranges = &lt;0x00 0x00100000 0x00 0x00100000 0x00 0x00020000&gt;, /* ctrl mmr */
                 &lt;0x00 0x64800000 0x00 0x64800000 0x00 0x00800000&gt;, /* C71_0 */
                 &lt;0x4d 0x80800000 0x4d 0x80800000 0x00 0x00800000&gt;, /* C66_0 */
                 &lt;0x4d 0x81800000 0x4d 0x81800000 0x00 0x00800000&gt;; /* C66_1 */

        /* J721E C66_0 DSP node */
        dsp@4d80800000 {
            compatible = "ti,j721e-c66-dsp";
            reg = &lt;0x4d 0x80800000 0x00 0x00048000&gt;,
                  &lt;0x4d 0x80e00000 0x00 0x00008000&gt;,
                  &lt;0x4d 0x80f00000 0x00 0x00008000&gt;;
            reg-names = "l2sram", "l1pram", "l1dram";
            ti,sci = &lt;&amp;dmsc&gt;;
            ti,sci-dev-id = &lt;142&gt;;
            ti,sci-proc-ids = &lt;0x03 0xFF&gt;;
            resets = &lt;&amp;k3_reset 142 1&gt;;
            firmware-name = "j7-c66_0-fw";
            memory-region = &lt;&amp;c66_0_dma_memory_region&gt;,
                            &lt;&amp;c66_0_memory_region&gt;;
            mboxes = &lt;&amp;mailbox0_cluster3 &amp;mbox_c66_0&gt;;
        };

        /* J721E C71_0 DSP node */
        c71_0: dsp@64800000 {
            compatible = "ti,j721e-c71-dsp";
            reg = &lt;0x00 0x64800000 0x00 0x00080000&gt;,
                  &lt;0x00 0x64e00000 0x00 0x0000c000&gt;;
            reg-names = "l2sram", "l1dram";
            ti,sci = &lt;&amp;dmsc&gt;;
            ti,sci-dev-id = &lt;15&gt;;
            ti,sci-proc-ids = &lt;0x30 0xFF&gt;;
            resets = &lt;&amp;k3_reset 15 1&gt;;
            firmware-name = "j7-c71_0-fw";
            memory-region = &lt;&amp;c71_0_dma_memory_region&gt;,
                            &lt;&amp;c71_0_memory_region&gt;;
            mboxes = &lt;&amp;mailbox0_cluster4 &amp;mbox_c71_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-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 74:</strong> <span> Optional properties:</span></p>

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

</details>
