This new syntax is slightly better designed & uses "compatible" string.
For details see Documentation/devicetree/bindings/mtd/partition.txt .
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x050000>;
- read-only;
- };
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x050000>;
+ read-only;
+ };
- partition@1 {
- label = "u-boot-env";
- reg = <0x050000 0x020000>;
- };
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x050000 0x020000>;
+ };
- partition@2 {
- label = "firmware";
- reg = <0x70000 0xf80000>;
- };
+ partition@2 {
+ label = "firmware";
+ reg = <0x70000 0xf80000>;
+ };
- partition@3 {
- label = "art";
- reg = <0xff0000 0x010000>;
- read-only;
+ partition@3 {
+ label = "art";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
};
};
};
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x040000>;
- };
-
- partition@1 {
- label = "u-boot-env";
- reg = <0x040000 0x010000>;
- };
-
- partition@2 {
- label = "firmware";
- reg = <0x050000 0x750000>;
- };
-
- partition@3 {
- label = "board_config";
- reg = <0x7a0000 0x010000>;
- read-only;
- };
-
- partition@4 {
- label = "cfg";
- reg = <0x7b0000 0x040000>;
- read-only;
- };
-
- art: partition@5 {
- label = "art";
- reg = <0x7f0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ };
+
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@2 {
+ label = "firmware";
+ reg = <0x050000 0x750000>;
+ };
+
+ partition@3 {
+ label = "board_config";
+ reg = <0x7a0000 0x010000>;
+ read-only;
+ };
+
+ partition@4 {
+ label = "cfg";
+ reg = <0x7b0000 0x040000>;
+ read-only;
+ };
+
+ art: partition@5 {
+ label = "art";
+ reg = <0x7f0000 0x010000>;
+ read-only;
+ };
};
};
};
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x040000>;
- };
-
- partition@1 {
- label = "u-boot-env";
- reg = <0x040000 0x010000>;
- };
-
- partition@2 {
- label = "firmware";
- reg = <0x050000 0x750000>;
- };
-
- partition@3 {
- label = "board_config";
- reg = <0x7a0000 0x010000>;
- read-only;
- };
-
- partition@4 {
- label = "cfg";
- reg = <0x7b0000 0x040000>;
- read-only;
- };
-
- art: partition@5 {
- label = "art";
- reg = <0x7f0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ };
+
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@2 {
+ label = "firmware";
+ reg = <0x050000 0x750000>;
+ };
+
+ partition@3 {
+ label = "board_config";
+ reg = <0x7a0000 0x010000>;
+ read-only;
+ };
+
+ partition@4 {
+ label = "cfg";
+ reg = <0x7b0000 0x040000>;
+ read-only;
+ };
+
+ art: partition@5 {
+ label = "art";
+ reg = <0x7f0000 0x010000>;
+ read-only;
+ };
};
};
};
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x020000>;
- };
-
- partition@1 {
- label = "firmware";
- reg = <0x020000 0x7D0000>;
- };
-
- partition@2 {
- label = "art";
- reg = <0x7F0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x020000>;
+ };
+
+ partition@1 {
+ label = "firmware";
+ reg = <0x020000 0x7D0000>;
+ };
+
+ partition@2 {
+ label = "art";
+ reg = <0x7F0000 0x010000>;
+ read-only;
+ };
};
};
};
spi-max-frequency = <104000000>;
reg = <0>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x040000>;
- read-only;
- };
-
- partition@1 {
- label = "u-boot-env";
- reg = <0x040000 0x010000>;
- };
-
- partition@2 {
- label = "firmware";
- reg = <0x050000 0xfa0000>;
- };
-
- art: partition@3 {
- label = "ART";
- reg = <0xff0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ read-only;
+ };
+
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@2 {
+ label = "firmware";
+ reg = <0x050000 0xfa0000>;
+ };
+
+ art: partition@3 {
+ label = "ART";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
};
};
};
spi-max-frequency = <104000000>;
reg = <0>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x040000>;
- read-only;
- };
-
- partition@1 {
- label = "u-boot-env";
- reg = <0x040000 0x010000>;
- };
-
- partition@2 {
- label = "firmware";
- reg = <0x050000 0xfa0000>;
- };
-
- art: partition@3 {
- label = "ART";
- reg = <0xff0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ read-only;
+ };
+
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@2 {
+ label = "firmware";
+ reg = <0x050000 0xfa0000>;
+ };
+
+ art: partition@3 {
+ label = "ART";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
};
};
};
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x040000>;
- read-only;
- };
-
- partition@1 {
- label = "u-boot-env";
- reg = <0x040000 0x010000>;
- };
-
- partition@2 {
- label = "firmware";
- reg = <0x850000 0x7a0000>;
- };
-
- partition@3 {
- label = "ART";
- reg = <0xff0000 0x010000>;
- read-only;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x040000>;
+ read-only;
+ };
+
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x040000 0x010000>;
+ };
+
+ partition@2 {
+ label = "firmware";
+ reg = <0x850000 0x7a0000>;
+ };
+
+ partition@3 {
+ label = "ART";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
};
};
};