]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: boot: dts: ti: k3-*: Add memory node to bootloader stage
authorNeha Malcom Francis <n-francis@ti.com>
Mon, 6 May 2024 11:02:03 +0000 (16:32 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 12 Jun 2024 16:01:27 +0000 (21:31 +0530)
Add the bootph-all property to the memory node so that it can be
accessed by FDT functions at bootloader stage.

The bootloader requires the memory node to be able to initialize and set
the size of the DRAM banks. For this purpose, make sure all memory nodes
are present and standardized, and modify them if not.

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Link: https://lore.kernel.org/r/20240506110203.3230255-1-n-francis@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am654-base-board.dts
arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi
arch/arm64/boot/dts/ti/k3-am69-sk.dts
arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
arch/arm64/boot/dts/ti/k3-j721e-sk.dts
arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts

index aba0c52b121338feabdd5b01ef65bb85f85ed762..aa7139cc8a92b44fe94b556d392038edf6e9f35e 100644 (file)
@@ -33,6 +33,7 @@
 
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 4G RAM */
                reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
                      <0x00000008 0x80000000 0x00000000 0x80000000>;
index 0f4a5da0ebc4527723eb16a0ccfb9a721b6cc71d..2ebb7daa822f1512611fd7a2ff4f07d26f589c46 100644 (file)
 / {
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 16 GB RAM */
-               reg = <0x00 0x80000000 0x00 0x80000000>,
-                     <0x08 0x80000000 0x03 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+                     <0x00000008 0x80000000 0x00000003 0x80000000>;
        };
 
        reserved_memory: reserved-memory {
index d88651c297a22a52b499fd34f3e4d8f16e8af2fe..102f8fbcc24f89116e4129e0bca72bbbfc077e58 100644 (file)
@@ -35,8 +35,8 @@
                device_type = "memory";
                bootph-all;
                /* 32G RAM */
-               reg = <0x00 0x80000000 0x00 0x80000000>,
-                     <0x08 0x80000000 0x07 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+                     <0x00000008 0x80000000 0x00000007 0x80000000>;
        };
 
        reserved_memory: reserved-memory {
index 7e6a584ac6f0b52882a87eec7994c90383c62297..21fe194a576625319e8fb0663e53a636ea2d14bf 100644 (file)
 / {
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 4G RAM */
-               reg = <0x00 0x80000000 0x00 0x80000000>,
-                     <0x08 0x80000000 0x00 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+                     <0x00000008 0x80000000 0x00000000 0x80000000>;
        };
 
        reserved_memory: reserved-memory {
index 0c4575ad8d7cb03919a7a4520acc2d4059a23287..a027cf2facee16aabb6921a7d25822da8cde12fe 100644 (file)
@@ -31,6 +31,7 @@
 
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 4G RAM */
                reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
                      <0x00000008 0x80000000 0x00000000 0x80000000>;
index 1fae6495db074a9b9997681575bcfe35e67f240a..5ba947771b842dea3ef3ceaa0b864d981e880dd5 100644 (file)
@@ -12,6 +12,7 @@
 / {
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 4G RAM */
                reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
                      <0x00000008 0x80000000 0x00000000 0x80000000>;
index 623c8421525d1932800140c2b424c10ed2be6227..82aacc01e8fe88f02888c928022bb6f415646b0c 100644 (file)
 / {
        memory@80000000 {
                device_type = "memory";
+               bootph-all;
                /* 16 GB RAM */
-               reg = <0x00 0x80000000 0x00 0x80000000>,
-                     <0x08 0x80000000 0x03 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+                     <0x00000008 0x80000000 0x00000003 0x80000000>;
        };
 
        /* Reserving memory regions still pending */
index bc5c22383105c02526ace076cb8130af04654e00..46706907423a37d71ae22c40bc2c86530839adcb 100644 (file)
@@ -35,8 +35,8 @@
                device_type = "memory";
                bootph-all;
                /* 32G RAM */
-               reg = <0x00 0x80000000 0x00 0x80000000>,
-                     <0x08 0x80000000 0x07 0x80000000>;
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+                     <0x00000008 0x80000000 0x00000007 0x80000000>;
        };
 
        reserved_memory: reserved-memory {