<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- a/arch/arm/dts/mt7981-rfb.dts
+++ b/arch/arm/dts/mt7981-rfb.dts
@@ -143,6 +143,37 @@
 		compatible = "spi-nand";
 		reg = &lt;0&gt;;
 		spi-max-frequency = &lt;52000000&gt;;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = &lt;1&gt;;
+			#size-cells = &lt;1&gt;;
+
+			partition@0 {
+				label = "BL2";
+				reg = &lt;0x00000 0x0100000&gt;;
+			};
+
+			partition@100000 {
+				label = "u-boot-env";
+				reg = &lt;0x0100000 0x0080000&gt;;
+			};
+
+			factory: partition@180000 {
+				label = "Factory";
+				reg = &lt;0x180000 0x0200000&gt;;
+			};
+
+			partition@380000 {
+				label = "FIP";
+				reg = &lt;0x380000 0x0200000&gt;;
+			};
+
+			partition@580000 {
+				label = "ubi";
+				reg = &lt;0x580000 0x4000000&gt;;
+			};
+		};
 	};
 };
 
@@ -164,6 +195,37 @@
 		compatible = "jedec,spi-nor";
 		reg = &lt;0&gt;;
 		spi-max-frequency = &lt;52000000&gt;;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = &lt;1&gt;;
+			#size-cells = &lt;1&gt;;
+
+			partition@00000 {
+				label = "BL2";
+				reg = &lt;0x00000 0x0040000&gt;;
+			};
+
+			partition@40000 {
+				label = "u-boot-env";
+				reg = &lt;0x40000 0x0010000&gt;;
+			};
+
+			partition@50000 {
+				label = "Factory";
+				reg = &lt;0x50000 0x00B0000&gt;;
+			};
+
+			partition@100000 {
+				label = "FIP";
+				reg = &lt;0x100000 0x0080000&gt;;
+			};
+
+			partition@180000 {
+				label = "firmware";
+				reg = &lt;0x180000 0xE00000&gt;;
+			};
+		};
 	};
 };
 
--- a/arch/arm/dts/mt7981-snfi-nand-rfb.dts
+++ b/arch/arm/dts/mt7981-snfi-nand-rfb.dts
@@ -107,11 +107,11 @@
 	};
 
 	mmc0_pins_default: mmc0default {
-                mux {
-                       function = "flash";
-                       groups =  "emmc_45";
-                 };
-         };
+		mux {
+			function = "flash";
+			groups =  "emmc_45";
+		};
+	};
 };
 
 &amp;snand {
@@ -119,6 +119,42 @@
 	pinctrl-0 = &lt;&amp;snfi_pins&gt;;
 	status = "okay";
 	quad-spi;
+
+	spi_nand@0 {
+		compatible = "spi-nand";
+		reg = &lt;0&gt;;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = &lt;1&gt;;
+			#size-cells = &lt;1&gt;;
+
+			partition@0 {
+				label = "BL2";
+				reg = &lt;0x00000 0x0100000&gt;;
+			};
+
+			partition@100000 {
+				label = "u-boot-env";
+				reg = &lt;0x0100000 0x0080000&gt;;
+			};
+
+			factory: partition@180000 {
+				label = "Factory";
+				reg = &lt;0x180000 0x0200000&gt;;
+			};
+
+			partition@380000 {
+				label = "FIP";
+				reg = &lt;0x380000 0x0200000&gt;;
+			};
+
+			partition@580000 {
+				label = "ubi";
+				reg = &lt;0x580000 0x4000000&gt;;
+			};
+		};
+	};
 };
 
 &amp;pwm {
</pre></body></html>