arm: dts: k3-j721e-main: Add MAIN domain R5F cluster nodes
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 4 Sep 2019 10:31:38 +0000 (16:01 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 14:07:35 +0000 (10:07 -0400)
The J721E SoCs have 3 dual-core Arm Cortex-R5F processor (R5FSS)
subsystems/clusters. One R5F cluster (MCU_R5FSS0) is present within
the MCU domain, and the remaining two clusters are present in the
MAIN domain (MAIN_R5FSS0 & MAIN_R5FSS1). Each of these can be
configured at boot time to be either run in a LockStep mode or in
an Asymmetric Multi Processing (AMP) fashion in Split-mode. These
subsystems have 64 KB each Tightly-Coupled Memory (TCM) internal
memories for each core split between two banks - ATCM and BTCM
(further interleaved into two banks). There are some IP integration
differences from standard Arm R5 clusters such as the absence of
an ACP port, presence of an additional TI-specific Region Address
Translater (RAT) module for translating 32-bit CPU addresses into
larger system bus addresses etc.

Add the DT nodes for these two MAIN domain R5F cluster/subsystems,
the two R5 cores are each added as child nodes to the corresponding
main cluster node. Configure SS0 in split mode an SS1 in lockstep mode,
with the ATCMs enabled to allow the R5 cores to execute code from DDR
with boot-strapping code from ATCM.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/k3-j721e-common-proc-board.dts
arch/arm/dts/k3-j721e-main.dtsi

index 070d21cd05e5a3bccbb1075e959bd783ffe789f9..21afdc8ce0ae22074ffb0ec7dc52292117d71a40 100644 (file)
        aliases {
                remoteproc0 = &mcu_r5fss0_core0;
                remoteproc1 = &mcu_r5fss0_core1;
+               remoteproc2 = &main_r5fss0_core0;
+               remoteproc3 = &main_r5fss0_core1;
+               remoteproc4 = &main_r5fss1_core0;
+               remoteproc5 = &main_r5fss1_core1;
        };
 };
 
index 3445784293cf8401bf7f04feccd81e9deb11e079..59ca4e568627be4a4519a51385c606a4d055a21e 100644 (file)
                ti,trm-icp = <0x8>;
                dma-coherent;
        };
+
+       main_r5fss0: r5fss@5c00000 {
+               compatible = "ti,j721e-r5fss";
+               lockstep-mode = <0>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x5c00000 0x00 0x5c00000 0x20000>,
+                        <0x5d00000 0x00 0x5d00000 0x20000>;
+               power-domains = <&k3_pds 243 TI_SCI_PD_EXCLUSIVE>;
+
+               main_r5fss0_core0: r5f@5c00000 {
+                       compatible = "ti,j721e-r5f";
+                       reg = <0x5c00000 0x00008000>,
+                             <0x5c10000 0x00008000>;
+                       reg-names = "atcm", "btcm";
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <245>;
+                       ti,sci-proc-ids = <0x06 0xFF>;
+                       resets = <&k3_reset 245 1>;
+                       atcm-enable = <1>;
+                       btcm-enable = <1>;
+                       loczrama = <1>;
+               };
+
+               main_r5fss0_core1: r5f@5d00000 {
+                       compatible = "ti,j721e-r5f";
+                       reg = <0x5d00000 0x00008000>,
+                             <0x5d10000 0x00008000>;
+                       reg-names = "atcm", "btcm";
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <246>;
+                       ti,sci-proc-ids = <0x07 0xFF>;
+                       resets = <&k3_reset 246 1>;
+                       atcm-enable = <1>;
+                       btcm-enable = <1>;
+                       loczrama = <1>;
+               };
+       };
+
+       main_r5fss1: r5fss@5e00000 {
+               compatible = "ti,j721e-r5fss";
+               lockstep-mode = <1>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges = <0x5e00000 0x00 0x5e00000 0x20000>,
+                        <0x5f00000 0x00 0x5f00000 0x20000>;
+               power-domains = <&k3_pds 244 TI_SCI_PD_EXCLUSIVE>;
+
+               main_r5fss1_core0: r5f@5e00000 {
+                       compatible = "ti,j721e-r5f";
+                       reg = <0x5e00000 0x00008000>,
+                             <0x5e10000 0x00008000>;
+                       reg-names = "atcm", "btcm";
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <247>;
+                       ti,sci-proc-ids = <0x08 0xFF>;
+                       resets = <&k3_reset 247 1>;
+                       atcm-enable = <1>;
+                       btcm-enable = <1>;
+                       loczrama = <1>;
+               };
+
+               main_r5fss1_core1: r5f@5f00000 {
+                       compatible = "ti,j721e-r5f";
+                       reg = <0x5f00000 0x00008000>,
+                             <0x5f10000 0x00008000>;
+                       reg-names = "atcm", "btcm";
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <248>;
+                       ti,sci-proc-ids = <0x09 0xFF>;
+                       resets = <&k3_reset 248 1>;
+                       atcm-enable = <1>;
+                       btcm-enable = <1>;
+                       loczrama = <1>;
+               };
+       };
 };