ARM: dts: am335x-myirtech: Update NAND default partition table layout
authorAlexander Shiyan <eagle.alexander923@gmail.com>
Wed, 27 Apr 2022 08:19:14 +0000 (11:19 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 29 Apr 2022 07:10:35 +0000 (10:10 +0300)
This patch replaces the legacy partition table layout with a modern style.
As an additional change, we are reserving space for three backup MLO entries
and increasing space for the main bootloader.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
Message-Id: <20220427081914.6773-2-eagle.alexander923@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-myirtech-myc.dtsi
arch/arm/boot/dts/am335x-myirtech-myd.dts

index d94e096983c7f9f7ff12beb46b80786c341b763a..6eea18b2935574b0d8011a9f8b9481d1d4c5e72f 100644 (file)
                gpmc,wr-data-mux-bus-ns = <0>;
                ti,elm-id = <&elm>;
                ti,nand-ecc-opt = "bch8";
-
-               #address-cells = <1>;
-               #size-cells = <1>;
        };
 };
 
index 1479fd95dec2441c9257073471d0003e9b8109d6..9d81d4cc6890eea98ef359f00165ff4c1db11246 100644 (file)
 };
 
 &nand0 {
-       partition@0 {
-               label = "MLO";
-               reg = <0x00000 0x20000>;
-       };
+       nand_parts: partitions {
+               compatible = "fixed-partitions";
+               #address-cells = <1>;
+               #size-cells = <1>;
 
-       partition@20000 {
-               label = "boot";
-               reg = <0x20000 0x80000>;
+               partition@0 {
+                       label = "MLO";
+                       reg = <0x00000 0x20000>;
+               };
+
+               partition@80000 {
+                       label = "boot";
+                       reg = <0x80000 0x100000>;
+               };
        };
 };