ramips: move partitions into partition table node
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / AR670W.dts
index 9e12ffc374eb13abaf49ee0fd3986442df8c8759..077e447e8481f10f5e072007902bf18bc0ea2843 100644 (file)
                compatible = "cfi-flash";
                reg = <0xbc400000 0x800000>;
                bank-width = <2>;
-               #address-cells = <1>;
-               #size-cells = <1>;
 
-               partition@0 {
-                       reg = <0x0 0x30000>;
-                       label = "u-boot";
-                       read-only;
-               };
-
-               factory: partition@30000 {
-                       reg = <0x30000 0x10000>;
-                       label = "factory";
-                       read-only;
-               };
-
-               partition@40000 {
-                       reg = <0x40000 0x3c0000>;
-                       label = "firmware";
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               reg = <0x0 0x30000>;
+                               label = "u-boot";
+                               read-only;
+                       };
+
+                       factory: partition@30000 {
+                               reg = <0x30000 0x10000>;
+                               label = "factory";
+                               read-only;
+                       };
+
+                       partition@40000 {
+                               reg = <0x40000 0x3c0000>;
+                               label = "firmware";
+                       };
                };
        };