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

@@ -18,36 +18,40 @@
reg = <0x1f000000 0x1000000>;
bank-width = <2>;
device-width = <2>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@30000 {
label = "u-boot-env";
reg = <0x40000 0x20000>;
read-only;
};
partition@0 {
label = "u-boot";
reg = <0x0 0x40000>;
read-only;
};
factory: partition@60000 {
label = "factory";
reg = <0x60000 0x20000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x40000 0x20000>;
read-only;
};
partition@80000 {
label = "firmware";
reg = <0x80000 0xf60000>;
};
factory: partition@60000 {
label = "factory";
reg = <0x60000 0x20000>;
read-only;
};
partition@fa0000 {
label = "factory-orig";
reg = <0xfa0000 0x20000>;
read-only;
partition@80000 {
label = "firmware";
reg = <0x80000 0xf60000>;
};
partition@fa0000 {
label = "factory-orig";
reg = <0xfa0000 0x20000>;
read-only;
};
};
};