Skip to content

Commit c2a5678

Browse files
sumanannatmlind
authored andcommitted
ARM: dts: am571x-idk: Add CMA pools and enable IPUs & DSP1 rprocs
The CMA reserved memory nodes have been added for both the IPUs and the DSP1 remoteproc devices on the AM571x IDK board. These nodes are assigned to the respective rproc device nodes, and both the IPUs and the DSP1 remote processors are enabled for this board. The current CMA pools and sizes are defined statically for each device. The addresses chosen are the same as the respective processors on the DRA72 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 ac21a4a commit c2a5678

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

arch/arm/boot/dts/am571x-idk.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,33 @@
2121
reg = <0x0 0x80000000 0x0 0x40000000>;
2222
};
2323

24+
reserved-memory {
25+
#address-cells = <2>;
26+
#size-cells = <2>;
27+
ranges;
28+
29+
ipu2_memory_region: ipu2-memory@95800000 {
30+
compatible = "shared-dma-pool";
31+
reg = <0x0 0x95800000 0x0 0x3800000>;
32+
reusable;
33+
status = "okay";
34+
};
35+
36+
dsp1_memory_region: dsp1-memory@99000000 {
37+
compatible = "shared-dma-pool";
38+
reg = <0x0 0x99000000 0x0 0x4000000>;
39+
reusable;
40+
status = "okay";
41+
};
42+
43+
ipu1_memory_region: ipu1-memory@9d000000 {
44+
compatible = "shared-dma-pool";
45+
reg = <0x0 0x9d000000 0x0 0x2000000>;
46+
reusable;
47+
status = "okay";
48+
};
49+
};
50+
2451
leds {
2552
compatible = "gpio-leds";
2653
cpu0-led {
@@ -149,6 +176,21 @@
149176
load-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
150177
};
151178

179+
&ipu2 {
180+
status = "okay";
181+
memory-region = <&ipu2_memory_region>;
182+
};
183+
184+
&ipu1 {
185+
status = "okay";
186+
memory-region = <&ipu1_memory_region>;
187+
};
188+
189+
&dsp1 {
190+
status = "okay";
191+
memory-region = <&dsp1_memory_region>;
192+
};
193+
152194
&pcie1_rc {
153195
status = "okay";
154196
gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)