arm64: dts: realtek: rtd129x: Carve out boot ROM from memory
authorAndreas Färber <afaerber@suse.de>
Sat, 30 Nov 2019 18:20:53 +0000 (19:20 +0100)
committerAndreas Färber <afaerber@suse.de>
Sun, 12 Apr 2020 21:24:30 +0000 (23:24 +0200)
Update DS418j, MeLE V9, PROBOX2 AVA, Zidoo X9S and DS418 /memory nodes
to exclude 0..0x1efff from reg entry and update unit address to match.
Add this region to /soc ranges and for now just update the /memreserve/s.

Suggested-by: Rob Herring <robh@kernel.org>
Fixes: 72a7786c0a0d ("ARM64: dts: Add Realtek RTD1295 and Zidoo X9S")
Fixes: d938a964a966 ("arm64: dts: realtek: Add ProBox2 Ava")
Fixes: a9ce6f854581 ("arm64: dts: realtek: Add MeLE V9")
Fixes: cf976f660ee8 ("arm64: dts: realtek: Add RTD1293 and Synology DS418j")
Fixes: 5133636e41a2 ("arm64: dts: realtek: Add RTD1296 and Synology DS418")
Cc: James Tai <james.tai@realtek.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts
arch/arm64/boot/dts/realtek/rtd1295-mele-v9.dts
arch/arm64/boot/dts/realtek/rtd1295-probox2-ava.dts
arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts
arch/arm64/boot/dts/realtek/rtd1296-ds418.dts
arch/arm64/boot/dts/realtek/rtd129x.dtsi

index b2dd583146b4676c05bcd8168321c0c1f6f429cc..b2e44c6c2d220d85ec26ed6a46ca4b9395c67285 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
 /*
- * Copyright (c) 2017 Andreas Färber
+ * Copyright (c) 2017-2019 Andreas Färber
  */
 
 /dts-v1/;
@@ -11,9 +11,9 @@
        compatible = "synology,ds418j", "realtek,rtd1293";
        model = "Synology DiskStation DS418j";
 
-       memory@0 {
+       memory@1f000 {
                device_type = "memory";
-               reg = <0x0 0x40000000>;
+               reg = <0x1f000 0x3ffe1000>; /* boot ROM to 1 GiB */
        };
 
        aliases {
index bd584e99fff9dfac377e44445164784cebeff2c1..cf4a57c012a8ce7d5b230649e7b909ef1af21a27 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Andreas Färber
+ * Copyright (c) 2017-2019 Andreas Färber
  *
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
@@ -12,9 +12,9 @@
        compatible = "mele,v9", "realtek,rtd1295";
        model = "MeLE V9";
 
-       memory@0 {
+       memory@1f000 {
                device_type = "memory";
-               reg = <0x0 0x80000000>;
+               reg = <0x1f000 0x7ffe1000>; /* boot ROM to 2 GiB */
        };
 
        aliases {
index 8e2b0e75298ac65627f93e39308651f299f2a0ef..14161c3f304dec683bcf3db0931c8358208b7b90 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Andreas Färber
+ * Copyright (c) 2017-2019 Andreas Färber
  *
  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  */
@@ -12,9 +12,9 @@
        compatible = "probox2,ava", "realtek,rtd1295";
        model = "PROBOX2 AVA";
 
-       memory@0 {
+       memory@1f000 {
                device_type = "memory";
-               reg = <0x0 0x80000000>;
+               reg = <0x1f000 0x7ffe1000>; /* boot ROM to 2 GiB */
        };
 
        aliases {
index e98e508b95145a2dde2ffcd4b5a4fd43234f8e4c..4beb37bb9522852c22440d15831a71c869210c35 100644 (file)
@@ -11,9 +11,9 @@
        compatible = "zidoo,x9s", "realtek,rtd1295";
        model = "Zidoo X9S";
 
-       memory@0 {
+       memory@1f000 {
                device_type = "memory";
-               reg = <0x0 0x80000000>;
+               reg = <0x1f000 0x7ffe1000>; /* boot ROM to 2 GiB */
        };
 
        aliases {
index 5a051a52bf88cdb03efe6fb5fa6361fab32d5616..cc706d13da8bf4f46939c4e029f0d35bcc3749f4 100644 (file)
@@ -11,9 +11,9 @@
        compatible = "synology,ds418", "realtek,rtd1296";
        model = "Synology DiskStation DS418";
 
-       memory@0 {
+       memory@1f000 {
                device_type = "memory";
-               reg = <0x0 0x80000000>;
+               reg = <0x1f000 0x7ffe1000>; /* boot ROM to 2 GiB */
        };
 
        aliases {
index 5e755dda7abbb3f6c84ed48b81b58ced9ce35e7d..0de9e675be163d97edd85503fb227ec46d218502 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright (c) 2016-2019 Andreas Färber
  */
 
-/memreserve/   0x0000000000000000 0x0000000000030000;
-/memreserve/   0x0000000000030000 0x00000000000d0000;
+/memreserve/   0x0000000000000000 0x000000000001f000;
+/memreserve/   0x000000000001f000 0x00000000000e1000;
 /memreserve/   0x0000000001b00000 0x00000000004be000;
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -52,8 +52,9 @@
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
-               /* Exclude up to 2 GiB of RAM */
-               ranges = <0x80000000 0x80000000 0x80000000>;
+               ranges = <0x00000000 0x00000000 0x0001f000>, /* boot ROM */
+                        /* Exclude up to 2 GiB of RAM */
+                        <0x80000000 0x80000000 0x80000000>;
 
                rbus: bus@98000000 {
                        compatible = "simple-bus";