Skip to content

Commit c0fa0aa

Browse files
dnltznmenon
authored andcommitted
arm64: dts: ti: k3-am62-phycore-som: Enable Co-processors
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 <[email protected]> Reviewed-by: Wadim Egorov <[email protected]> Reviewed-by: Andrew Davis <[email protected]> Reviewed-by: Judith Mendez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 625e540 commit c0fa0aa

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@
6464
no-map;
6565
};
6666

67+
wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9da00000 {
68+
compatible = "shared-dma-pool";
69+
reg = <0x00 0x9da00000 0x00 0x100000>;
70+
no-map;
71+
};
72+
73+
wkup_r5fss0_core0_memory_region: r5f-memory@9db00000 {
74+
compatible = "shared-dma-pool";
75+
reg = <0x00 0x9db00000 0x00 0xc00000>;
76+
no-map;
77+
};
78+
6779
secure_tfa_ddr: tfa@9e780000 {
6880
reg = <0x00 0x9e780000 0x00 0x80000>;
6981
alignment = <0x1000>;
@@ -75,12 +87,6 @@
7587
alignment = <0x1000>;
7688
no-map;
7789
};
78-
79-
wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 {
80-
compatible = "shared-dma-pool";
81-
reg = <0x00 0x9db00000 0x00 0x00c00000>;
82-
no-map;
83-
};
8490
};
8591

8692
vcc_5v0_som: regulator-vcc-5v0-som {
@@ -240,10 +246,17 @@
240246
};
241247

242248
&mailbox0_cluster0 {
249+
status = "okay";
250+
243251
mbox_m4_0: mbox-m4-0 {
244252
ti,mbox-rx = <0 0 0>;
245253
ti,mbox-tx = <1 0 0>;
246254
};
255+
256+
mbox_r5_0: mbox-r5-0 {
257+
ti,mbox-rx = <2 0 0>;
258+
ti,mbox-tx = <3 0 0>;
259+
};
247260
};
248261

249262
&main_pktdma {
@@ -385,3 +398,13 @@
385398
bootph-all;
386399
status = "okay";
387400
};
401+
402+
&wkup_r5fss0 {
403+
status = "okay";
404+
};
405+
406+
&wkup_r5fss0_core0 {
407+
mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
408+
memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
409+
<&wkup_r5fss0_core0_memory_region>;
410+
};

0 commit comments

Comments
 (0)