ath79: use the new DT fixed partitions syntax

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>
This commit is contained in:
Rafał Miłecki 2018-05-07 10:35:51 +02:00 committed by John Crispin
parent 7fe77a5962
commit 4edd4cb2b3
7 changed files with 174 additions and 132 deletions

View File

@ -139,26 +139,32 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x050000>; #address-cells = <1>;
read-only; #size-cells = <1>;
};
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x050000 0x020000>; reg = <0x000000 0x050000>;
}; read-only;
};
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x70000 0xf80000>; reg = <0x050000 0x020000>;
}; };
partition@3 { partition@2 {
label = "art"; label = "firmware";
reg = <0xff0000 0x010000>; reg = <0x70000 0xf80000>;
read-only; };
partition@3 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -68,37 +68,43 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x040000>; #address-cells = <1>;
}; #size-cells = <1>;
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x040000 0x010000>; reg = <0x000000 0x040000>;
}; };
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x050000 0x750000>; reg = <0x040000 0x010000>;
}; };
partition@3 { partition@2 {
label = "board_config"; label = "firmware";
reg = <0x7a0000 0x010000>; reg = <0x050000 0x750000>;
read-only; };
};
partition@4 { partition@3 {
label = "cfg"; label = "board_config";
reg = <0x7b0000 0x040000>; reg = <0x7a0000 0x010000>;
read-only; read-only;
}; };
art: partition@5 { partition@4 {
label = "art"; label = "cfg";
reg = <0x7f0000 0x010000>; reg = <0x7b0000 0x040000>;
read-only; read-only;
};
art: partition@5 {
label = "art";
reg = <0x7f0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -77,37 +77,43 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x040000>; #address-cells = <1>;
}; #size-cells = <1>;
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x040000 0x010000>; reg = <0x000000 0x040000>;
}; };
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x050000 0x750000>; reg = <0x040000 0x010000>;
}; };
partition@3 { partition@2 {
label = "board_config"; label = "firmware";
reg = <0x7a0000 0x010000>; reg = <0x050000 0x750000>;
read-only; };
};
partition@4 { partition@3 {
label = "cfg"; label = "board_config";
reg = <0x7b0000 0x040000>; reg = <0x7a0000 0x010000>;
read-only; read-only;
}; };
art: partition@5 { partition@4 {
label = "art"; label = "cfg";
reg = <0x7f0000 0x010000>; reg = <0x7b0000 0x040000>;
read-only; read-only;
};
art: partition@5 {
label = "art";
reg = <0x7f0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -94,20 +94,26 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x020000>; #address-cells = <1>;
}; #size-cells = <1>;
partition@1 { partition@0 {
label = "firmware"; label = "u-boot";
reg = <0x020000 0x7D0000>; reg = <0x000000 0x020000>;
}; };
partition@2 { partition@1 {
label = "art"; label = "firmware";
reg = <0x7F0000 0x010000>; reg = <0x020000 0x7D0000>;
read-only; };
partition@2 {
label = "art";
reg = <0x7F0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -96,26 +96,32 @@
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x040000>; #address-cells = <1>;
read-only; #size-cells = <1>;
};
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x040000 0x010000>; reg = <0x000000 0x040000>;
}; read-only;
};
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x050000 0xfa0000>; reg = <0x040000 0x010000>;
}; };
art: partition@3 { partition@2 {
label = "ART"; label = "firmware";
reg = <0xff0000 0x010000>; reg = <0x050000 0xfa0000>;
read-only; };
art: partition@3 {
label = "ART";
reg = <0xff0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -77,26 +77,32 @@
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
reg = <0>; reg = <0>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x040000>; #address-cells = <1>;
read-only; #size-cells = <1>;
};
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x040000 0x010000>; reg = <0x000000 0x040000>;
}; read-only;
};
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x050000 0xfa0000>; reg = <0x040000 0x010000>;
}; };
art: partition@3 { partition@2 {
label = "ART"; label = "firmware";
reg = <0xff0000 0x010000>; reg = <0x050000 0xfa0000>;
read-only; };
art: partition@3 {
label = "ART";
reg = <0xff0000 0x010000>;
read-only;
};
}; };
}; };
}; };

View File

@ -113,26 +113,32 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "u-boot"; compatible = "fixed-partitions";
reg = <0x000000 0x040000>; #address-cells = <1>;
read-only; #size-cells = <1>;
};
partition@1 { partition@0 {
label = "u-boot-env"; label = "u-boot";
reg = <0x040000 0x010000>; reg = <0x000000 0x040000>;
}; read-only;
};
partition@2 { partition@1 {
label = "firmware"; label = "u-boot-env";
reg = <0x850000 0x7a0000>; reg = <0x040000 0x010000>;
}; };
partition@3 { partition@2 {
label = "ART"; label = "firmware";
reg = <0xff0000 0x010000>; reg = <0x850000 0x7a0000>;
read-only; };
partition@3 {
label = "ART";
reg = <0xff0000 0x010000>;
read-only;
};
}; };
}; };
}; };