# TI Programmable Realtime Unit (PRU) cores

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

> Device-tree binding reference for TI Programmable Realtime Unit (PRU) cores.

<!-- 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;pru&#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">Each Programmable Real-Time Unit and Industrial Communication Subsystem
(PRU-ICSS or PRUSS) has two 32-bit load/store RISC CPU cores called
Programmable Real-Time Units (PRUs), each represented by a node. Each PRU
core has a dedicated Instruction RAM, Control and Debug register sets, and
use the Data RAMs present within the PRU-ICSS for code execution.</p>
<p style="white-space: pre-wrap">The K3 SoCs containing ICSSG v1.0 (eg: AM65x SR1.0) also have two Auxiliary
PRU cores called RTUs with slightly different IP integration. The K3 SoCs
containing the revised ICSSG v1.1 (eg: J721E, AM65x SR2.0) have an extra two
auxiliary Transmit PRU cores called Tx_PRUs that augment the PRUs. Each RTU
or Tx_PRU core can also be used independently like a PRU, or alongside a
corresponding PRU core to provide/implement auxiliary functionality/support.</p>
<p style="white-space: pre-wrap">Each PRU, RTU or Tx_PRU core node should be defined as a child node of the
corresponding PRU-ICSS node. Each node can optionally be rendered inactive by
using the standard DT string property, "status".</p>
<pre><code>Please see the overall PRU-ICSS bindings document for additional details
including a complete example,
  Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml</code></pre>
</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;am3356&#45;pru&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;ti&#44;am4376&#45;pru&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;ti&#44;am5728&#45;pru&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;ti&#44;am625&#45;pru&#34;</code></span>, <span id="dt-498d24c42855e222b0fd"><code>&#34;ti&#44;am642&#45;pru&#34;</code></span>, <span id="dt-216696827b315708886c"><code>&#34;ti&#44;am642&#45;rtu&#34;</code></span>, <span id="dt-5708aa713f48e19e156f"><code>&#34;ti&#44;am642&#45;tx&#45;pru&#34;</code></span>, <span id="dt-3edbd20dc5b59e47edf5"><code>&#34;ti&#44;am654&#45;pru&#34;</code></span>, <span id="dt-07feb33463d5c114ab05"><code>&#34;ti&#44;am654&#45;rtu&#34;</code></span>, <span id="dt-1e634b71c3167df349bb"><code>&#34;ti&#44;am654&#45;tx&#45;pru&#34;</code></span>, <span id="dt-70e866729f00cfce3510"><code>&#34;ti&#44;j721e&#45;pru&#34;</code></span>, <span id="dt-81f973819a6dd2302321"><code>&#34;ti&#44;j721e&#45;rtu&#34;</code></span>, <span id="dt-e5cbf931a6c5d40231a9"><code>&#34;ti&#44;j721e&#45;tx&#45;pru&#34;</code></span>, <span id="dt-5235cdfd9421f63db578"><code>&#34;ti&#44;k2g&#45;pru&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">Address and Size of the PRU Instruction RAM</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">Address and Size of the PRU CTRL sub-module registers</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">Address and Size of the PRU Debug sub-module registers</p>
> </div>

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

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

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

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

**Item 2**

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

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-bd78c6ffbdc5ce20feb0"><code>&#34;debug&#34;</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-c2de09e7f7fd211b679d"></a>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupt specifiers enable the virtio/rpmsg communication between MPU and the PRU/RTU cores. For the values of the interrupt cells please refer to interrupt-controller/ti,pruss-intc.yaml schema.</p>
</div>

<a id="dt-8aa4fd7705c68de75d2b"></a>

### <code>interrupt&#45;names</code> — not listed as 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;vring&#34;</code></span>

<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;am654&#45;rtu&#34;</code></span>, <span id="dt-f9e371b0fbe59bd0c09b"><code>&#34;ti&#44;j721e&#45;rtu&#34;</code></span>, <span id="dt-4e11e1592193eccd854c"><code>&#34;ti&#44;am642&#45;rtu&#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-82b238e9fd5af4b4a62c"></a>
>
> #### <code>&#36;nodename</code> — not listed as required here
>
> **String pattern (<code>pattern</code>):** <span id="dt-ddad8464dc5253625ba7"><code>&#34;&#94;rtu&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;&#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;am654&#45;tx&#45;pru&#34;</code></span>, <span id="dt-cd83870c2f87236f0bf8"><code>&#34;ti&#44;j721e&#45;tx&#45;pru&#34;</code></span>, <span id="dt-50a3cdc867beccefbd53"><code>&#34;ti&#44;am642&#45;tx&#45;pru&#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-66cfa0ea0a296cd05450"></a>
> >
> > **<code>&#36;nodename</code> — not listed as required here**
> >
> > **String pattern (<code>pattern</code>):** <span id="dt-ec2b2857b8ae420bc10c"><code>&#34;&#94;txpru&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#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-795e00c1dedbd4db3e34"></a>
> >
> > **<code>&#36;nodename</code> — not listed as required here**
> >
> > **String pattern (<code>pattern</code>):** <span id="dt-ec4920683086a115fa28"><code>&#34;&#94;pru&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;&#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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><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">/* AM33xx PRU-ICSS */
pruss_tm: target-module@300000 {  /* 0x4a300000, ap 9 04.0 */
  compatible = "ti,sysc-pruss", "ti,sysc";
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  ranges = &lt;0x0 0x300000 0x80000&gt;;

  pruss: pruss@0 {
    compatible = "ti,am3356-pruss";
    reg = &lt;0x0 0x80000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;1&gt;;
    ranges;

    pruss_mem: memories@0 {
      reg = &lt;0x0 0x2000&gt;,
            &lt;0x2000 0x2000&gt;,
            &lt;0x10000 0x3000&gt;;
      reg-names = "dram0", "dram1", "shrdram2";
    };

    pru0: pru@34000 {
      compatible = "ti,am3356-pru";
      reg = &lt;0x34000 0x2000&gt;,
            &lt;0x22000 0x400&gt;,
            &lt;0x22400 0x100&gt;;
      reg-names = "iram", "control", "debug";
      firmware-name = "am335x-pru0-fw";
    };

    pru1: pru@38000 {
      compatible = "ti,am3356-pru";
      reg = &lt;0x38000 0x2000&gt;,
            &lt;0x24000 0x400&gt;,
            &lt;0x24400 0x100&gt;;
      reg-names = "iram", "control", "debug";
      firmware-name = "am335x-pru1-fw";
    };
  };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">/* AM65x SR2.0 ICSSG */
#include &lt;dt-bindings/soc/ti,sci_pm_domain.h&gt;

icssg0: icssg@b000000 {
  compatible = "ti,am654-icssg";
  reg = &lt;0xb000000 0x80000&gt;;
  power-domains = &lt;&amp;k3_pds 62 TI_SCI_PD_EXCLUSIVE&gt;;
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;1&gt;;
  ranges = &lt;0x0 0xb000000 0x80000&gt;;

  icssg0_mem: memories@0 {
    reg = &lt;0x0 0x2000&gt;,
          &lt;0x2000 0x2000&gt;,
          &lt;0x10000 0x10000&gt;;
    reg-names = "dram0", "dram1", "shrdram2";
  };

  pru0_0: pru@34000 {
    compatible = "ti,am654-pru";
    reg = &lt;0x34000 0x4000&gt;,
          &lt;0x22000 0x100&gt;,
          &lt;0x22400 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-pru0_0-fw";
    interrupt-parent = &lt;&amp;icssg0_intc&gt;;
    interrupts = &lt;16 2 2&gt;;
    interrupt-names = "vring";
  };

  rtu0_0: rtu@4000 {
    compatible = "ti,am654-rtu";
    reg = &lt;0x4000 0x2000&gt;,
          &lt;0x23000 0x100&gt;,
          &lt;0x23400 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-rtu0_0-fw";
    interrupt-parent = &lt;&amp;icssg0_intc&gt;;
    interrupts = &lt;20 4 4&gt;;
    interrupt-names = "vring";
  };

  tx_pru0_0: txpru@a000 {
    compatible = "ti,am654-tx-pru";
    reg = &lt;0xa000 0x1800&gt;,
          &lt;0x25000 0x100&gt;,
          &lt;0x25400 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-txpru0_0-fw";
  };

  pru0_1: pru@38000 {
    compatible = "ti,am654-pru";
    reg = &lt;0x38000 0x4000&gt;,
          &lt;0x24000 0x100&gt;,
          &lt;0x24400 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-pru0_1-fw";
    interrupt-parent = &lt;&amp;icssg0_intc&gt;;
    interrupts = &lt;18 3 3&gt;;
    interrupt-names = "vring";
  };

  rtu0_1: rtu@6000 {
    compatible = "ti,am654-rtu";
    reg = &lt;0x6000 0x2000&gt;,
          &lt;0x23800 0x100&gt;,
          &lt;0x23c00 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-rtu0_1-fw";
    interrupt-parent = &lt;&amp;icssg0_intc&gt;;
    interrupts = &lt;22 5 5&gt;;
    interrupt-names = "vring";
  };

  tx_pru0_1: txpru@c000 {
    compatible = "ti,am654-tx-pru";
    reg = &lt;0xc000 0x1800&gt;,
          &lt;0x25800 0x100&gt;,
          &lt;0x25c00 0x100&gt;;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-txpru0_1-fw";
  };
};
</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 37:</strong> <span> for AM335x SoC family (AM3356+ SoCs only)</span></p>

<p id="dt-comment-2"><strong>Line 38:</strong> <span> for AM437x SoC family (AM4376+ SoCs only)</span></p>

<p id="dt-comment-3"><strong>Line 39:</strong> <span> for AM57xx SoC family</span></p>

<p id="dt-comment-4"><strong>Line 40:</strong> <span> for PRUs in K3 AM62x SoC family</span></p>

<p id="dt-comment-5"><strong>Line 41:</strong> <span> for PRUs in K3 AM64x SoC family</span></p>

<p id="dt-comment-6"><strong>Line 42:</strong> <span> for RTUs in K3 AM64x SoC family</span></p>

<p id="dt-comment-7"><strong>Line 43:</strong> <span> for Tx_PRUs in K3 AM64x SoC family</span></p>

<p id="dt-comment-8"><strong>Line 44:</strong> <span> for PRUs in K3 AM65x SoC family</span></p>

<p id="dt-comment-9"><strong>Line 45:</strong> <span> for RTUs in K3 AM65x SoC family</span></p>

<p id="dt-comment-10"><strong>Line 46:</strong> <span> for Tx_PRUs in K3 AM65x SR2.0 SoCs</span></p>

<p id="dt-comment-11"><strong>Line 47:</strong> <span> for PRUs in K3 J721E SoC family</span></p>

<p id="dt-comment-12"><strong>Line 48:</strong> <span> for RTUs in K3 J721E SoC family</span></p>

<p id="dt-comment-13"><strong>Line 49:</strong> <span> for Tx_PRUs in K3 J721E SoC family</span></p>

<p id="dt-comment-14"><strong>Line 50:</strong> <span> for 66AK2G SoC family</span></p>

</details>
