MLK-11844-2 ARM: dts: imx7d: reserve DDR space for M4 use case
authorAnson Huang <Anson.Huang@freescale.com>
Tue, 10 Nov 2015 11:12:55 +0000 (19:12 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:13 +0000 (14:49 -0500)
FreeRTOS/M4 has DDR use case, M4 can only execute on DDR
space lower than 0xa0000000, Linux kernel will reserve 1M
(0x9ff00000 - 0x9fffffff) for it, below are the DDR usage:

0x80000000 - 0x9fefffff: Linux kernel;
0x9ff00000 - 0x9fffffff: FreeRTOS;
0xa0000000 - 0xbfefffff: Linux kernel;
0xbff00000 - 0xbfffffff: RPMSG shared memory;
0xc0000000 - 0xffffffff: Linux kernel if boards has 2GB DDR.

Also, remove 'reg' property which is unused.

Signed-off-by: Anson Huang <Anson.Huang@freescale.com>
arch/arm/boot/dts/imx7d-12x12-lpddr3-arm2-m4.dts
arch/arm/boot/dts/imx7d-sdb-m4.dts

index 7594c33..c4c6e30 100644 (file)
@@ -3,7 +3,9 @@
 
 / {
        memory {
-               linux,usable-memory = <0x80000000 0x3ff00000>;
+               linux,usable-memory = <0x80000000 0x1ff00000>,
+                               <0xa0000000 0x1ff00000>,
+                               <0xc0000000 0x40000000>;
        };
 };
 
index abbe365..2246cb3 100644 (file)
@@ -10,8 +10,8 @@
 
 / {
        memory {
-               linux,usable-memory = <0x80000000 0x3ff00000>;
-               reg = <0x80000000 0x80000000>;
+               linux,usable-memory = <0x80000000 0x1ff00000>,
+                               <0xa0000000 0x1ff00000>;
        };
 };