Skip to content

Commit

Permalink
arm64: dts: realtek: rtd129x: Carve out boot ROM from memory
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: 72a7786 ("ARM64: dts: Add Realtek RTD1295 and Zidoo X9S")
Fixes: d938a96 ("arm64: dts: realtek: Add ProBox2 Ava")
Fixes: a9ce6f8 ("arm64: dts: realtek: Add MeLE V9")
Fixes: cf976f6 ("arm64: dts: realtek: Add RTD1293 and Synology DS418j")
Fixes: 5133636 ("arm64: dts: realtek: Add RTD1296 and Synology DS418")
Cc: James Tai <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
  • Loading branch information
afaerber committed Apr 12, 2020
1 parent 6d2fdb2 commit 3040e13
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/realtek/rtd1293-ds418j.dts
Original file line number Diff line number Diff line change
@@ -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/;
Expand All @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/realtek/rtd1295-mele-v9.dts
Original file line number Diff line number Diff line change
@@ -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)
*/
Expand All @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/realtek/rtd1295-probox2-ava.dts
Original file line number Diff line number Diff line change
@@ -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)
*/
Expand All @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/realtek/rtd1296-ds418.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 5 additions & 4 deletions arch/arm64/boot/dts/realtek/rtd129x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 3040e13

Please sign in to comment.