[PATCH 2/3] dt-bindings: remoteproc: add Versal-NET platform
From: Tanmay Shah
Date: Fri Mar 15 2024 - 17:16:52 EST
AMD-Xilinx Versal-NET platform is successor of Versal platform. It
contains multiple clusters of cortex-R52 real-time processing units.
Each cluster contains two cores of cortex-R52 processors. Each cluster
can be configured in lockstep mode or split mode.
Each R52 core is assigned 128KB of TCM memory. ATCM memory is 64KB, BTCM
and CTCM memoreis are 32KB each. Each TCM memory has its own dedicated
power-domain that needs to be requested before using it.
Signed-off-by: Tanmay Shah <tanmay.shah@xxxxxxx>
---
.../remoteproc/xlnx,zynqmp-r5fss.yaml | 220 +++++++++++++++---
1 file changed, 184 insertions(+), 36 deletions(-)
diff --git a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml
index 711da0272250..55654ee02eef 100644
--- a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml
+++ b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml
@@ -18,7 +18,9 @@ description: |
properties:
compatible:
- const: xlnx,zynqmp-r5fss
+ enum:
+ - xlnx,zynqmp-r5fss
+ - xlnx,versal-net-r52fss
"#address-cells":
const: 2
@@ -64,7 +66,9 @@ patternProperties:
properties:
compatible:
- const: xlnx,zynqmp-r5f
+ enum:
+ - xlnx,zynqmp-r5f
+ - xlnx,versal-net-r52f
reg:
minItems: 1
@@ -135,9 +139,11 @@ required:
allOf:
- if:
properties:
- xlnx,cluster-mode:
- enum:
- - 1
+ compatible:
+ contains:
+ enum:
+ - xlnx,versal-net-r52fss
+
then:
patternProperties:
"^r5f@[0-9a-f]+$":
@@ -149,16 +155,14 @@ allOf:
items:
- description: ATCM internal memory
- description: BTCM internal memory
- - description: extra ATCM memory in lockstep mode
- - description: extra BTCM memory in lockstep mode
+ - description: CTCM internal memory
reg-names:
minItems: 1
items:
- - const: atcm0
- - const: btcm0
- - const: atcm1
- - const: btcm1
+ - const: atcm
+ - const: btcm
+ - const: ctcm
power-domains:
minItems: 2
@@ -166,33 +170,70 @@ allOf:
- description: RPU core power domain
- description: ATCM power domain
- description: BTCM power domain
- - description: second ATCM power domain
- - description: second BTCM power domain
+ - description: CTCM power domain
else:
- patternProperties:
- "^r5f@[0-9a-f]+$":
- type: object
-
- properties:
- reg:
- minItems: 1
- items:
- - description: ATCM internal memory
- - description: BTCM internal memory
-
- reg-names:
- minItems: 1
- items:
- - const: atcm0
- - const: btcm0
-
- power-domains:
- minItems: 2
- items:
- - description: RPU core power domain
- - description: ATCM power domain
- - description: BTCM power domain
+ allOf:
+ - if:
+ properties:
+ xlnx,cluster-mode:
+ enum:
+ - 1
+ then:
+ patternProperties:
+ "^r5f@[0-9a-f]+$":
+ type: object
+
+ properties:
+ reg:
+ minItems: 1
+ items:
+ - description: ATCM internal memory
+ - description: BTCM internal memory
+ - description: extra ATCM memory in lockstep mode
+ - description: extra BTCM memory in lockstep mode
+
+ reg-names:
+ minItems: 1
+ items:
+ - const: atcm0
+ - const: btcm0
+ - const: atcm1
+ - const: btcm1
+
+ power-domains:
+ minItems: 2
+ items:
+ - description: RPU core power domain
+ - description: ATCM power domain
+ - description: BTCM power domain
+ - description: second ATCM power domain
+ - description: second BTCM power domain
+
+ else:
+ patternProperties:
+ "^r5f@[0-9a-f]+$":
+ type: object
+
+ properties:
+ reg:
+ minItems: 1
+ items:
+ - description: ATCM internal memory
+ - description: BTCM internal memory
+
+ reg-names:
+ minItems: 1
+ items:
+ - const: atcm0
+ - const: btcm0
+
+ power-domains:
+ minItems: 2
+ items:
+ - description: RPU core power domain
+ - description: ATCM power domain
+ - description: BTCM power domain
additionalProperties: false
@@ -386,4 +427,111 @@ examples:
};
};
};
+
+ - |
+ // Versal-NET split configuration
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ remoteproc@eba00000 {
+ compatible = "xlnx,versal-net-r52fss";
+ xlnx,cluster-mode = <0>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x0 0x0 0x0 0xeba00000 0x0 0x10000>,
+ <0x0 0x10000 0x0 0xeba10000 0x0 0x8000>,
+ <0x0 0x18000 0x0 0xeba20000 0x0 0x8000>,
+ <0x1 0x0 0x0 0xeba40000 0x0 0x10000>,
+ <0x1 0x10000 0x0 0xeba50000 0x0 0x8000>,
+ <0x1 0x18000 0x0 0xeba60000 0x0 0x8000>;
+ r5f@0 {
+ compatible = "xlnx,versal-net-r52f";
+ reg = <0x0 0x0 0x0 0x10000>,
+ <0x0 0x10000 0x0 0x8000>,
+ <0x0 0x18000 0x0 0x8000>;
+ reg-names = "atcm", "btcm", "ctcm";
+ power-domains = <&versal_net_firmware 0x181100BF>,
+ <&versal_net_firmware 0x183180CB>,
+ <&versal_net_firmware 0x183180CC>,
+ <&versal_net_firmware 0x183180CD>;
+ 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,versal-net-r52f";
+ reg = <0x1 0x0 0x0 0x10000>, <0x1 0x10000 0x0 0x8000>,
+ <0x1 0x18000 0x0 0x8000>;
+ reg-names = "atcm", "btcm", "ctcm";
+ power-domains = <&versal_net_firmware 0x181100C0>,
+ <&versal_net_firmware 0x183180CE>,
+ <&versal_net_firmware 0x183180CF>,
+ <&versal_net_firmware 0x183180D0>;
+ memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>,
+ <&rpu1vdev0vring0>, <&rpu1vdev0vring1>;
+ mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>;
+ mbox-names = "tx", "rx";
+ };
+ };
+ };
+
+ - |
+ // Versal-NET lockstep configuration
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ remoteproc@eba00000 {
+ compatible = "xlnx,versal-net-r52fss";
+ xlnx,cluster-mode = <1>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x0 0x0 0x0 0xeba00000 0x0 0x10000>,
+ <0x0 0x10000 0x0 0xeba10000 0x0 0x8000>,
+ <0x0 0x18000 0x0 0xeba20000 0x0 0x8000>,
+ <0x1 0x0 0x0 0xeba40000 0x0 0x10000>,
+ <0x1 0x10000 0x0 0xeba50000 0x0 0x8000>,
+ <0x1 0x18000 0x0 0xeba60000 0x0 0x8000>;
+
+ r5f@0 {
+ compatible = "xlnx,versal-net-r52f";
+ reg = <0x0 0x0 0x0 0x10000>,
+ <0x0 0x10000 0x0 0x8000>,
+ <0x0 0x18000 0x0 0x8000>;
+
+ reg-names = "atcm", "btcm", "ctcm";
+
+ power-domains = <&versal_net_firmware 0x181100BF>,
+ <&versal_net_firmware 0x183180CB>,
+ <&versal_net_firmware 0x183180CC>,
+ <&versal_net_firmware 0x183180CD>;
+
+ 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,versal-net-r52f";
+ reg = <0x1 0x0 0x0 0x10000>,
+ <0x1 0x10000 0x0 0x8000>,
+ <0x1 0x18000 0x0 0x8000>;
+ reg-names = "atcm", "btcm", "ctcm";
+ power-domains = <&versal_net_firmware 0x181100C0>,
+ <&versal_net_firmware 0x183180CE>,
+ <&versal_net_firmware 0x183180CF>,
+ <&versal_net_firmware 0x183180D0>;
+ memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>,
+ <&rpu1vdev0vring0>, <&rpu1vdev0vring1>;
+ mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>;
+ mbox-names = "tx", "rx";
+ };
+ };
+ };
...
--
2.25.1