]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: msm8953: Set initial address for memory
authorLuca Weiss <luca@z3ntu.xyz>
Sat, 25 Nov 2023 12:19:27 +0000 (13:19 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 9 Dec 2023 03:32:00 +0000 (19:32 -0800)
The dtbs_check really doesn't like having memory without reg set.

The base address depends on the amount of RAM you have:

  <= 2.00 GiB RAM: 0x80000000
   = 3.00 GiB RAM: 0x40000000
   = 3.75 GiB RAM: 0x10000000
 (more does not fit into the 32-bit physical address space)

So, let's pick one of the values, 0x10000000 which is used on devices
with 3.75 GiB RAM. Since the bootloader will update it to what's present
on the device it doesn't matter too much.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8953.dtsi

index 1a73bbbb43bceff2704d0590bba404375dad08f5..ad2f8cf9c966c568cdc517b1ccd7939ded23e57c 100644 (file)
                };
        };
 
-       memory {
+       memory@10000000 {
                device_type = "memory";
                /* We expect the bootloader to fill in the reg */
-               reg = <0 0 0 0>;
+               reg = <0 0x10000000 0 0>;
        };
 
        pmu {