]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: ti: k3-am62-phycore-som: Enable Co-processors
authorDaniel Schultz <d.schultz@phytec.de>
Wed, 7 May 2025 07:00:05 +0000 (00:00 -0700)
committerNishanth Menon <nm@ti.com>
Fri, 9 May 2025 11:20:25 +0000 (06:20 -0500)
For every remote processor, set up dedicated memory regions and
associate the required mailbox channels. Allocate two memory areas
per remote core: one 1MB region for vring shared buffers, and
another for external memory used by the remote processor for its
resource table and trace buffer.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Andrew Davis <afd@ti.com>
Reviewed-by: Judith Mendez <jm@ti.com>
Link: https://lore.kernel.org/r/20250507070008.1231611-2-d.schultz@phytec.de
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi

index e5be92aa121891d167a0e29713aca3434f32657c..10e6b5c08619ec38cde83b2b082ae5d477de2ec5 100644 (file)
                        no-map;
                };
 
+               wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9da00000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x00 0x9da00000 0x00 0x100000>;
+                       no-map;
+               };
+
+               wkup_r5fss0_core0_memory_region: r5f-memory@9db00000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x00 0x9db00000 0x00 0xc00000>;
+                       no-map;
+               };
+
                secure_tfa_ddr: tfa@9e780000 {
                        reg = <0x00 0x9e780000 0x00 0x80000>;
                        alignment = <0x1000>;
                        alignment = <0x1000>;
                        no-map;
                };
-
-               wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 {
-                       compatible = "shared-dma-pool";
-                       reg = <0x00 0x9db00000 0x00 0x00c00000>;
-                       no-map;
-               };
        };
 
        vcc_5v0_som: regulator-vcc-5v0-som {
 };
 
 &mailbox0_cluster0 {
+       status = "okay";
+
        mbox_m4_0: mbox-m4-0 {
                ti,mbox-rx = <0 0 0>;
                ti,mbox-tx = <1 0 0>;
        };
+
+       mbox_r5_0: mbox-r5-0 {
+               ti,mbox-rx = <2 0 0>;
+               ti,mbox-tx = <3 0 0>;
+       };
 };
 
 &main_pktdma {
        bootph-all;
        status = "okay";
 };
+
+&wkup_r5fss0 {
+       status = "okay";
+};
+
+&wkup_r5fss0_core0 {
+       mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
+       memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
+                       <&wkup_r5fss0_core0_memory_region>;
+};