blob: 2dcb3c2a58f181c56a8e61261198692ed9293daf [file] [log] [blame]
Michael Walle4ceb5c62020-10-15 23:08:57 +02001// SPDX-License-Identifier: GPL-2.0+
2
3#include <config.h>
4
5/ {
6 aliases {
Michael Walle4ceb5c62020-10-15 23:08:57 +02007 i2c0 = &i2c0;
8 i2c1 = &i2c3;
9 i2c2 = &i2c4;
Michael Wallec816dd02021-10-13 18:14:15 +020010 ethernet2 = &enetc_port2;
11 ethernet3 = &enetc_port3;
Michael Walle4ceb5c62020-10-15 23:08:57 +020012 };
13
Michael Wallee0577602020-11-18 17:46:01 +010014 binman: binman {
Michael Walled8ffd932021-09-29 13:39:10 +020015 multiple-images;
16 };
17};
18
19&binman {
20 u_boot_rom: u-boot-rom {
Michael Walle4ceb5c62020-10-15 23:08:57 +020021 filename = "u-boot.rom";
22 pad-byte = <0xff>;
23
24 u-boot-spl {
25 };
26
27 fit {
28 offset = <CONFIG_SPL_PAD_TO>;
29 description = "FIT image with multiple configurations";
Michael Walle554a8532022-02-25 18:21:56 +053030 fit,fdt-list = "of-list";
Michael Walle4ceb5c62020-10-15 23:08:57 +020031
32 images {
33 uboot {
34 description = "U-Boot";
35 type = "firmware";
36 os = "u-boot";
37 arch = "arm";
38 compression = "none";
39 load = <CONFIG_SYS_TEXT_BASE>;
40
41 u-boot-nodtb {
42 };
43 };
44
Michael Walle554a8532022-02-25 18:21:56 +053045 @fdt-SEQ {
46 description = "NAME";
Michael Walle4ceb5c62020-10-15 23:08:57 +020047 type = "flat_dt";
Michael Walle4ceb5c62020-10-15 23:08:57 +020048 compression = "none";
Michael Walle4ceb5c62020-10-15 23:08:57 +020049 };
50 };
51
52 configurations {
Michael Walle554a8532022-02-25 18:21:56 +053053 default = "@config-DEFAULT-SEQ";
Michael Walle4ceb5c62020-10-15 23:08:57 +020054
Michael Walle554a8532022-02-25 18:21:56 +053055 @config-SEQ {
56 description = "NAME";
Michael Walle4ceb5c62020-10-15 23:08:57 +020057 firmware = "uboot";
Michael Walle554a8532022-02-25 18:21:56 +053058 fdt = "fdt-SEQ";
Michael Walleb4630102021-01-08 00:08:58 +010059 };
Michael Walle4ceb5c62020-10-15 23:08:57 +020060 };
61 };
62 };
63};
64
Michael Walled8ffd932021-09-29 13:39:10 +020065&binman {
66 u-boot-update {
67 filename = "u-boot.update";
68
69 fit {
70 description = "FIT update image";
71
72 images {
73 u-boot-bin {
74 description = "U-Boot";
75 type = "firmware";
76 os = "u-boot";
77 arch = "arm";
78 compression = "none";
79 load = <0>; /* unused */
80
81 blob {
82 filename = "u-boot.rom";
83 };
84 };
85 };
86 };
87 };
88};
89
Michael Walle9b3843f2021-03-26 19:40:59 +010090#ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
91/ {
92 chosen {
93 stdout-path = "serial2:115200n8";
94 };
95};
96#endif
97
Michael Wallee0577602020-11-18 17:46:01 +010098#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
Michael Walled8ffd932021-09-29 13:39:10 +020099&u_boot_rom {
Michael Wallee0577602020-11-18 17:46:01 +0100100 fit {
101 images {
102 bl31 {
103 description = "ARM Trusted Firmware (bl31)";
104 type = "firmware";
105 arch = "arm";
106 os = "arm-trusted-firmware";
107 compression = "none";
108 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
109 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
110
111 blob-ext {
112 filename = "bl31.bin";
113 };
114 };
115 };
116
117 configurations {
Michael Walle554a8532022-02-25 18:21:56 +0530118 @config-SEQ {
Michael Walleb4630102021-01-08 00:08:58 +0100119 firmware = "bl31";
120 loadables = "uboot";
121 };
Michael Wallee0577602020-11-18 17:46:01 +0100122 };
123 };
124};
125#endif
126
Michael Walle4c450da2020-11-18 17:46:02 +0100127#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
Michael Walled8ffd932021-09-29 13:39:10 +0200128&u_boot_rom {
Michael Walle4c450da2020-11-18 17:46:02 +0100129 fit {
130 images {
131 bl32 {
132 description = "OP-TEE Trusted OS (bl32)";
133 type = "firmware";
134 arch = "arm";
135 os = "tee";
136 compression = "none";
137 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
138 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
139
140 blob-ext {
141 filename = "tee.bin";
142 };
143 };
144 };
145
146 configurations {
Michael Walle554a8532022-02-25 18:21:56 +0530147 @config-SEQ {
Michael Walleb4630102021-01-08 00:08:58 +0100148 loadables = "uboot", "bl32";
149 };
Michael Walle4c450da2020-11-18 17:46:02 +0100150 };
151 };
152};
153#endif
154
Michael Walle4ceb5c62020-10-15 23:08:57 +0200155&fspi {
156 u-boot,dm-pre-reloc;
157 flash@0 {
158 u-boot,dm-pre-reloc;
159 };
160};
161
162&dspi2 {
163 u-boot,dm-pre-reloc;
164};
165
Michael Wallec816dd02021-10-13 18:14:15 +0200166&esdhc {
Michael Walle4ceb5c62020-10-15 23:08:57 +0200167 u-boot,dm-pre-reloc;
168};
169
170&esdhc1 {
171 u-boot,dm-pre-reloc;
172};
173
Michael Walle9b3843f2021-03-26 19:40:59 +0100174&lpuart1 {
175 u-boot,dm-pre-reloc;
176};
177
Michael Wallec816dd02021-10-13 18:14:15 +0200178&duart0 {
Michael Walle4ceb5c62020-10-15 23:08:57 +0200179 u-boot,dm-pre-reloc;
180};
181
Michael Walled08011d2021-10-13 18:14:25 +0200182/*
183 * u-boot will enable the device in the linux device tree in place. Because
184 * we are using the linux device tree, we have to enable the PCI controller
185 * ourselves.
186 */
187&pcie1 {
188 status = "okay";
189};
190
191&pcie2 {
192 status = "okay";
193};
194
Michael Wallec7155d22021-10-13 18:14:27 +0200195&sata {
196 status = "okay";
197};
198
Michael Wallecd80d5d2021-10-13 18:14:03 +0200199&soc {
200 u-boot,dm-pre-reloc;
201};
202
Michael Walle4ceb5c62020-10-15 23:08:57 +0200203&sysclk {
204 u-boot,dm-pre-reloc;
205};