Commit 12a29fb4 authored by Neha Malcom Francis's avatar Neha Malcom Francis Committed by Vignesh Raghavendra

arm64: boot: dts: ti: k3-*: Add memory node to bootloader stage

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: default avatarNeha Malcom Francis <n-francis@ti.com>
Link: https://lore.kernel.org/r/20240506110203.3230255-1-n-francis@ti.comSigned-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 9dcc0e10
......@@ -33,6 +33,7 @@ chosen {
memory@80000000 {
device_type = "memory";
bootph-all;
/* 4G RAM */
reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
<0x00000008 0x80000000 0x00000000 0x80000000>;
......
......@@ -11,9 +11,10 @@
/ {
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 {
......
......@@ -35,8 +35,8 @@ memory@80000000 {
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 {
......
......@@ -12,9 +12,10 @@
/ {
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 {
......
......@@ -31,6 +31,7 @@ chosen {
memory@80000000 {
device_type = "memory";
bootph-all;
/* 4G RAM */
reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
<0x00000008 0x80000000 0x00000000 0x80000000>;
......
......@@ -12,6 +12,7 @@
/ {
memory@80000000 {
device_type = "memory";
bootph-all;
/* 4G RAM */
reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
<0x00000008 0x80000000 0x00000000 0x80000000>;
......
......@@ -13,9 +13,10 @@
/ {
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 */
......
......@@ -35,8 +35,8 @@ memory@80000000 {
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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment