public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description
@ 2021-12-27 10:46 Lukasz Majewski
  2021-12-27 10:46 ` [PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name Lukasz Majewski
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Lukasz Majewski @ 2021-12-27 10:46 UTC (permalink / raw)
  To: u-boot, Stefano Babic, Tom Rini
  Cc: Lukasz Majewski, Fabio Estevam, NXP i.MX U-Boot Team

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@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@0 {
-			label = "SPL (spi)";
-			reg = <0x0 0x10000>;
-			read-only;
-		};
-		partition@1 {
-			label = "u-boot (spi)";
-			reg = <0x10000 0x70000>;
-			read-only;
-		};
-		partition@2 {
-			label = "uboot-env (spi)";
-			reg = <0x80000 0x20000>;
-		};
-		partition@3 {
-			label = "kernel (spi)";
-			reg = <0x100000 0x400000>;
-		};
-		partition@4 {
-			label = "swupdate (spi)";
-			reg = <0x50000 0x800000>;
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			partition@0 {
+				    label = "SPL";
+				    reg = <0x0 0x10000>;
+				    read-only;
+			};
+			partition@10000 {
+				    label = "u-boot";
+				    reg = <0x10000 0x70000>;
+				    read-only;
+			};
+			partition@80000 {
+				    label = "uboot-env1";
+				    reg = <0x80000 0x10000>;
+			};
+			partition@90000 {
+				    label = "uboot-env2";
+				    reg = <0x90000 0x10000>;
+			};
+			partition@A0000 {
+				    label = "rescue";
+				    reg = <0xA0000 0xF40000>;
+			};
+			partition@FE0000 {
+				    label = "spl-boot-data1";
+				    reg = <0xFE0000 0x10000>;
+			};
+			partition@FF0000 {
+				    label = "spl-boot-data2";
+				    reg = <0xFF0000 0x10000>;
+			};
 		};
 	};
 };
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-02-19 13:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-27 10:46 [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description Lukasz Majewski
2021-12-27 10:46 ` [PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name Lukasz Majewski
2022-02-19 13:07   ` sbabic
2021-12-27 10:46 ` [PATCH v2 3/4] arm: xea: config: Provide special defconfig for a single binary u-boot Lukasz Majewski
2022-02-05 11:29   ` Stefano Babic
2022-02-05 16:43   ` sbabic
2021-12-27 10:46 ` [PATCH v2 4/4] arm: dts: Enable support for USB on XEA (imx28) board Lukasz Majewski
2022-02-05 16:40   ` sbabic
2021-12-27 12:43 ` [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description Tom Rini
2021-12-27 13:20   ` Lukasz Majewski
2021-12-27 13:21     ` Tom Rini
2021-12-27 14:59       ` Lukasz Majewski
2021-12-27 15:00         ` Tom Rini
2022-02-05 16:44 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox