Skip to content

Commit 8dd0ac2

Browse files
dnltznmenon
authored andcommitted
arm64: dts: ti: k3-am62a-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: 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 c0fa0aa commit 8dd0ac2

File tree

1 file changed

+90
-6
lines changed

1 file changed

+90
-6
lines changed

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

Lines changed: 90 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,42 @@
5959
linux,cma-default;
6060
};
6161

62+
c7x_0_dma_memory_region: c7x-dma-memory@99800000 {
63+
compatible = "shared-dma-pool";
64+
reg = <0x00 0x99800000 0x00 0x100000>;
65+
no-map;
66+
};
67+
68+
c7x_0_memory_region: c7x-memory@99900000 {
69+
compatible = "shared-dma-pool";
70+
reg = <0x00 0x99900000 0x00 0xf00000>;
71+
no-map;
72+
};
73+
74+
mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@9b800000 {
75+
compatible = "shared-dma-pool";
76+
reg = <0x00 0x9b800000 0x00 0x100000>;
77+
no-map;
78+
};
79+
80+
mcu_r5fss0_core0_memory_region: r5f-dma-memory@9b900000 {
81+
compatible = "shared-dma-pool";
82+
reg = <0x00 0x9b900000 0x00 0xf00000>;
83+
no-map;
84+
};
85+
86+
wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9c800000 {
87+
compatible = "shared-dma-pool";
88+
reg = <0x00 0x9c800000 0x00 0x100000>;
89+
no-map;
90+
};
91+
92+
wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
93+
compatible = "shared-dma-pool";
94+
reg = <0x00 0x9c900000 0x00 0xf00000>;
95+
no-map;
96+
};
97+
6298
secure_tfa_ddr: tfa@9e780000 {
6399
reg = <0x00 0x9e780000 0x00 0x80000>;
64100
alignment = <0x1000>;
@@ -70,12 +106,6 @@
70106
alignment = <0x1000>;
71107
no-map;
72108
};
73-
74-
wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
75-
compatible = "shared-dma-pool";
76-
reg = <0x00 0x9c900000 0x00 0x01e00000>;
77-
no-map;
78-
};
79109
};
80110

81111
vcc_5v0_som: regulator-vcc-5v0-som {
@@ -170,6 +200,13 @@
170200
};
171201
};
172202

203+
&c7x_0 {
204+
mboxes = <&mailbox0_cluster1 &mbox_c7x_0>;
205+
memory-region = <&c7x_0_dma_memory_region>,
206+
<&c7x_0_memory_region>;
207+
status = "okay";
208+
};
209+
173210
&cpsw3g {
174211
pinctrl-names = "default";
175212
pinctrl-0 = <&main_rgmii1_pins_default>;
@@ -200,6 +237,33 @@
200237
status = "okay";
201238
};
202239

240+
&mailbox0_cluster0 {
241+
status = "okay";
242+
243+
mbox_r5_0: mbox-r5-0 {
244+
ti,mbox-rx = <0 0 0>;
245+
ti,mbox-tx = <1 0 0>;
246+
};
247+
};
248+
249+
&mailbox0_cluster1 {
250+
status = "okay";
251+
252+
mbox_c7x_0: mbox-c7x-0 {
253+
ti,mbox-rx = <0 0 0>;
254+
ti,mbox-tx = <1 0 0>;
255+
};
256+
};
257+
258+
&mailbox0_cluster2 {
259+
status = "okay";
260+
261+
mbox_mcu_r5_0: mbox-mcu-r5-0 {
262+
ti,mbox-rx = <0 0 0>;
263+
ti,mbox-tx = <1 0 0>;
264+
};
265+
};
266+
203267
&main_i2c0 {
204268
pinctrl-names = "default";
205269
pinctrl-0 = <&main_i2c0_pins_default>;
@@ -315,6 +379,16 @@
315379
bootph-all;
316380
};
317381

382+
&mcu_r5fss0 {
383+
status = "okay";
384+
};
385+
386+
&mcu_r5fss0_core0 {
387+
mboxes = <&mailbox0_cluster2 &mbox_mcu_r5_0>;
388+
memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
389+
<&mcu_r5fss0_core0_memory_region>;
390+
};
391+
318392
&ospi0 {
319393
pinctrl-names = "default";
320394
pinctrl-0 = <&ospi0_pins_default>;
@@ -342,3 +416,13 @@
342416
bootph-all;
343417
status = "okay";
344418
};
419+
420+
&wkup_r5fss0 {
421+
status = "okay";
422+
};
423+
424+
&wkup_r5fss0_core0 {
425+
mboxes = <&mailbox0_cluster0 &mbox_r5_0>;
426+
memory-region = <&wkup_r5fss0_core0_dma_memory_region>,
427+
<&wkup_r5fss0_core0_memory_region>;
428+
};

0 commit comments

Comments
 (0)