ramips: add NMBM support for ipTIME AX2004M
[openwrt/staging/mans0n.git] / target / linux / ramips / dts / mt7621_iptime_ax2004m.dts
index 51be0d4939155503bde0e04a5bb851c61ec57fe7..7237bf822f46a948e47bca8985b3f731b8225f02 100644 (file)
 &nand {
        status = "okay";
 
+       mediatek,nmbm;
+       mediatek,bmt-max-ratio = <1>;
+       mediatek,bmt-max-reserved-blocks = <64>;
+       mediatek,bmt-remap-range = <0x000000 0x580000>;
+
        partitions {
                compatible = "fixed-partitions";
                #address-cells = <1>;
                                reg = <0x400000 0x7280000>;
                        };
                };
+
+               /* last 8 MiB is reserved for NMBM bad block table */
        };
 };