TI Programmable Realtime Unit (PRU) cores

Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/ti,pru-rproc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Suman Anna <s-anna@ti.com>"

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.

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.

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

Please see the overall PRU-ICSS bindings document for additional details
including a complete example,
  Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,am3356-pru", "ti,am4376-pru", "ti,am5728-pru", "ti,am625-pru", "ti,am642-pru", "ti,am642-rtu", "ti,am642-tx-pru", "ti,am654-pru", "ti,am654-rtu", "ti,am654-tx-pru", "ti,j721e-pru", "ti,j721e-rtu", "ti,j721e-tx-pru", "ti,k2g-pru"

reg — required here #

Array item rules (items) #

Item 1

Address and Size of the PRU Instruction RAM

Item 2

Address and Size of the PRU CTRL sub-module registers

Item 3

Address and Size of the PRU Debug sub-module registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "iram"

Item 2

Exact value (const): "control"

Item 3

Exact value (const): "debug"

firmware-name — required here #

Should contain the name of the default firmware image file located on the firmware search path.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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.

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "vring"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ti,am654-rtu", "ti,j721e-rtu", "ti,am642-rtu"

When the condition matches (then) #

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^rtu@[0-9a-f]+$"

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here

Allowed values (enum): "ti,am654-tx-pru", "ti,j721e-tx-pru", "ti,am642-tx-pru"

When the condition matches (then) #

Properties and child nodes (properties) #

$nodename — not listed as required here

String pattern (pattern): "^txpru@[0-9a-f]+"

When the condition does not match (else) #

Properties and child nodes (properties) #

$nodename — not listed as required here

String pattern (pattern): "^pru@[0-9a-f]+$"

Required in this object (required): "compatible", "reg", "reg-names", "firmware-name"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

/* AM33xx PRU-ICSS */
pruss_tm: target-module@300000 {  /* 0x4a300000, ap 9 04.0 */
  compatible = "ti,sysc-pruss", "ti,sysc";
  #address-cells = <1>;
  #size-cells = <1>;
  ranges = <0x0 0x300000 0x80000>;

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

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

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

    pru1: pru@38000 {
      compatible = "ti,am3356-pru";
      reg = <0x38000 0x2000>,
            <0x24000 0x400>,
            <0x24400 0x100>;
      reg-names = "iram", "control", "debug";
      firmware-name = "am335x-pru1-fw";
    };
  };
};
/* AM65x SR2.0 ICSSG */
#include <dt-bindings/soc/ti,sci_pm_domain.h>

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

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

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

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

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

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

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

  tx_pru0_1: txpru@c000 {
    compatible = "ti,am654-tx-pru";
    reg = <0xc000 0x1800>,
          <0x25800 0x100>,
          <0x25c00 0x100>;
    reg-names = "iram", "control", "debug";
    firmware-name = "am65x-txpru0_1-fw";
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 37: for AM335x SoC family (AM3356+ SoCs only)

Line 38: for AM437x SoC family (AM4376+ SoCs only)

Line 39: for AM57xx SoC family

Line 40: for PRUs in K3 AM62x SoC family

Line 41: for PRUs in K3 AM64x SoC family

Line 42: for RTUs in K3 AM64x SoC family

Line 43: for Tx_PRUs in K3 AM64x SoC family

Line 44: for PRUs in K3 AM65x SoC family

Line 45: for RTUs in K3 AM65x SoC family

Line 46: for Tx_PRUs in K3 AM65x SR2.0 SoCs

Line 47: for PRUs in K3 J721E SoC family

Line 48: for RTUs in K3 J721E SoC family

Line 49: for Tx_PRUs in K3 J721E SoC family

Line 50: for 66AK2G SoC family

Edit this page