ramips: move partitions into partition table node
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / MT7620a_V22SG.dts
index 30e43d7cd54acf720d6e85bb1cee44cc3713b292..8020ab30daff686a467f4c49879b3d7459da266b 100644 (file)
        };
 
        nand {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "mtk,mt7620-nand";
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x40000>;
-                       read-only;
-               };
-
-               partition@40000 {
-                       label = "u-boot-env";
-                       reg = <0x40000 0x20000>;
-                       read-only;
-               };
-
-               factory: partition@60000 {
-                       label = "factory";
-                       reg = <0x60000 0x20000>;
-                       read-only;
-               };
-
-               partition@80000 {
-                       label = "firmware";
-                       reg = <0x80000 0x7f80000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x40000>;
+                               read-only;
+                       };
+
+                       partition@40000 {
+                               label = "u-boot-env";
+                               reg = <0x40000 0x20000>;
+                               read-only;
+                       };
+
+                       factory: partition@60000 {
+                               label = "factory";
+                               reg = <0x60000 0x20000>;
+                               read-only;
+                       };
+
+                       partition@80000 {
+                               label = "firmware";
+                               reg = <0x80000 0x7f80000>;
+                       };
                };
        };
 };