ramips: move partitions into partition table node

Starting with kernel 4.4, the use of partitions as direct subnodes of the
mtd device is discouraged and only supported for backward compatiblity
reasons.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
This commit is contained in:
Alex Maclean
2018-08-01 21:32:34 +01:00
committed by Mathias Kresin
parent 6dd94c2781
commit 6031ab345d
257 changed files with 6665 additions and 5623 deletions

View File

@@ -88,30 +88,34 @@
compatible = "jedec,spi-nor";
spi-max-frequency = <25000000>;
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
reg = <0x0 0x0030000>;
label = "u-boot";
read-only;
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@30000 {
reg = <0x00030000 0x00010000>;
label = "config";
read-only;
};
partition@0 {
reg = <0x0 0x0030000>;
label = "u-boot";
read-only;
};
factory: partition@40000 {
reg = <0x00040000 0x00010000>;
label = "factory";
read-only;
};
partition@30000 {
reg = <0x00030000 0x00010000>;
label = "config";
read-only;
};
partition@50000 {
reg = <0x00050000 0x00fb0000>;
label = "firmware";
factory: partition@40000 {
reg = <0x00040000 0x00010000>;
label = "factory";
read-only;
};
partition@50000 {
reg = <0x00050000 0x00fb0000>;
label = "firmware";
};
};
};
};