From fa1822a8e9beb10f6a6de548b5fe7482b695a866 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Fri, 30 Jun 2023 19:30:09 +0200 Subject: [PATCH] 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 (cherry picked from commit 92eec257dd562547bc08ee76c1901eb22b66937c) --- target/linux/mediatek/dts/mt7986b-netgear-wax220.dts | 5 +++++ 1 file changed, 5 insertions(+) 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>; -- 2.30.2