TI Programmable Real-Time Unit and Industrial Communication Subsystem
Schema identifier ($id): "http://devicetree.org/schemas/soc/ti/ti,pruss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Suman Anna <s-anna@ti.com>"
The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS a.k.a. PRUSS) is present on various TI SoCs such as AM335x, AM437x, Keystone 66AK2G, OMAP-L138/DA850 etc. A PRUSS consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs), shared RAM, data and instruction RAMs, some internal peripheral modules to facilitate industrial communication, and an interrupt controller.
The programmable nature of the PRUs provide flexibility to implement custom
peripheral interfaces, fast real-time responses, or specialized data handling.
The common peripheral modules include the following,
- an Ethernet MII_RT module with two MII ports
- an MDIO port to control external Ethernet PHYs
- an Industrial Ethernet Peripheral (IEP) to manage/generate Industrial
Ethernet functions
- an Enhanced Capture Module (eCAP)
- an Industrial Ethernet Timer with 7/9 capture and 16 compare events
- a 16550-compatible UART to support PROFIBUS
- Enhanced GPIO with async capture and serial support
A PRU-ICSS subsystem can have up to three shared data memories. A PRU core acts on a primary Data RAM (there are usually 2 Data RAMs) at its address 0x0, but also has access to a secondary Data RAM (primary to the other PRU core) at its address 0x2000. A shared Data RAM, if present, can be accessed by both the PRU cores. The Interrupt Controller (INTC) and a CFG module are common to both the PRU cores. Each PRU core also has a private instruction RAM, and specific register spaces for Control and Debug functionalities.
Various sub-modules within a PRU-ICSS subsystem are represented as individual nodes and are defined using a parent-child hierarchy depending on their integration within the IP and the SoC. These nodes are described in the following sections.
PRU-ICSS Node ============== Each PRU-ICSS instance is represented as its own node with the individual PRU processor cores, the memories node, an INTC node and an MDIO node represented as child nodes within this PRUSS node. This node shall be a child of the corresponding interconnect bus nodes or target-module nodes.
See ../../mfd/syscon.yaml for generic SysCon binding details.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^(pruss|icssg)@[0-9a-f]+$"
compatible — required here #
Allowed values (enum): "ti,am3356-pruss", "ti,am4376-pruss0", "ti,am4376-pruss1", "ti,am5728-pruss", "ti,am625-pruss", "ti,am642-icssg", "ti,am654-icssg", "ti,j721e-icssg", "ti,k2g-pruss"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
ranges — required here #
Maximum number of items (maxItems): 1
dma-ranges — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
This property is as per sci-pm-domain.txt.
clocks — not listed as required here #
Array item rules (items) #
Item 1
ICSSG_CORE Clock
Item 2
ICSSG_IEP Clock
Item 3
ICSSG_RGMII_MHZ_250 Clock
Item 4
ICSSG_RGMII_MHZ_50 Clock
Item 5
ICSSG_RGMII_MHZ_5 Clock
Item 6
ICSSG_UART Clock
Item 7
ICSSG_ICLK Clock
Properties matching a name pattern (patternProperties) #
memories@[a-f0-9]+$ — name matches this regular expression #
The various Data RAMs within a single PRU-ICSS unit are represented as a single node with the name 'memories'.
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Minimum number of items (minItems): 2
Array item rules (items)
Item 1
Address and size of the Data RAM0.
Item 2
Address and size of the Data RAM1.
Item 3
Address and size of the Shared Data RAM. Note that on AM437x one of two PRUSS units don't contain Shared RAM, while the second one has it.
reg-names — required here
Minimum number of items (minItems): 2
Array item rules (items)
Item 1
Exact value (
const):"dram0"
Item 2
Exact value (
const):"dram1"
Item 3
Exact value (
const):"shrdram2"
Required in this object (required): "reg", "reg-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
cfg@[a-f0-9]+$ — name matches this regular expression #
PRU-ICSS configuration space. CFG sub-module represented as a SysCon.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"ti,pruss-cfg"
Item 2
Exact value (
const):"syscon"
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 1
reg — not listed as required here
Maximum number of items (maxItems): 1
ranges — not listed as required here
Maximum number of items (maxItems): 1
clocks — not listed as required here
Value type (type): "object"
Properties and child nodes (properties)
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties)
coreclk-mux@[a-f0-9]+$ — name matches this regular expression
This is applicable only for ICSSG (K3 SoCs). The ICSSG modules core clock can be set to one of the 2 sources: ICSSG_CORE_CLK or ICSSG_ICLK. This node models this clock mux and should have the name "coreclk-mux".
Value type (type): "object"
Properties and child nodes (properties)
#clock-cells — not listed as required here
Exact value (const): 0
clocks — required here
Array item rules (items)
Item 1
ICSSG_CORE Clock
Item 2
ICSSG_ICLK Clock
assigned-clocks — not listed as required here
Maximum number of items (maxItems): 1
assigned-clock-parents — not listed as required here
Maximum number of items (maxItems): 1
Standard assigned-clocks-parents definition used for selecting mux parent (one of the mux input).
reg — not listed as required here
Maximum number of items (maxItems): 1
Required in this object (required): "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
iepclk-mux@[a-f0-9]+$ — name matches this regular expression
The IEP module can get its clock from 2 sources: ICSSG_IEP_CLK or CORE_CLK (OCP_CLK in older SoCs). This node models this clock mux and should have the name "iepclk-mux".
Value type (type): "object"
Properties and child nodes (properties)
#clock-cells — not listed as required here
Exact value (const): 0
clocks — required here
Array item rules (items)
Item 1
ICSSG_IEP Clock
Item 2
Core Clock (OCP Clock in older SoCs)
assigned-clocks — not listed as required here
Maximum number of items (maxItems): 1
assigned-clock-parents — not listed as required here
Maximum number of items (maxItems): 1
Standard assigned-clocks-parents definition used for selecting mux parent (one of the mux input).
reg — not listed as required here
Maximum number of items (maxItems): 1
Required in this object (required): "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
iep@[a-f0-9]+$ — name matches this regular expression #
Industrial Ethernet Peripheral to manage/generate Industrial Ethernet functions such as time stamping. Each PRUSS has either 1 IEP (on AM335x, AM437x, AM57xx & 66AK2G SoCs) or 2 IEPs (on K3 AM65x, J721E & AM64x SoCs). IEP is used for creating PTP clocks and generating PPS signals.
Value type (type): "object"
ecap@[a-f0-9]+$ — name matches this regular expression #
PRU-ICSS has a Enhanced Capture (eCAP) event module which can generate and capture periodic timer based events which will be used for features like RX Pacing to rise interrupt when the timer event has occurred. Each PRU-ICSS instance has one eCAP module irrespective of SOCs.
Shared schema rule ($ref): /schemas/net/ti,pruss-ecap.yaml#
Value type (type): "object"
mii-rt@[a-f0-9]+$ — name matches this regular expression #
Real-Time Ethernet to support multiple industrial communication protocols. MII-RT sub-module represented as a SysCon.
Value type (type): "object"
Properties and child nodes (properties) #
compatible — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"ti,pruss-mii"
Item 2
Exact value (
const):"syscon"
reg — not listed as required here
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
mii-g-rt@[a-f0-9]+$ — name matches this regular expression #
The Real-time Media Independent Interface to support multiple industrial communication protocols (G stands for Gigabit). MII-G-RT sub-module represented as a SysCon.
Value type (type): "object"
Properties and child nodes (properties) #
compatible — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"ti,pruss-mii-g"
Item 2
Exact value (
const):"syscon"
reg — not listed as required here
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
^pa-stats@[a-f0-9]+$ — name matches this regular expression #
PA-STATS sub-module represented as a SysCon. PA_STATS is a set of registers where different statistics related to ICSSG, are dumped by ICSSG firmware. This syscon sub-module will help the device to access/read/write those statistics.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"ti,pruss-pa-st"
Item 2
Exact value (
const):"syscon"
reg — not listed as required here
Maximum number of items (maxItems): 1
interrupt-controller@[a-f0-9]+$ — name matches this regular expression #
PRUSS INTC Node. Each PRUSS has a single interrupt controller instance that is common to all the PRU cores. This should be represented as an interrupt-controller node.
Shared schema rule ($ref): /schemas/interrupt-controller/ti,pruss-intc.yaml#
Value type (type): "object"
mdio@[a-f0-9]+$ — name matches this regular expression #
MDIO Node. Each PRUSS has an MDIO module that can be used to control external PHYs. The MDIO module used within the PRU-ICSS is an instance of the MDIO Controller used in TI Davinci SoCs.
Shared schema rule ($ref): /schemas/net/ti,davinci-mdio.yaml#
Value type (type): "object"
^(pru|rtu|txpru)@[0-9a-f]+$ — name matches this regular expression #
PRU Node. Each PRUSS has dual PRU cores, each represented as a RemoteProc device through a PRU child node each. Each node can optionally be rendered inactive by using the standard DT string property, "status". The ICSSG IP present on K3 SoCs have additional auxiliary PRU cores with slightly different IP integration.
Shared schema rule ($ref): /schemas/remoteproc/ti,pru-rproc.yaml#
Value type (type): "object"
Required in this object (required): "compatible", "reg", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,k2g-pruss","ti,am654-icssg","ti,j721e-icssg","ti,am642-icssg"When the condition matches (
then) #
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #
Examples (examples) #
/* Example 1 AM33xx PRU-ICSS */
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";
};
pruss_cfg: cfg@26000 {
compatible = "ti,pruss-cfg", "syscon";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x26000 0x2000>;
ranges = <0x00 0x26000 0x2000>;
clocks {
#address-cells = <1>;
#size-cells = <0>;
pruss_iepclk_mux: iepclk-mux@30 {
reg = <0x30>;
#clock-cells = <0>;
clocks = <&l3_gclk>, /* icss_iep */
<&pruss_ocp_gclk>; /* icss_ocp */
};
};
};
pruss_mii_rt: mii-rt@32000 {
compatible = "ti,pruss-mii", "syscon";
reg = <0x32000 0x58>;
};
pruss_intc: interrupt-controller@20000 {
compatible = "ti,pruss-intc";
reg = <0x20000 0x2000>;
interrupt-controller;
#interrupt-cells = <3>;
interrupts = <20 21 22 23 24 25 26 27>;
interrupt-names = "host_intr0", "host_intr1",
"host_intr2", "host_intr3",
"host_intr4", "host_intr5",
"host_intr6", "host_intr7";
};
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";
};
pruss_mdio: mdio@32400 {
compatible = "ti,davinci_mdio";
reg = <0x32400 0x90>;
clocks = <&dpll_core_m4_ck>;
clock-names = "fck";
bus_freq = <1000000>;
#address-cells = <1>;
#size-cells = <0>;
};
};
/* Example 2 AM43xx PRU-ICSS with PRUSS1 node */
#include <dt-bindings/interrupt-controller/arm-gic.h>
pruss1: pruss@0 {
compatible = "ti,am4376-pruss1";
reg = <0x0 0x40000>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
pruss1_mem: memories@0 {
reg = <0x0 0x2000>,
<0x2000 0x2000>,
<0x10000 0x8000>;
reg-names = "dram0", "dram1", "shrdram2";
};
pruss1_cfg: cfg@26000 {
compatible = "ti,pruss-cfg", "syscon";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x26000 0x2000>;
ranges = <0x00 0x26000 0x2000>;
clocks {
#address-cells = <1>;
#size-cells = <0>;
pruss1_iepclk_mux: iepclk-mux@30 {
reg = <0x30>;
#clock-cells = <0>;
clocks = <&sysclk_div>, /* icss_iep */
<&pruss_ocp_gclk>; /* icss_ocp */
};
};
};
pruss1_mii_rt: mii-rt@32000 {
compatible = "ti,pruss-mii", "syscon";
reg = <0x32000 0x58>;
};
pruss1_intc: interrupt-controller@20000 {
compatible = "ti,pruss-intc";
reg = <0x20000 0x2000>;
interrupt-controller;
#interrupt-cells = <3>;
interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host_intr0", "host_intr1",
"host_intr2", "host_intr3",
"host_intr4",
"host_intr6", "host_intr7";
ti,irqs-reserved = /bits/ 8 <0x20>; /* BIT(5) */
};
pru1_0: pru@34000 {
compatible = "ti,am4376-pru";
reg = <0x34000 0x3000>,
<0x22000 0x400>,
<0x22400 0x100>;
reg-names = "iram", "control", "debug";
firmware-name = "am437x-pru1_0-fw";
};
pru1_1: pru@38000 {
compatible = "ti,am4376-pru";
reg = <0x38000 0x3000>,
<0x24000 0x400>,
<0x24400 0x100>;
reg-names = "iram", "control", "debug";
firmware-name = "am437x-pru1_1-fw";
};
pruss1_mdio: mdio@32400 {
compatible = "ti,davinci_mdio";
reg = <0x32400 0x90>;
clocks = <&dpll_core_m4_ck>;
clock-names = "fck";
bus_freq = <1000000>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 61: for AM335x SoC family
Line 62: for AM437x SoC family and PRUSS unit 0
Line 63: for AM437x SoC family and PRUSS unit 1
Line 64: for AM57xx SoC family
Line 65: for K3 AM62x SoC family
Line 66: for K3 AM64x SoC family
Line 67: for K3 AM65x SoC family
Line 68: for K3 J721E SoC family
Line 69: for 66AK2G SoC family
Line 113: On AM437x one of two PRUSS units don't contain Shared RAM.
Line 350: Due to inability of correctly verifying sub-nodes with an @address through
Line 351: the "required" list, the required sub-nodes below are commented out for now.
Line 353: required:
Line 354: - memories
Line 355: - interrupt-controller
Line 356: - pru