]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
ARM: dts: dra7-evm: Add CMA reserved memory nodes for IPUs & DSPs
authorSuman Anna <s-anna@ti.com>
Wed, 6 Aug 2014 17:03:28 +0000 (12:03 -0500)
committerSuman Anna <s-anna@ti.com>
Fri, 29 Aug 2014 02:51:52 +0000 (21:51 -0500)
The CMA reserved memory nodes have been added for the IPU and DSP
remoteproc devices on DRA7 EVM board. 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.

The nodes are assigned to the respective rproc device nodes, but are
disabled so that they are not created unnecessarily without enabling
the corresponding rproc devices.

Signed-off-by: Suman Anna <s-anna@ti.com>
arch/arm/boot/dts/dra7-evm.dts

index 67d133380badc444d2ad7b993eef74804eaccf4b..10f3f444a056f1fa372fb782de7e7c475a7ea726 100644 (file)
                reg = <0x80000000 0x60000000>; /* 1536 MB */
        };
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               ipu2_cma_pool: ipu2_cma@95800000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x95800000 0x3800000>;
+                       reusable;
+                       status = "disabled";
+               };
+
+               dsp1_cma_pool: dsp1_cma@99000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x99000000 0x4000000>;
+                       reusable;
+                       status = "disabled";
+               };
+
+               ipu1_cma_pool: ipu1_cma@9d000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x9d000000 0x2000000>;
+                       reusable;
+                       status = "disabled";
+               };
+
+               dsp2_cma_pool: dsp2_cma@9f000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x9f000000 0x800000>;
+                       reusable;
+                       status = "disabled";
+               };
+       };
+
        mmc2_3v3: fixedregulator-mmc2 {
                compatible = "regulator-fixed";
                regulator-name = "mmc2_3v3";
 &mmu_ipu2 {
        status = "okay";
 };
+
+&ipu2 {
+       memory-region = <&ipu2_cma_pool>;
+};
+
+&ipu1 {
+       memory-region = <&ipu1_cma_pool>;
+};
+
+&dsp1 {
+       memory-region = <&dsp1_cma_pool>;
+};
+
+&dsp2 {
+       memory-region = <&dsp2_cma_pool>;
+};