arm64: dts: freescale: imx8qm: add reserve memory for rpmsg
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 1 Aug 2017 06:27:34 +0000 (14:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:13 +0000 (15:36 -0500)
RPMSG needs to share memory with M4, and SCD needs to set
this shared memory property accordingly, so the memory
region needs to be fixed.

Here make CMA range same as its size, so that SCD only sets
this region as share property. And also reserve another
4MB for RPMSG.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm.dtsi
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index 5482506..ea5cc92 100644 (file)
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0 0x28000000>;
-                       alloc-ranges = <0 0x80000000 0 0x80000000>;
+                       alloc-ranges = <0 0x90000000 0 0x28000000>;
                        linux,cma-default;
                };
+
+               rpmsg_reserved: rpmsg@0xb8000000 {
+                       no-map;
+                       reg = <0 0xb8000000 0 0x400000>;
+               };
        };
 
        gic: interrupt-controller@51a00000 {
index 787c229..92fd61b 100644 (file)
                        compatible = "shared-dma-pool";
                        reusable;
                        size = <0 0x28000000>;
-                       alloc-ranges = <0 0x80000000 0 0x80000000>;
+                       alloc-ranges = <0 0x90000000 0 0x28000000>;
                        linux,cma-default;
                };
+
+               rpmsg_reserved: rpmsg@0xb8000000 {
+                       no-map;
+                       reg = <0 0xb8000000 0 0x400000>;
+               };
        };
 
        gic: interrupt-controller@51a00000 {