arm64: dts: mt7986: use size of reserved partition for bl2
authorFrank Wunderlich <frank-w@public-files.de>
Sun, 28 May 2023 11:33:42 +0000 (13:33 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 15 Jun 2023 11:14:57 +0000 (13:14 +0200)
To store uncompressed bl2 more space is required than partition is
actually defined.

There is currently no known usage of this reserved partition.
Openwrt uses same partition layout.

We added same change to u-boot with commit d7bb1099 [1].

[1] https://source.denx.de/u-boot/u-boot/-/commit/d7bb109900c1ca754a0198b9afb50e3161ffc21e

Cc: stable@vger.kernel.org
Fixes: 8e01fb15b815 ("arm64: dts: mt7986: add Bananapi R3")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/20230528113343.7649-1-linux@fw-web.de
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso

index 84aa229e80f3745be2983529c9c7c00d48ec9697..e48881be4ed60c98bc89214cfe7b1dfdbf1ddf35 100644 (file)
 
                                        partition@0 {
                                                label = "bl2";
-                                               reg = <0x0 0x20000>;
+                                               reg = <0x0 0x40000>;
                                                read-only;
                                        };
 
-                                       partition@20000 {
-                                               label = "reserved";
-                                               reg = <0x20000 0x20000>;
-                                       };
-
                                        partition@40000 {
                                                label = "u-boot-env";
                                                reg = <0x40000 0x40000>;