Merge tag 'u-boot-rockchip-20201031' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / arch / arm / dts / sunxi-u-boot.dtsi
1 #include <config.h>
2
3 #ifdef CONFIG_MACH_SUN50I_H6
4 #define BL31_ADDR 0x104000
5 #define  SCP_ADDR 0x114000
6 #else
7 #define BL31_ADDR  0x44000
8 #define  SCP_ADDR  0x50000
9 #endif
10
11 / {
12         aliases {
13                 mmc1 = &mmc2;
14         };
15
16         binman: binman {
17                 multiple-images;
18         };
19 };
20
21 &binman {
22         u-boot-sunxi-with-spl {
23                 filename = "u-boot-sunxi-with-spl.bin";
24                 pad-byte = <0xff>;
25
26                 blob {
27                         filename = "spl/sunxi-spl.bin";
28                 };
29
30 #ifdef CONFIG_ARM64
31                 fit {
32                         description = "Configuration to load ATF before U-Boot";
33                         #address-cells = <1>;
34                         fit,fdt-list = "of-list";
35
36                         images {
37                                 uboot {
38                                         description = "U-Boot (64-bit)";
39                                         type = "standalone";
40                                         os = "u-boot";
41                                         arch = "arm64";
42                                         compression = "none";
43                                         load = <0x4a000000>;
44
45                                         u-boot-nodtb {
46                                         };
47                                 };
48
49                                 atf {
50                                         description = "ARM Trusted Firmware";
51                                         type = "firmware";
52                                         os = "arm-trusted-firmware";
53                                         arch = "arm64";
54                                         compression = "none";
55                                         load = <BL31_ADDR>;
56                                         entry = <BL31_ADDR>;
57
58                                         atf-bl31 {
59                                                 filename = "bl31.bin";
60                                                 missing-msg = "atf-bl31-sunxi";
61                                         };
62                                 };
63
64                                 scp {
65                                         description = "SCP firmware";
66                                         type = "firmware";
67                                         arch = "or1k";
68                                         compression = "none";
69                                         load = <SCP_ADDR>;
70
71                                         scp {
72                                                 filename = "scp.bin";
73                                                 missing-msg = "scp-sunxi";
74                                         };
75                                 };
76
77                                 @fdt-SEQ {
78                                         description = "NAME";
79                                         type = "flat_dt";
80                                         compression = "none";
81                                 };
82                         };
83
84                         configurations {
85                                 default = "config-1";
86
87                                 @config-SEQ {
88                                         description = "NAME";
89                                         firmware = "atf";
90                                         loadables = "scp", "uboot";
91                                         fdt = "fdt-SEQ";
92                                 };
93                         };
94                 };
95 #else
96                 u-boot-img {
97                         offset = <CONFIG_SPL_PAD_TO>;
98                 };
99 #endif
100         };
101 };