arm64: dts: ti: iot2050: Add/enabled mailboxes and carve-outs for R5F cores
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Sep 2021 12:05:14 +0000 (14:05 +0200)
committerNishanth Menon <nm@ti.com>
Tue, 5 Oct 2021 22:46:40 +0000 (17:46 -0500)
Analogously to the am654-base-board, configure the mailboxes for the two
R5F cores, add them and the already existing memory carve-outs to the
related MCU nodes. Allows to load applications under Linux onto the
cores, e.g. the RTI watchdog firmware.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/1776f8be19b39a938d9248fcfc5332b753783c3e.1632657917.git.jan.kiszka@web.de
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi

index 58c8e64d588570842cf0f509b4da00877343b32d..b295370882899e8a5262ccbb32602412da777d48 100644 (file)
 };
 
 &mailbox0_cluster0 {
-       status = "disabled";
+       interrupts = <436>;
+
+       mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
+               ti,mbox-tx = <1 0 0>;
+               ti,mbox-rx = <0 0 0>;
+       };
 };
 
 &mailbox0_cluster1 {
-       status = "disabled";
+       interrupts = <432>;
+
+       mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
+               ti,mbox-tx = <1 0 0>;
+               ti,mbox-rx = <0 0 0>;
+       };
 };
 
 &mailbox0_cluster2 {
        status = "disabled";
 };
 
+&mcu_r5fss0_core0 {
+       memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
+                       <&mcu_r5fss0_core0_memory_region>;
+       mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>;
+};
+
+&mcu_r5fss0_core1 {
+       memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
+                       <&mcu_r5fss0_core1_memory_region>;
+       mboxes = <&mailbox0_cluster1 &mbox_mcu_r5fss0_core1>;
+};
+
 &icssg0_mdio {
        status = "disabled";
 };