ramips: move partitions into partition table node
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / HC5X61.dtsi
index a9c5c3f4833bb04b7a0863141e6ea2e31553ac50..096a82513eef53221d3464b861fe36efc4a6c75c 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 = "u-boot";
-                       reg = <0x0 0x30000>;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0xf80000>;
-               };
-
-               partition@fd0000 {
-                       label = "hwf_config";
-                       reg = <0xfd0000 0x10000>;
-               };
-
-               bdinfo: partition@fe0000 {
-                       label = "bdinfo";
-                       reg = <0xfe0000 0x10000>;
-               };
-
-               partition@ff0000 {
-                       label = "backup";
-                       reg = <0xff0000 0x10000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                       };
+
+                       partition@50000 {
+                               label = "firmware";
+                               reg = <0x50000 0xf80000>;
+                       };
+
+                       partition@fd0000 {
+                               label = "hwf_config";
+                               reg = <0xfd0000 0x10000>;
+                       };
+
+                       bdinfo: partition@fe0000 {
+                               label = "bdinfo";
+                               reg = <0xfe0000 0x10000>;
+                       };
+
+                       partition@ff0000 {
+                               label = "backup";
+                               reg = <0xff0000 0x10000>;
+                       };
                };
        };
 };