]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xea: dts: Update the SPI-NOR flash memory partitions description
authorLukasz Majewski <lukma@denx.de>
Mon, 27 Dec 2021 10:46:38 +0000 (11:46 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:39 +0000 (13:38 +0100)
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>
arch/arm/dts/imx28-xea.dts

index de049042f83ec894411f4ed2017772fdb65a9e4e..34af6cf67fa88a6a66b7b105129e5b4a27d2e346 100644 (file)
                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>;
+                       };
                };
        };
 };