Skip to content

Commit 380e5ea

Browse files
plappermaulhauke
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21262 Signed-off-by: Hauke Mehrtens <[email protected]> (cherry picked from commit 5d7470d)
1 parent a06553b commit 380e5ea

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

target/linux/realtek/dts/rtl9301_linksys_lgs328c.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
/ {
88
compatible = "linksys,lgs328c", "realtek,rtl9301-soc";
99
model = "Linksys LGS328C";
10+
11+
memory@0 {
12+
device_type = "memory";
13+
reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
14+
<0x20000000 0x10000000>; /* 256 MiB highmem */
15+
};
1016
};
1117

1218
&i2c_mst1 {

target/linux/realtek/dts/rtl9311_linksys_lgs352c.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
/ {
88
compatible = "linksys,lgs352c", "realtek,rtl9311-soc";
99
model = "Linksys LGS352C";
10+
11+
memory@0 {
12+
device_type = "memory";
13+
reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
14+
<0x90000000 0x10000000>; /* 256 MiB highmem */
15+
};
1016
};
1117

1218
&i2c_mst1 {

target/linux/realtek/dts/rtl93xx_linksys_lgs3xxc_nand_common.dtsi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
};
4444
};
4545

46-
memory@0 {
47-
device_type = "memory";
48-
reg = <0x00000000 0x10000000>, /* 256 MiB lowmem */
49-
<0x90000000 0x10000000>; /* 256 MiB highmem */
50-
};
51-
5246
sfp0: sfp-p49 {
5347
compatible = "sff,sfp";
5448
los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)