uboot-mediatek: add missing 'memory' nodes to downstream boards
authorDaniel Golle <daniel@makrotopia.org>
Mon, 31 Jul 2023 16:46:22 +0000 (17:46 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Jul 2023 16:54:31 +0000 (17:54 +0100)
Among the patches adding support for MT7988 also came the switch to
use fdtdec_setup_mem_size_base() and no longer rely on CFG_SYS_SDRAM_BASE.
Take care of our downstream boards which did not have a 'memory' node in
their device trees.

Fixes: 572ea68070 ("uboot-mediatek: add patches for MT7988 and builds for RFB")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-mediatek/patches/412-add-ubnt-unifi-6-lr.patch
package/boot/uboot-mediatek/patches/431-add-xiaomi_redmi-ax6000.patch
package/boot/uboot-mediatek/patches/432-add-tplink-xdr608x.patch
package/boot/uboot-mediatek/patches/433-add-qihoo_360t7.patch
package/boot/uboot-mediatek/patches/434-add-xiaomi_mi-router-wr30u.patch
package/boot/uboot-mediatek/patches/435-add-h3c_magic-nx30-pro.patch

index b495f48d6685f914544154449fa15c6dffd24400..4bde06176531943c0a4412c27669003a1ff02a49 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7622-ubnt-unifi-6-lr.dts
-@@ -0,0 +1,188 @@
+@@ -0,0 +1,193 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2019 MediaTek Inc.
 +              tick-timer = &timer0;
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x20000000>;
++      };
++
 +      aliases {
 +              spi0 = &snor;
 +      };
index 88e426366ba21dfcef876b05af7ef58da31fa3d8..070456b2ee88627002a790756c3871202ee1bbbb 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7986a-xiaomi_redmi-ax6000.dts
-@@ -0,0 +1,156 @@
+@@ -0,0 +1,161 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2021 MediaTek Inc.
 +              tick-timer = &timer0;
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x20000000>;
++      };
++
 +      keys {
 +              compatible = "gpio-keys";
 +              factory {
index b1c25ba7915b7236de1f5226df418ebf6bfa7402..365f280947ddf57a1ee42f30b02b109ab3911f2b 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7986a-tplink-tl-xdr608x.dts
-@@ -0,0 +1,191 @@
+@@ -0,0 +1,196 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2021 MediaTek Inc.
 +              tick-timer = &timer0;
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x20000000>;
++      };
++
 +      keys {
 +              compatible = "gpio-keys";
 +
index aaaeaa4f8ae069ac90a7828b6b78987ae839d801..4f98c95893b2279e969b6e8f2e69a5ad097fac2e 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7981_qihoo-360t7.dts
-@@ -0,0 +1,180 @@
+@@ -0,0 +1,185 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2022 MediaTek Inc.
 +              tick-timer = &timer0;
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x10000000>;
++      };
++
 +      keys {
 +              compatible = "gpio-keys";
 +
index 6be64e54216709e411a054b50bb36863b83773c6..2bd1afe7a8f380649574cba71f2fbbf75fa52831 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7981_xiaomi_mi-router-wr30u.dts
-@@ -0,0 +1,216 @@
+@@ -0,0 +1,221 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2022 MediaTek Inc.
 +              system_led = "yellow:system";
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x10000000>;
++      };
++
 +      gpio-keys {
 +              compatible = "gpio-keys";
 +
index 57181c73c0e1a0e6185b2516bf95caaf789180fb..d5a149b903b394295a2f357a671480d88be8986c 100644 (file)
 +CONFIG_SERVERIP="192.168.1.254"
 --- /dev/null
 +++ b/arch/arm/dts/mt7981_h3c_magic-nx30-pro.dts
-@@ -0,0 +1,200 @@
+@@ -0,0 +1,205 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (c) 2022 MediaTek Inc.
 +              tick-timer = &timer0;
 +      };
 +
++      memory@40000000 {
++              device_type = "memory";
++              reg = <0x40000000 0x10000000>;
++      };
++
 +      keys {
 +              compatible = "gpio-keys";
 +