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

@@ -89,38 +89,44 @@
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
read-only;
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@100000 {
label = "SC PID";
reg = <0x100000 0x100000>;
read-only;
};
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
read-only;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
partition@100000 {
label = "SC PID";
reg = <0x100000 0x100000>;
read-only;
};
partition@600000 {
label = "ubi";
reg = <0x600000 0x1c00000>;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
factory: partition@2e00000 {
label = "factory";
reg = <0x2e00000 0x100000>;
read-only;
};
partition@600000 {
label = "ubi";
reg = <0x600000 0x1c00000>;
};
partition@4200000 {
label = "reserved";
reg = <0x4200000 0x3c00000>;
read-only;
factory: partition@2e00000 {
label = "factory";
reg = <0x2e00000 0x100000>;
read-only;
};
partition@4200000 {
label = "reserved";
reg = <0x4200000 0x3c00000>;
read-only;
};
};
};