lantiq: dts: move partitions into partition node
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / arch / mips / boot / dts / falcon-sflash-16M.dtsi
index d95acc21eff8e66f3bfe0a2e12a35e3bdfbe82aa..626b964507353cb9293c5f8975f92b15421ea157 100644 (file)
@@ -5,33 +5,37 @@
        compatible = "lantiq,sflash-falcon", "simple-bus";
 
        flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "spansion,s25fl129p0", "spansion,s25fl129p1";
                reg = <0 0>;
                linux,mtd-name = "sflash";
                spi-max-frequency = <80000000>;
                m25p,fast-read;
 
-               partition@0 {
-                       reg = <0x0 0x40000>;
-                       label = "uboot";
-                       read-only;
-               };
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
-               partition@40000 {
-                       reg = <0x40000 0x80000>;
-                       label = "uboot_env";
-               };
+                       partition@0 {
+                               reg = <0x0 0x40000>;
+                               label = "uboot";
+                               read-only;
+                       };
 
-               partition@C0000 {
-                       reg = <0xC0000 0x740000>;
-                       label = "image0";
-               };
+                       partition@40000 {
+                               reg = <0x40000 0x80000>;
+                               label = "uboot_env";
+                       };
+
+                       partition@C0000 {
+                               reg = <0xC0000 0x740000>;
+                               label = "image0";
+                       };
 
-               partition@800000 {
-                       reg = <0x800000 0x800000>;
-                       label = "image1";
+                       partition@800000 {
+                               reg = <0x800000 0x800000>;
+                               label = "image1";
+                       };
                };
        };
 };