ramips: enable BBT on NAND in I-O DATA devices
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Wed, 23 Nov 2022 08:12:29 +0000 (17:12 +0900)
committerChuanhong Guo <gch981213@gmail.com>
Fri, 30 Dec 2022 08:12:15 +0000 (16:12 +0800)
This patch enables MediaTek NAND BBT on I-O DATA devices manufactured by
MSTC (MitraStar Technology Corp.).

[WN-AX2033GR]
Tested-by: Yanase Yuki <dev@zpc.sakura.ne.jp>
[WN-AX1167GR2, WN-DX1167R, WN-DX1200GR, WN-DX2033GR]
Tested-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi

index 4837f29a46ce3b36dd45e44b61bec46cbd9bc8e1..653132bc6192f201a81e8e1123501ae54b64acb0 100644 (file)
 &nand {
        status = "okay";
 
+       mediatek,bbt;
+       mediatek,bmt-remap-range =
+               <0x0000000 0x0800000>,
+               <0x3600000 0x4980000>;
+
        partitions {
                compatible = "fixed-partitions";
                #address-cells = <1>;
index 89e7f4b3e9fc2b97143e2d69febb0f9e660da09b..4b42fcb7de72e5104460fb58a659ec33b70b78c4 100644 (file)
 &nand {
        status = "okay";
 
+       mediatek,bbt;
+       mediatek,bmt-remap-range =
+               <0x0000000 0x0800000>,
+               <0x3600000 0x4980000>;
+
        partitions: partitions {
                compatible = "fixed-partitions";
                #address-cells = <1>;