[openwrt/openwrt] realtek: fix Linksys LGS328C dts memory definition

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 27 05:20:07 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/380e5ea1f2a2fc158f5e438558dcbde90a975c4b

commit 380e5ea1f2a2fc158f5e438558dcbde90a975c4b
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Tue Dec 23 21:29:46 2025 +0100

    realtek: fix Linksys LGS328C dts memory definition
    
    RTL930x devices have highmem starting address at 0x20000000.
    The Linksys LGS328C highmem definition is wrongly shared with
    the larger LGS352C RTL931x model and starts at 0x90000000.
    Fix it by splitting the definition.
    
    Fixes: 853d73f ("realtek: add support for Linksys LGS328C")
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/21262
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit 5d7470d4caab5c4c9b0d9e853d4681f2e7183c4e)
---
 target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts              | 6 ++++++
 target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts              | 6 ++++++
 target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi | 6 ------
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts b/target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts
index 33752ab6e5..d4eeb5ce0a 100644
--- a/target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts
+++ b/target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts
@@ -7,6 +7,12 @@
 / {
 	compatible = "linksys,lgs328c", "realtek,rtl9301-soc";
 	model = "Linksys LGS328C";
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
+		      <0x20000000 0x10000000>; /* 256 MiB highmem */
+	};
 };
 
 &i2c_mst1 {
diff --git a/target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts b/target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts
index 9458a2a93f..7b86d8f484 100644
--- a/target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts
+++ b/target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts
@@ -7,6 +7,12 @@
 / {
 	compatible = "linksys,lgs352c", "realtek,rtl9311-soc";
 	model = "Linksys LGS352C";
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
+		      <0x90000000 0x10000000>; /* 256 MiB highmem */
+	};
 };
 
 &i2c_mst1 {
diff --git a/target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi b/target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi
index f9c7c6d49d..61d972f6d3 100644
--- a/target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi
+++ b/target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi
@@ -43,12 +43,6 @@
 		};
 	};
 
-	memory at 0 {
-		device_type = "memory";
-		reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
-		      <0x90000000 0x10000000>; /* 256 MiB highmem */
-	};
-
 	sfp0: sfp-p49 {
 		compatible = "sff,sfp";
 		los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;




More information about the lede-commits mailing list