From: David Bauer Date: Fri, 30 Jun 2023 17:30:09 +0000 (+0200) Subject: mediatek: define NMBM management region for WAX220 X-Git-Tag: v24.10.0-rc1~4675 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=92eec257dd562547bc08ee76c1901eb22b66937c;p=openwrt%2Fopenwrt.git mediatek: define NMBM management region for WAX220 The NETGEAR WAX220 employs NMBM on SPI-NAND. In order to avoid dealing with invalid factory data, enable NMBM in the area preceding the UBI volume. Signed-off-by: David Bauer --- diff --git a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts b/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts index f7da6e3630..ac2a4b0824 100644 --- a/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts +++ b/target/linux/mediatek/dts/mt7986b-netgear-wax220.dts @@ -186,6 +186,11 @@ spi-tx-buswidth = <4>; spi-rx-buswidth = <4>; + mediatek,nmbm; + mediatek,bmt-max-ratio = <1>; + mediatek,bmt-max-reserved-blocks = <256>; + mediatek,bmt-remap-range = <0x0 0x580000>; + partitions: partitions { #address-cells = <0x1>; #size-cells = <0x1>;