]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: fix Linksys LGS328C dts memory definition 21262/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 23 Dec 2025 20:29:46 +0000 (21:29 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 27 Dec 2025 13:15:11 +0000 (14:15 +0100)
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@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21262
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts
target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts
target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi

index 33752ab6e5fc3e0ffb539e8a99401838b4f8e376..d4eeb5ce0accd57d77f241eaac0843f9bb07aaa4 100644 (file)
@@ -7,6 +7,12 @@
 / {
        compatible = "linksys,lgs328c", "realtek,rtl9301-soc";
        model = "Linksys LGS328C";
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
+                     <0x20000000 0x10000000>; /* 256 MiB highmem */
+       };
 };
 
 &i2c_mst1 {
index 9458a2a93fd189536e9542c98981b1fd1be25217..7b86d8f4841ed7c931a34ef6d046eef55930eb22 100644 (file)
@@ -7,6 +7,12 @@
 / {
        compatible = "linksys,lgs352c", "realtek,rtl9311-soc";
        model = "Linksys LGS352C";
+
+       memory@0 {
+               device_type = "memory";
+               reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
+                     <0x90000000 0x10000000>; /* 256 MiB highmem */
+       };
 };
 
 &i2c_mst1 {
index f9c7c6d49d4fed2d2a51690758df880b36821037..61d972f6d3b63bcfdf92b9d189b5161851ed2010 100644 (file)
                };
        };
 
-       memory@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>;