aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts
diff options
context:
space:
mode:
authorHank Moretti <mchank9999@gmail.com>2023-07-26 14:39:16 +0000
committerDaniel Golle <daniel@makrotopia.org>2023-08-07 16:31:27 +0100
commit34d8913bd563cfcb24804b24b99473871c886135 (patch)
treefdfbf6f8566fee3bf9853ce2ea34934ca57d61db /target/linux/mediatek/dts
parent0f0ea1087b4c42a9fcdd5f003fef62cf587da40b (diff)
downloadupstream-34d8913bd563cfcb24804b24b99473871c886135.tar.gz
upstream-34d8913bd563cfcb24804b24b99473871c886135.tar.bz2
upstream-34d8913bd563cfcb24804b24b99473871c886135.zip
mediatek: filogic: add specific layout for WR30U
Because this device enable NMBM by default, most users use custom U-Boot with NMBM-Enabled in Chinese forums. This layout is the same as the ubootmod layout but enabling NMBM. Signed-off-by: Hank Moretti <mchank9999@gmail.com>
Diffstat (limited to 'target/linux/mediatek/dts')
-rw-r--r--target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts
new file mode 100644
index 0000000000..7244cdfd61
--- /dev/null
+++ b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u-112m-nmbm.dts
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+#include "mt7981b-xiaomi-mi-router-wr30u.dtsi"
+
+/ {
+ model = "Xiaomi Mi Router WR30U (112M UBI with NMBM-Enabled layout)";
+ compatible = "xiaomi,mi-router-wr30u-112m-nmbm", "mediatek,mt7981";
+};
+
+&spi_nand {
+ mediatek,nmbm;
+ mediatek,bmt-max-ratio = <1>;
+ mediatek,bmt-max-reserved-blocks = <64>;
+};
+
+&partitions {
+ partition@600000 {
+ label = "ubi";
+ reg = <0x600000 0x7000000>;
+ };
+};