mediatek: define NMBM management region for WAX220
authorDavid Bauer <mail@david-bauer.net>
Fri, 30 Jun 2023 17:30:09 +0000 (19:30 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 1 Jul 2023 23:06:08 +0000 (01:06 +0200)
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@david-bauer.net>
target/linux/mediatek/dts/mt7986b-netgear-wax220.dts

index f7da6e3630b94983fec64a0a1a75c2b4af96bc63..ac2a4b08246eca4bf753dfb86376220282b71f7f 100644 (file)
                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>;