ARM: dts: omap4-panda-common: Add CMA pools and enable IPU & DSP
authorSuman Anna <s-anna@ti.com>
Thu, 9 Jul 2020 23:19:47 +0000 (18:19 -0500)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Jul 2020 18:11:39 +0000 (11:11 -0700)
The CMA reserved memory nodes have been added for the IPU and DSP
remoteproc devices on all the OMAP4-based Panda boards. These nodes
are assigned to the respective rproc device nodes, and both the
IPU and DSP remote processors are enabled for all these boards.

The current CMA pools and sizes are defined statically for each device.
The starting addresses are fixed to meet current dependencies on the
remote processor firmwares, and 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 <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap4-panda-common.dtsi

index 55ea8b6189af56aa6956fc24306b90339a2fcb9a..ef79028fc95fb7f41ba0f6e6b392855db77d8694 100644 (file)
                reg = <0x80000000 0x40000000>; /* 1 GB */
        };
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               dsp_memory_region: dsp-memory@98000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x98000000 0x800000>;
+                       reusable;
+                       status = "okay";
+               };
+
+               ipu_memory_region: ipu-memory@98800000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x98800000 0x7000000>;
+                       reusable;
+                       status = "okay";
+               };
+       };
+
        chosen {
                stdout-path = &uart3;
        };
                };
        };
 };
+
+&dsp {
+       status = "okay";
+       memory-region = <&dsp_memory_region>;
+};
+
+&ipu {
+       status = "okay";
+       memory-region = <&ipu_memory_region>;
+};