7c729ad4f7171528b4d3036081372d5115859d8d
[openwrt/openwrt.git] / target / linux / sunxi / patches-5.4 / 400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch
1 From 7d87d3dafc4b1ea5659eb71ee6c5fd5308490d1f Mon Sep 17 00:00:00 2001
2 From: Oskari Lemmela <oskari@lemmela.net>
3 Date: Mon, 31 Dec 2018 07:44:49 +0200
4 Subject: [PATCH] arm64: allwinner: a64-sopine: Add Sopine flash partitions.
5
6 First 896kB to u-boot. Enough space for SPL, u-boot and ATF.
7 Next 128kB to u-boot environment and rest to firmware.
8
9 Firmware partition is compatible FIT image dynamic splitting.
10
11 Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
12 ---
13 .../boot/dts/allwinner/sun50i-a64-sopine.dtsi | 22 +++++++++++++++++++
14 1 file changed, 22 insertions(+)
15
16 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
17 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
18 @@ -82,6 +82,28 @@
19 compatible = "jedec,spi-nor";
20 reg = <0>;
21 spi-max-frequency = <40000000>;
22 +
23 + partitions {
24 + compatible = "fixed-partitions";
25 + #address-cells = <1>;
26 + #size-cells = <1>;
27 +
28 + partition@0 {
29 + label = "u-boot";
30 + reg = <0x000000 0x0E0000>;
31 + };
32 +
33 + partition@e0000 {
34 + label = "u-boot-env";
35 + reg = <0x0E0000 0x020000>;
36 + };
37 +
38 + partition@100000 {
39 + compatible = "denx,fit";
40 + label = "firmware";
41 + reg = <0x100000 0xF00000>;
42 + };
43 + };
44 };
45 };
46