]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am64-phycore-som: Add M4F remoteproc nodes
authorWadim Egorov <w.egorov@phytec.de>
Wed, 11 Sep 2024 12:42:50 +0000 (14:42 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 28 Oct 2024 16:56:53 +0000 (22:26 +0530)
The AM64x SoCs of the TI K3 family have a Cortex M4F core in the MCU
domain. This core can be used by non safety applications as a remote
processor. When used as a remote processor with virtio/rpmessage IPC,
two carveout reserved memory nodes are needed. The first region is used
as a DMA pool for the rproc device, and the second region will furnish
the static carveout regions for the firmware memory.

The current carveout addresses and sizes are defined statically for
each rproc device. The M4F processor does not have an MMU, and as such
requires the exact memory used by the firmware to be set-aside.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Link: https://lore.kernel.org/r/20240911124251.702590-2-w.egorov@phytec.de
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi

index 75e08d0bf4ab474ff204eb05b08948ed7ebfeb84..99a6fdfaa7fb823ac144a3e5e67bcf01c887c05f 100644 (file)
                        reg = <0x00 0xa3100000 0x00 0xf00000>;
                        no-map;
                };
+
+               mcu_m4fss_dma_memory_region: m4f-dma-memory@a4000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x00 0xa4000000 0x00 0x100000>;
+                       no-map;
+               };
+
+               mcu_m4fss_memory_region: m4f-memory@a4100000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x00 0xa4100000 0x00 0xf00000>;
+                       no-map;
+               };
        };
 
        leds {
        };
 };
 
+&mailbox0_cluster6 {
+       status = "okay";
+
+       mbox_m4_0: mbox-m4-0 {
+               ti,mbox-rx = <0 0 2>;
+               ti,mbox-tx = <1 0 2>;
+       };
+};
+
 &main_i2c0 {
        status = "okay";
        pinctrl-names = "default";
                        <&main_r5fss1_core1_memory_region>;
 };
 
+&mcu_m4fss {
+       mboxes = <&mailbox0_cluster6 &mbox_m4_0>;
+       memory-region = <&mcu_m4fss_dma_memory_region>,
+                       <&mcu_m4fss_memory_region>;
+       status = "okay";
+};
+
 &ospi0 {
        status = "okay";
        pinctrl-names = "default";