[openwrt/openwrt] mediatek: define NMBM management region for WAX220

LEDE Commits lede-commits at lists.infradead.org
Sun Jul 2 06:43:23 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/fa1822a8e9beb10f6a6de548b5fe7482b695a866

commit fa1822a8e9beb10f6a6de548b5fe7482b695a866
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Fri Jun 30 19:30:09 2023 +0200

    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 <mail at david-bauer.net>
    (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>;




More information about the lede-commits mailing list