Skip to content

Commit ac21a4a

Browse files
sumanannatmlind
authored andcommitted
ARM: dts: am572x-idk-common: Add CMA pools and enable IPU & DSP rprocs
The CMA reserved memory nodes have been added for all the IPU and DSP remoteproc devices in the am572x-idk-common.dtsi file that is common to both the AM572x and AM574x IDK boards. These nodes are assigned to the respective rproc device nodes, and all the IPU and DSP remote processors are enabled. The current CMA pools and sizes are defined statically for each device. The addresses chosen are the same as the respective processors on the AM57xx EVM board to maintain firmware compatibility between the two boards. The CMA pools and sizes are defined using 64-bit values to support LPAE. The starting addresses are fixed to meet current dependencies on the remote processor firmwares, and this will go away when the remote-side code has been improved to gather this information runtime during its initialization. An associated pair of the rproc node and its CMA node can be disabled later on if there is no use-case defined to use that remote processor. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 35529cc commit ac21a4a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

arch/arm/boot/dts/am572x-idk-common.dtsi

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,40 @@
1414
reg = <0x0 0x80000000 0x0 0x80000000>;
1515
};
1616

17+
reserved-memory {
18+
#address-cells = <2>;
19+
#size-cells = <2>;
20+
ranges;
21+
22+
ipu2_memory_region: ipu2-memory@95800000 {
23+
compatible = "shared-dma-pool";
24+
reg = <0x0 0x95800000 0x0 0x3800000>;
25+
reusable;
26+
status = "okay";
27+
};
28+
29+
dsp1_memory_region: dsp1-memory@99000000 {
30+
compatible = "shared-dma-pool";
31+
reg = <0x0 0x99000000 0x0 0x4000000>;
32+
reusable;
33+
status = "okay";
34+
};
35+
36+
ipu1_memory_region: ipu1-memory@9d000000 {
37+
compatible = "shared-dma-pool";
38+
reg = <0x0 0x9d000000 0x0 0x2000000>;
39+
reusable;
40+
status = "okay";
41+
};
42+
43+
dsp2_memory_region: dsp2-memory@9f000000 {
44+
compatible = "shared-dma-pool";
45+
reg = <0x0 0x9f000000 0x0 0x800000>;
46+
reusable;
47+
status = "okay";
48+
};
49+
};
50+
1751
status-leds {
1852
compatible = "gpio-leds";
1953
cpu0-led {
@@ -147,3 +181,23 @@
147181
status = "okay";
148182
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
149183
};
184+
185+
&ipu2 {
186+
status = "okay";
187+
memory-region = <&ipu2_memory_region>;
188+
};
189+
190+
&ipu1 {
191+
status = "okay";
192+
memory-region = <&ipu1_memory_region>;
193+
};
194+
195+
&dsp1 {
196+
status = "okay";
197+
memory-region = <&dsp1_memory_region>;
198+
};
199+
200+
&dsp2 {
201+
status = "okay";
202+
memory-region = <&dsp2_memory_region>;
203+
};

0 commit comments

Comments
 (0)