ramips: move partitions into partition table node
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / NA930.dts
index f6020d63a4da90df85ec20a155f418c712a005aa..fadb484f3904fdff4abce0c8d4ba2e779004c38e 100644 (file)
        };
 
        nand {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "mtk,mt7620-nand";
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x20000>;
-                       read-only;
-               };
-
-               partition@200000 {
-                       label = "factory";
-                       reg = <0x200000 0x40000>;
-                       read-only;
-               };
-
-               partition@240000 {
-                       label = "Config";
-                       reg = <0x240000 0x400000>;
-                       read-only;
-               };
-
-               partition@640000 {
-                       label = "firmware";
-                       reg = <0x640000 0x1400000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x20000>;
+                               read-only;
+                       };
+
+                       partition@200000 {
+                               label = "factory";
+                               reg = <0x200000 0x40000>;
+                               read-only;
+                       };
+
+                       partition@240000 {
+                               label = "Config";
+                               reg = <0x240000 0x400000>;
+                               read-only;
+                       };
+
+                       partition@640000 {
+                               label = "firmware";
+                               reg = <0x640000 0x1400000>;
+                       };
                };
        };