[PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description
Lukasz Majewski
lukma at denx.de
Mon Dec 27 11:46:38 CET 2021
Now the dts information corresponds to the one available in the kernel.
With this patch applied the 'mtd list' shows proper names and
offsets for MTD partitions.
Signed-off-by: Lukasz Majewski <lukma at denx.de>
---
(no changes since v1)
arch/arm/dts/imx28-xea.dts | 55 +++++++++++++++++++++++---------------
1 file changed, 34 insertions(+), 21 deletions(-)
diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts
index de049042f8..34af6cf67f 100644
--- a/arch/arm/dts/imx28-xea.dts
+++ b/arch/arm/dts/imx28-xea.dts
@@ -86,27 +86,40 @@
spi-max-frequency = <40000000>;
reg = <0>;
- partition at 0 {
- label = "SPL (spi)";
- reg = <0x0 0x10000>;
- read-only;
- };
- partition at 1 {
- label = "u-boot (spi)";
- reg = <0x10000 0x70000>;
- read-only;
- };
- partition at 2 {
- label = "uboot-env (spi)";
- reg = <0x80000 0x20000>;
- };
- partition at 3 {
- label = "kernel (spi)";
- reg = <0x100000 0x400000>;
- };
- partition at 4 {
- label = "swupdate (spi)";
- reg = <0x50000 0x800000>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ partition at 0 {
+ label = "SPL";
+ reg = <0x0 0x10000>;
+ read-only;
+ };
+ partition at 10000 {
+ label = "u-boot";
+ reg = <0x10000 0x70000>;
+ read-only;
+ };
+ partition at 80000 {
+ label = "uboot-env1";
+ reg = <0x80000 0x10000>;
+ };
+ partition at 90000 {
+ label = "uboot-env2";
+ reg = <0x90000 0x10000>;
+ };
+ partition at A0000 {
+ label = "rescue";
+ reg = <0xA0000 0xF40000>;
+ };
+ partition at FE0000 {
+ label = "spl-boot-data1";
+ reg = <0xFE0000 0x10000>;
+ };
+ partition at FF0000 {
+ label = "spl-boot-data2";
+ reg = <0xFF0000 0x10000>;
+ };
};
};
};
--
2.20.1
More information about the U-Boot
mailing list