ramips: move partitions into partition table node
[openwrt/openwrt.git] / target / linux / ramips / dts / DWR-921-C1.dts
index 9949cefeb331572f1a8e98279dd759f1c36631e5..b94ce95bbc9ff902d44e7ddfaf208d4e36008efb 100644 (file)
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 
-               partition@0 {
-                       label = "jboot";
-                       reg = <0x0 0x10000>;
-                       read-only;
-               };
-
-               partition@10000 {
-                       label = "firmware";
-                       reg = <0x10000 0xfe0000>;
-               };
-
-               config: partition@ff0000 {
-                       label = "config";
-                       reg = <0xff0000 0x10000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "jboot";
+                               reg = <0x0 0x10000>;
+                               read-only;
+                       };
+
+                       partition@10000 {
+                               label = "firmware";
+                               reg = <0x10000 0xfe0000>;
+                       };
+
+                       config: partition@ff0000 {
+                               label = "config";
+                               reg = <0xff0000 0x10000>;
+                               read-only;
+                       };
                };
        };
 };