]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: exynos850-e850-96: Specify reserved secure memory explicitly
authorSam Protsenko <semen.protsenko@linaro.org>
Wed, 11 Dec 2024 03:30:27 +0000 (21:30 -0600)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 22 Dec 2024 11:42:44 +0000 (12:42 +0100)
Instead of carving out the secure area in 'memory' node, let's describe
it in 'reserved-memory'. That makes it easier to understand both RAM
regions and particular secure world memory region. Originally the device
tree was created in a way to make sure it was well aligned with the way
LittleKernel bootloader modified it. But later it was found the
LittleKernel works fine with properly described reserved regions, so
it's possible now to define those in a cleaner way.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20241211033027.12985-1-semen.protsenko@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos850-e850-96.dts

index f074df8982b3e69ea77c73e9f7db24ead0f66d75..7d70a32e75b2553ad690bf936a5d8f784d3aa4ae 100644 (file)
                };
        };
 
-       /*
-        * RAM: 4 GiB (eMCP):
-        *   - 2 GiB at 0x80000000
-        *   - 2 GiB at 0x880000000
-        *
-        * 0xbab00000..0xbfffffff: secure memory (85 MiB).
-        */
        memory@80000000 {
                device_type = "memory";
-               reg = <0x0 0x80000000 0x3ab00000>,
-                     <0x0 0xc0000000 0x40000000>,
+               reg = <0x0 0x80000000 0x80000000>,
                      <0x8 0x80000000 0x80000000>;
        };
 
                #size-cells = <1>;
                ranges;
 
+               secure_mem: memory@bab00000 {
+                       reg = <0x0 0xbab00000 0x5500000>;
+                       no-map;
+               };
+
                ramoops@f0000000 {
                        compatible = "ramoops";
                        reg = <0x0 0xf0000000 0x200000>;