TI K3 R5F processor subsystems
Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/ti,k3-r5f-rproc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Suman Anna <s-anna@ti.com>"
The TI K3 family of SoCs usually have one or more dual-core Arm Cortex R5F processor subsystems/clusters (R5FSS). The dual core cluster can be used either in a LockStep mode providing safety/fault tolerance features or in a Split mode providing two individual compute cores for doubling the compute capacity on most SoCs. These are used together with other processors present on the SoC to achieve various system level goals.
AM64x SoCs do not support LockStep mode, but rather a new non-safety mode called "Single-CPU" mode, where only Core0 is used, but with ability to use Core1's TCMs as well.
AM62 SoC family support a single R5F core only which runs Device Manager firmware and can also be used as a remote processor with IPC communication.
Each Dual-Core R5F sub-system is represented as a single DTS node representing the cluster, with a pair of child DT nodes representing the individual R5F cores. Each node has a number of required or optional properties that enable the OS running on the host processor to perform the device management of the remote processor and to communicate with the remote processor.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^r5fss(@.*)?"
compatible — required here #
Allowed values (enum): "ti,am62-r5fss", "ti,am64-r5fss", "ti,am654-r5fss", "ti,j7200-r5fss", "ti,j721e-r5fss", "ti,j721s2-r5fss"
power-domains — required here #
Should contain a phandle to a PM domain provider node and an args specifier containing the R5FSS device id value.
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
Standard ranges definition providing address translations for local R5F TCM address spaces to bus addresses.
ti,cluster-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Configuration Mode for the Dual R5F cores within the R5F cluster. For most SoCs (AM65x, J721E, J7200, J721s2), It should be either a value of 1 (LockStep mode) or 0 (Split mode) on most SoCs (AM65x, J721E, J7200, J721s2), default is LockStep mode if omitted. For AM64x SoCs, It should be either a value of 0 (Split mode) or 2 (Single-CPU mode) and default is Split mode if omitted. For AM62x SoCs, It should be set as 3 (Single-Core mode) which is also the default if omitted.
Properties matching a name pattern (patternProperties) #
^r5f@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
The R5F Sub-System device node should define two R5F child nodes, each node representing a TI instantiation of the Arm Cortex R5F core. There are some specific integration differences for the IP like the usage of a Region Address Translator (RAT) for translating the larger SoC bus addresses into a 32-bit address space for the processor. For AM62x, the R5F Sub-System device node should only define one R5F child node as it has only one core available.
Each R5F core has an associated 64 KB of Tightly-Coupled Memory (TCM) internal memories split between two banks - TCMA and TCMB (further interleaved into two banks TCMB0 and TCMB1). These memories (also called ATCM and BTCM) provide read/write performance on par with the core's L1 caches. Each of the TCMs can be enabled or disabled independently and either of them can be configured to appear at that R5F's address 0x0.
The cores do not use an MMU, but has a Region Address Translator (RAT) module that is accessible only from the R5Fs for providing translations between 32-bit CPU addresses into larger system bus addresses. Cache and memory access settings are provided through a Memory Protection Unit (MPU), programmable only from the R5Fs.
Shared schema rule ($ref): /schemas/arm/keystone/ti,k3-sci-common.yaml#
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "ti,am62-r5f", "ti,am64-r5f", "ti,am654-r5f", "ti,j7200-r5f", "ti,j721e-r5f", "ti,j721s2-r5f"
reg — required here
Array item rules (items)
Item 1
Address and Size of the ATCM internal memory region
Item 2
Address and Size of the BTCM internal memory region
reg-names — required here
Array item rules (items)
Item 1
Exact value (
const):"atcm"
Item 2
Exact value (
const):"btcm"
resets — required here
Should contain the phandle to the reset controller node managing the local resets for this device, and a reset specifier.
Maximum number of items (maxItems): 1
firmware-name — required here
Should contain the name of the default firmware image file located on the firmware search path
mboxes — not listed as required here
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.
Maximum number of items (maxItems): 1
memory-region — not listed as required here
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 with a "no-map" property as per the bindings in Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 8
Array item rules (items)
Item 1
region used for dynamic DMA allocations like vrings and vring buffers
Item 2
region reserved for firmware image sections
Array items beyond the listed positions (additionalItems)
true
Allowed by this rule.
ti,atcm-enable — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
R5F core configuration mode dictating if ATCM should be enabled. The R5F address of ATCM is dictated by ti,loczrama property. Should be either a value of 1 (enabled) or 0 (disabled), default is disabled if omitted. Recommended to enable it for maximizing TCMs.
ti,btcm-enable — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
R5F core configuration mode dictating if BTCM should be enabled. The R5F address of BTCM is dictated by ti,loczrama property. Should be either a value of 1 (enabled) or 0 (disabled), default is enabled if omitted.
ti,loczrama — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
R5F core configuration mode dictating which TCM should appear at address 0 (from core's view). Should be either a value of 1 (ATCM at 0x0) or 0 (BTCM at 0x0), default value is 1 if omitted.
sram — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items)
Maximum number of items (
maxItems):1
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
Required in this object (required): "compatible", "reg", "reg-names", "ti,sci", "ti,sci-dev-id", "ti,sci-proc-ids", "resets", "firmware-name"
Properties not evaluated by applicable rules (unevaluatedProperties) #
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 hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ti,cluster-mode— not listed as required here
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"ti,am654-r5fss","ti,j7200-r5fss","ti,j721e-r5fss","ti,j721s2-r5fss"When the condition matches (
then) #Properties and child nodes (
properties)
ti,cluster-mode— not listed as required here
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ti,cluster-mode— not listed as required here
Required in this object (required): "compatible", "power-domains", "#address-cells", "#size-cells", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
mailbox0: mailbox-0 {
#mbox-cells = <1>;
};
mailbox1: mailbox-1 {
#mbox-cells = <1>;
};
bus@100000 {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
<0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>,
<0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>,
<0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>;
bus@28380000 {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS */
<0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
<0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
<0x00 0x41c00000 0x00 0x41c00000 0x00 0x00080000>; /* MCU SRAM */
/* AM65x MCU R5FSS node */
mcu_r5fss0: r5fss@41000000 {
compatible = "ti,am654-r5fss";
power-domains = <&k3_pds 129>;
ti,cluster-mode = <1>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x41000000 0x00 0x41000000 0x20000>,
<0x41400000 0x00 0x41400000 0x20000>;
mcu_r5f0: r5f@41000000 {
compatible = "ti,am654-r5f";
reg = <0x41000000 0x00008000>,
<0x41010000 0x00008000>;
reg-names = "atcm", "btcm";
ti,sci = <&dmsc>;
ti,sci-dev-id = <159>;
ti,sci-proc-ids = <0x01 0xFF>;
resets = <&k3_reset 159 1>;
firmware-name = "am65x-mcu-r5f0_0-fw";
ti,atcm-enable = <1>;
ti,btcm-enable = <1>;
ti,loczrama = <1>;
mboxes = <&mailbox0 &mbox_mcu_r5fss0_core0>;
memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
<&mcu_r5fss0_core0_memory_region>;
sram = <&mcu_r5fss0_core0_sram>;
};
mcu_r5f1: r5f@41400000 {
compatible = "ti,am654-r5f";
reg = <0x41400000 0x00008000>,
<0x41410000 0x00008000>;
reg-names = "atcm", "btcm";
ti,sci = <&dmsc>;
ti,sci-dev-id = <245>;
ti,sci-proc-ids = <0x02 0xFF>;
resets = <&k3_reset 245 1>;
firmware-name = "am65x-mcu-r5f0_1-fw";
ti,atcm-enable = <1>;
ti,btcm-enable = <1>;
ti,loczrama = <1>;
mboxes = <&mailbox1 &mbox_mcu_r5fss0_core1>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 64: Optional properties:
Line 65: --------------------
Line 82: R5F Processor Child Nodes:
Line 83: ==========================
Line 143: The following properties are mandatory for R5F Core0 in both LockStep and Split
Line 144: modes, and are mandatory for R5F Core1 _only_ in Split mode. They are unused for
Line 145: R5F Core1 in LockStep mode:
Line 169: Optional properties:
Line 170: --------------------
Line 171: The following properties are optional properties for each of the R5F cores: