0b84f1463acf2c941cfab3cf63fdb9ae4214b30b
[openwrt/staging/ldir.git] /
1 From 1423b4b780adcf3994e63a5988a62d5d1d509bb1 Mon Sep 17 00:00:00 2001
2 From: Frank Wunderlich <frank-w@public-files.de>
3 Date: Sun, 28 May 2023 13:33:42 +0200
4 Subject: [PATCH 15/19] arm64: dts: mt7986: use size of reserved partition for
5 bl2
6
7 To store uncompressed bl2 more space is required than partition is
8 actually defined.
9
10 There is currently no known usage of this reserved partition.
11 Openwrt uses same partition layout.
12
13 We added same change to u-boot with commit d7bb1099 [1].
14
15 [1] https://source.denx.de/u-boot/u-boot/-/commit/d7bb109900c1ca754a0198b9afb50e3161ffc21e
16
17 Cc: stable@vger.kernel.org
18 Fixes: 8e01fb15b815 ("arm64: dts: mt7986: add Bananapi R3")
19 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
20 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
21 Reviewed-by: Daniel Golle <daniel@makrotopia.org>
22 Link: https://lore.kernel.org/r/20230528113343.7649-1-linux@fw-web.de
23 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
24 ---
25 .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso | 7 +------
26 1 file changed, 1 insertion(+), 6 deletions(-)
27
28 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso
29 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso
30 @@ -27,15 +27,10 @@
31
32 partition@0 {
33 label = "bl2";
34 - reg = <0x0 0x20000>;
35 + reg = <0x0 0x40000>;
36 read-only;
37 };
38
39 - partition@20000 {
40 - label = "reserved";
41 - reg = <0x20000 0x20000>;
42 - };
43 -
44 partition@40000 {
45 label = "u-boot-env";
46 reg = <0x40000 0x40000>;