]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: update device tree of zbt-z8103ax for nmbm
authorJörg Seitz <github.joeterminal@xoxy.net>
Thu, 30 Apr 2026 05:01:06 +0000 (07:01 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 30 Apr 2026 21:57:13 +0000 (23:57 +0200)
Nand has a valid mediatek nand badblock management (NMBM) signature.
Gets used for non-UBI partions BL2, u-boot-env, Factory and FIT.

Signed-off-by: Jörg Seitz <github.joeterminal@xoxy.net>
Link: https://github.com/openwrt/openwrt/pull/21626
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8103ax.dtsi

index 6b4134595b0f36d7ae091f8a563b314ff9ebf777..6e8cff0bb5432a15ffba6ad2bfebce3c30c0cc00 100644 (file)
@@ -2,6 +2,11 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/mt65xx.h>
+
 #include "mt7981b.dtsi"
 
 / {
@@ -84,7 +89,6 @@
                        linux,default-trigger = "phy1tpt";
                };
        };
-
 };
 
 &eth {
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
 
+               mediatek,nmbm;
+               mediatek,bmt-max-ratio = <1>;
+               mediatek,bmt-max-reserved-blocks = <64>;
+
                partitions {
                        compatible = "fixed-partitions";
                        #address-cells = <1>;