Xilinx R5F processor subsystem
Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/xlnx,zynqmp-r5fss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ben Levinsky <ben.levinsky@amd.com>", "Tanmay Shah <tanmay.shah@amd.com>"
The Xilinx platforms include a pair of Cortex-R5F processors (RPU) for real-time processing based on the Cortex-R5F processor core from ARM. The Cortex-R5F processor implements the Arm v7-R architecture and includes a floating-point unit that implements the Arm VFPv3 instruction set.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,zynqmp-r5fss", "xlnx,versal-r5fss", "xlnx,versal-net-r52fss"
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 2
ranges — required here #
Standard ranges definition providing address translations for local R5F TCM address spaces to bus addresses.
xlnx,cluster-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 1
The RPU MPCore can operate in split mode (Dual-processor performance), Safety lock-step mode(Both RPU cores execute the same code in lock-step, clock-for-clock) or Single CPU mode (RPU core 0 is held in reset while core 1 runs normally). The processor does not support dynamic configuration. Switching between modes is only permitted immediately after a processor reset. If set to 1 then lockstep mode and if 0 then split mode. If set to 2 then single CPU mode. When not defined, default will be lockstep mode. In summary, 0: split mode 1: lockstep mode (default) 2: single cpu mode
xlnx,tcm-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Configure RPU TCM 0: split mode 1: lockstep mode
Properties matching a name pattern (patternProperties) #
^r(.*)@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
The RPU is located in the Low Power Domain of the Processor Subsystem. Each processor includes separate L1 instruction and data caches and tightly coupled memories (TCM). System memory is cacheable, but the TCM memory space is non-cacheable.
Each RPU contains one 64KB memory and two 32KB memories that are accessed via the TCM A and B port interfaces, for a total of 128KB per processor. In lock-step mode, the processor has access to 256KB of TCM memory.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "xlnx,zynqmp-r5f", "xlnx,versal-r5f", "xlnx,versal-net-r52f"
reg — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
reg-names — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
power-domains — required here
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
mboxes — not listed as required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
mailbox channel to send data to RPU
Item 2
mailbox channel to receive data from RPU
mbox-names — not listed as required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
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): 8
Array item rules (items)
Maximum number of items (
maxItems):1
phandles to one or more reserved on-chip SRAM regions. Other than TCM, the RPU can execute instructions and access data from the OCM memory, the main DDR memory, and other system memories.
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
memory-region — not listed as required here
List of phandles to the reserved memory regions associated with the remoteproc device. This is variable and describes the memories shared with the remote processor (e.g. remoteproc firmware and carveouts, rpmsg vrings, ...). This reserved memory region will be allocated in DDR memory.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items)
Item 1
region used for RPU firmware image section
Item 2
vdev buffer
Item 3
vring0
Item 4
vring1
Array items beyond the listed positions (additionalItems)
true
Allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "power-domains"
Required in this object (required): "compatible", "#address-cells", "#size-cells", "ranges"
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)When the condition matches (
then) #Properties and child nodes (
properties)
xlnx,tcm-mode— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^r52f@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
ATCM internal memory
Item 2
BTCM internal memory
Item 3
CTCM internal memory
reg-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"atcm0"Item 2
Exact value (
const):"btcm0"Item 3
Exact value (
const):"ctcm0"
power-domains— not listed as required hereMinimum number of items (
minItems):2Array item rules (
items)Item 1
RPU core power domain
Item 2
ATCM power domain
Item 3
BTCM power domain
Item 4
CTCM power domain
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"xlnx,zynqmp-r5fss","xlnx,versal-r5fss"When the condition matches (
then) #Condition (
if)Properties and child nodes (
properties)
xlnx,cluster-mode— not listed as required hereWhen the condition matches (
then)Properties and child nodes (
properties)
xlnx,tcm-mode— required hereProperties matching a name pattern (
patternProperties)
^r5f@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
ATCM internal memory
Item 2
BTCM internal memory
Item 3
extra ATCM memory in lockstep mode
Item 4
extra BTCM memory in lockstep mode
reg-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"atcm0"Item 2
Exact value (
const):"btcm0"Item 3
Exact value (
const):"atcm1"Item 4
Exact value (
const):"btcm1"
power-domains— not listed as required hereMinimum number of items (
minItems):2Array item rules (
items)Item 1
RPU core power domain
Item 2
ATCM power domain
Item 3
BTCM power domain
Item 4
second ATCM power domain
Item 5
second BTCM power domain
When the condition does not match (
else)Properties and child nodes (
properties)
xlnx,tcm-mode— required hereProperties matching a name pattern (
patternProperties)
^r5f@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
ATCM internal memory
Item 2
BTCM internal memory
reg-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"atcm0"Item 2
Exact value (
const):"btcm0"
power-domains— not listed as required hereMinimum number of items (
minItems):2Array item rules (
items)Item 1
RPU core power domain
Item 2
ATCM power domain
Item 3
BTCM power domain
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/power/xlnx-zynqmp-power.h>
// Split mode configuration
soc {
#address-cells = <2>;
#size-cells = <2>;
remoteproc@ffe00000 {
compatible = "xlnx,zynqmp-r5fss";
xlnx,cluster-mode = <0>;
xlnx,tcm-mode = <0>;
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x10000>,
<0x0 0x20000 0x0 0xffe20000 0x0 0x10000>,
<0x1 0x0 0x0 0xffe90000 0x0 0x10000>,
<0x1 0x20000 0x0 0xffeb0000 0x0 0x10000>;
r5f@0 {
compatible = "xlnx,zynqmp-r5f";
reg = <0x0 0x0 0x0 0x10000>, <0x0 0x20000 0x0 0x10000>;
reg-names = "atcm0", "btcm0";
power-domains = <&zynqmp_firmware PD_RPU_0>,
<&zynqmp_firmware PD_R5_0_ATCM>,
<&zynqmp_firmware PD_R5_0_BTCM>;
memory-region = <&rproc_0_fw_image>, <&rpu0vdev0buffer>,
<&rpu0vdev0vring0>, <&rpu0vdev0vring1>;
mboxes = <&ipi_mailbox_rpu0 0>, <&ipi_mailbox_rpu0 1>;
mbox-names = "tx", "rx";
};
r5f@1 {
compatible = "xlnx,zynqmp-r5f";
reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>;
reg-names = "atcm0", "btcm0";
power-domains = <&zynqmp_firmware PD_RPU_1>,
<&zynqmp_firmware PD_R5_1_ATCM>,
<&zynqmp_firmware PD_R5_1_BTCM>;
memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>,
<&rpu1vdev0vring0>, <&rpu1vdev0vring1>;
mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>;
mbox-names = "tx", "rx";
};
};
};
//Lockstep configuration
soc {
#address-cells = <2>;
#size-cells = <2>;
remoteproc@ffe00000 {
compatible = "xlnx,zynqmp-r5fss";
xlnx,cluster-mode = <1>;
xlnx,tcm-mode = <1>;
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x10000>,
<0x0 0x20000 0x0 0xffe20000 0x0 0x10000>,
<0x0 0x10000 0x0 0xffe10000 0x0 0x10000>,
<0x0 0x30000 0x0 0xffe30000 0x0 0x10000>;
r5f@0 {
compatible = "xlnx,zynqmp-r5f";
reg = <0x0 0x0 0x0 0x10000>,
<0x0 0x20000 0x0 0x10000>,
<0x0 0x10000 0x0 0x10000>,
<0x0 0x30000 0x0 0x10000>;
reg-names = "atcm0", "btcm0", "atcm1", "btcm1";
power-domains = <&zynqmp_firmware PD_RPU_0>,
<&zynqmp_firmware PD_R5_0_ATCM>,
<&zynqmp_firmware PD_R5_0_BTCM>,
<&zynqmp_firmware PD_R5_1_ATCM>,
<&zynqmp_firmware PD_R5_1_BTCM>;
memory-region = <&rproc_0_fw_image>, <&rpu0vdev0buffer>,
<&rpu0vdev0vring0>, <&rpu0vdev0vring1>;
mboxes = <&ipi_mailbox_rpu0 0>, <&ipi_mailbox_rpu0 1>;
mbox-names = "tx", "rx";
};
r5f@1 {
compatible = "xlnx,zynqmp-r5f";
reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>;
reg-names = "atcm0", "btcm0";
power-domains = <&zynqmp_firmware PD_RPU_1>,
<&zynqmp_firmware PD_R5_1_ATCM>,
<&zynqmp_firmware PD_R5_1_BTCM>;
memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>,
<&rpu1vdev0vring0>, <&rpu1vdev0vring1>;
mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>;
mbox-names = "tx", "rx";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)