blob: 7a8764e463b9fa727f2aa784886a8430bc032a03 [file] [log] [blame]
Simon Glass61b994a2016-11-25 20:16:01 -07001#include <config.h>
2
3/ {
Jagan Teki708b5da2019-01-21 16:01:15 +05304 aliases {
Andre Przywara67854342021-04-16 11:52:27 +01005 mmc0 = &mmc0;
Andre Przywarae32dad22021-11-30 23:18:54 +00006#if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2
Jagan Teki708b5da2019-01-21 16:01:15 +05307 mmc1 = &mmc2;
Icenowy Zheng03510bf2021-07-22 14:30:04 +08008#endif
Jagan Teki708b5da2019-01-21 16:01:15 +05309 };
10
Simon Glasscfa3db62020-09-01 05:14:01 -060011 binman: binman {
12 multiple-images;
13 };
14};
15
Andre Przywara95168d72022-09-06 15:59:57 +010016/* Let U-Boot be the firmware layer that controls the watchdog. */
17#ifdef CONFIG_MACH_SUN8I_R528
18&wdt {
19 status = "okay";
20};
21#endif
22
Simon Glasscfa3db62020-09-01 05:14:01 -060023&binman {
24 u-boot-sunxi-with-spl {
Simon Glass61b994a2016-11-25 20:16:01 -070025 filename = "u-boot-sunxi-with-spl.bin";
26 pad-byte = <0xff>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050027
Simon Glass61b994a2016-11-25 20:16:01 -070028 blob {
Samuel Holland9a4aa312023-01-21 17:25:17 -060029 /*
30 * This value matches SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
31 * and SYS_SPI_U_BOOT_OFFS if those are defined.
32 */
33 min-size = <0x8000>;
Simon Glass61b994a2016-11-25 20:16:01 -070034 filename = "spl/sunxi-spl.bin";
35 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050036
Simon Glasscfa3db62020-09-01 05:14:01 -060037#ifdef CONFIG_ARM64
38 fit {
39 description = "Configuration to load ATF before U-Boot";
40 #address-cells = <1>;
41 fit,fdt-list = "of-list";
42
43 images {
44 uboot {
45 description = "U-Boot (64-bit)";
46 type = "standalone";
Samuel Holland68158d52020-10-21 21:12:14 -050047 os = "u-boot";
Simon Glasscfa3db62020-09-01 05:14:01 -060048 arch = "arm64";
49 compression = "none";
Simon Glass98463902022-10-20 18:22:39 -060050 load = <CONFIG_TEXT_BASE>;
Simon Glasscfa3db62020-09-01 05:14:01 -060051
52 u-boot-nodtb {
53 };
54 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050055
Simon Glasscfa3db62020-09-01 05:14:01 -060056 atf {
57 description = "ARM Trusted Firmware";
58 type = "firmware";
Samuel Holland68158d52020-10-21 21:12:14 -050059 os = "arm-trusted-firmware";
Simon Glasscfa3db62020-09-01 05:14:01 -060060 arch = "arm64";
61 compression = "none";
Samuel Holland53c0ad52023-10-31 00:17:39 -050062 load = <CONFIG_SUNXI_BL31_BASE>;
63 entry = <CONFIG_SUNXI_BL31_BASE>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050064
Simon Glasscfa3db62020-09-01 05:14:01 -060065 atf-bl31 {
Samuel Holland6b7c7ed2020-10-21 21:12:11 -050066 filename = "bl31.bin";
Simon Glass68de0672020-09-06 10:39:10 -060067 missing-msg = "atf-bl31-sunxi";
Simon Glasscfa3db62020-09-01 05:14:01 -060068 };
69 };
70
Samuel Holland53c0ad52023-10-31 00:17:39 -050071#if CONFIG_SUNXI_SCP_BASE
Samuel Hollande72a6be2020-10-21 21:12:16 -050072 scp {
73 description = "SCP firmware";
74 type = "firmware";
75 arch = "or1k";
76 compression = "none";
Samuel Holland53c0ad52023-10-31 00:17:39 -050077 load = <CONFIG_SUNXI_SCP_BASE>;
Samuel Hollande72a6be2020-10-21 21:12:16 -050078
79 scp {
80 filename = "scp.bin";
81 missing-msg = "scp-sunxi";
82 };
83 };
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010084#endif
Samuel Hollande72a6be2020-10-21 21:12:16 -050085
Simon Glasscfa3db62020-09-01 05:14:01 -060086 @fdt-SEQ {
87 description = "NAME";
88 type = "flat_dt";
89 compression = "none";
90 };
91 };
92
93 configurations {
Samuel Hollanded4bc132021-02-08 00:03:16 -060094 default = "@config-DEFAULT-SEQ";
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050095
Simon Glasscfa3db62020-09-01 05:14:01 -060096 @config-SEQ {
97 description = "NAME";
Samuel Holland68158d52020-10-21 21:12:14 -050098 firmware = "atf";
Samuel Holland53c0ad52023-10-31 00:17:39 -050099#if CONFIG_SUNXI_SCP_BASE
Samuel Hollande72a6be2020-10-21 21:12:16 -0500100 loadables = "scp", "uboot";
Samuel Holland53c0ad52023-10-31 00:17:39 -0500101#else
102 loadables = "uboot";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +0100103#endif
Simon Glasscfa3db62020-09-01 05:14:01 -0600104 fdt = "fdt-SEQ";
105 };
106 };
107 };
108#else
Simon Glass61b994a2016-11-25 20:16:01 -0700109 u-boot-img {
Simon Glass61b994a2016-11-25 20:16:01 -0700110 };
Simon Glasscfa3db62020-09-01 05:14:01 -0600111#endif
Simon Glass61b994a2016-11-25 20:16:01 -0700112 };
113};