blob: 6a773c1b3d16ea3d57da3e1e25723527e06cb37b [file] [log] [blame]
Robert Nelson39452282023-11-04 03:11:00 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * https://beagleboard.org/ai-64
4 *
5 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
6 * Copyright (C) 2022 Jason Kridner, BeagleBoard.org Foundation
7 * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
8 */
9
10#include "k3-binman.dtsi"
11
12/ {
13 memory@80000000 {
14 bootph-all;
15 };
16
17 /* Keep the LEDs on by default to indicate life */
18 leds {
19 bootph-all;
20 led-0 {
21 default-state = "on";
22 bootph-all;
23 };
24
25 led-1 {
26 default-state = "on";
27 bootph-all;
28 };
29
30 led-2 {
31 default-state = "on";
32 bootph-all;
33 };
34
35 led-3 {
36 default-state = "on";
37 bootph-all;
38 };
39
40 led-4 {
41 default-state = "on";
42 bootph-all;
43 };
44 };
45};
46
47&cbass_main {
48 bootph-all;
49};
50
51&main_navss {
52 bootph-all;
53};
54
55&cbass_mcu_wakeup {
56 bootph-all;
57
58 chipid@43000014 {
59 bootph-all;
60 };
61};
62
63&mcu_navss {
64 bootph-all;
65};
66
Udit Kumar5ec5c972024-09-17 13:43:29 +053067&chipid {
68 bootph-all;
69};
70
Robert Nelson39452282023-11-04 03:11:00 -050071&mcu_ringacc {
72 reg = <0x0 0x2b800000 0x0 0x400000>,
73 <0x0 0x2b000000 0x0 0x400000>,
74 <0x0 0x28590000 0x0 0x100>,
75 <0x0 0x2a500000 0x0 0x40000>,
76 <0x0 0x28440000 0x0 0x40000>;
77 reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target", "cfg";
78 bootph-all;
79};
80
81&mcu_udmap {
82 reg = <0x0 0x285c0000 0x0 0x100>,
83 <0x0 0x284c0000 0x0 0x4000>,
84 <0x0 0x2a800000 0x0 0x40000>,
85 <0x0 0x284a0000 0x0 0x4000>,
86 <0x0 0x2aa00000 0x0 0x40000>,
87 <0x0 0x28400000 0x0 0x2000>;
88 reg-names = "gcfg", "rchan", "rchanrt", "tchan",
89 "tchanrt", "rflow";
90 bootph-all;
91};
92
93&secure_proxy_main {
94 bootph-all;
95};
96
97&dmsc {
98 bootph-all;
Robert Nelson39452282023-11-04 03:11:00 -050099};
100
101&k3_pds {
102 bootph-all;
103};
104
105&k3_clks {
106 bootph-all;
107};
108
109&k3_reset {
110 bootph-all;
111};
112
113&wkup_pmx0 {
114 bootph-all;
115};
116
117&main_pmx0 {
118 bootph-all;
119};
120
121&main_uart0 {
122 bootph-all;
123};
124
125&main_gpio0 {
126 bootph-all;
127};
128
129&main_uart0_pins_default {
130 bootph-all;
131};
132
133&main_sdhci0 {
134 bootph-all;
135};
136
137&main_sdhci1 {
138 bootph-all;
139 sdhci-caps-mask = <0x00000007 0x00000000>;
140 /delete-property/ cd-gpios;
141 /delete-property/ cd-debounce-delay-ms;
142 /delete-property/ ti,fails-without-test-cd;
143 /delete-property/ no-1-8-v;
144};
145
146&main_mmc1_pins_default {
147 bootph-all;
148};
149
150&mcu_cpsw {
151 bootph-all;
152};
153
154&davinci_mdio {
155 bootph-all;
156};
157
158&phy0 {
159 bootph-all;
160};
161
162&serdes2 {
163 bootph-all;
164};
165
166&serdes_ln_ctrl {
167 bootph-all;
168};
169
170&serdes2_usb_link {
171 bootph-all;
172};
173
174&usb_serdes_mux {
175 bootph-all;
Robert Nelson39452282023-11-04 03:11:00 -0500176};
177
178&serdes_wiz2 {
179 bootph-all;
180};
181
182&main_usbss1_pins_default {
183 bootph-all;
184};
185
186&mcu_usbss1_pins_default {
187 bootph-all;
188};
189
190&usbss1 {
191 bootph-all;
192};
193
194&usb1 {
195 bootph-all;
196};
197
198&wkup_i2c0_pins_default {
199 bootph-all;
200};
201
202&wkup_i2c0 {
203 bootph-all;
204};
205
206#ifdef CONFIG_TARGET_J721E_A72_BEAGLEBONEAI64
207
208#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
Udit Kumar04913a92024-12-18 11:25:14 +0530209#define SPL_J721E_BBAI64_DTB "spl/dts/ti/k3-j721e-beagleboneai64.dtb"
Robert Nelson39452282023-11-04 03:11:00 -0500210
211#define UBOOT_NODTB "u-boot-nodtb.bin"
Udit Kumar04913a92024-12-18 11:25:14 +0530212#define J721E_BBAI64_DTB "dts/upstream/src/arm64/ti/k3-j721e-beagleboneai64.dtb"
Robert Nelson39452282023-11-04 03:11:00 -0500213
214&binman {
Robert Nelson39452282023-11-04 03:11:00 -0500215 ti-spl_unsigned {
216 filename = "tispl.bin_unsigned";
217 pad-byte = <0xff>;
218
219 fit {
220 description = "Configuration to load ATF and SPL";
221 #address-cells = <1>;
222
223 images {
224
225 atf {
226 description = "ARM Trusted Firmware";
227 type = "firmware";
228 arch = "arm64";
229 compression = "none";
230 os = "arm-trusted-firmware";
231 load = <CONFIG_K3_ATF_LOAD_ADDR>;
232 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
233 atf-bl31 {
234 filename = "bl31.bin";
235 };
236 };
237
238 tee {
239 description = "OP-TEE";
240 type = "tee";
241 arch = "arm64";
242 compression = "none";
243 os = "tee";
Andrew Davis27df8602024-02-14 10:30:05 -0600244 load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
245 entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
Robert Nelson39452282023-11-04 03:11:00 -0500246 tee-os {
247 filename = "tee-raw.bin";
248 };
249 };
250
251 dm {
252 description = "DM binary";
253 type = "firmware";
254 arch = "arm32";
255 compression = "none";
256 os = "DM";
257 load = <0x89000000>;
258 entry = <0x89000000>;
Andrew Davis7ed4a852025-04-25 17:54:03 -0500259 ti-dm {
260 filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Robert Nelson39452282023-11-04 03:11:00 -0500261 };
262 };
263
264 spl {
265 description = "SPL (64-bit)";
266 type = "standalone";
267 os = "U-Boot";
268 arch = "arm64";
269 compression = "none";
270 load = <CONFIG_SPL_TEXT_BASE>;
271 entry = <CONFIG_SPL_TEXT_BASE>;
272 blob-ext {
273 filename = SPL_NODTB;
274 };
275 };
276
277 fdt-0 {
278 description = "k3-j721e-beagleboneai64";
279 type = "flat_dt";
280 arch = "arm";
281 compression = "none";
282 blob {
283 filename = SPL_J721E_BBAI64_DTB;
284 };
285 };
286 };
287
288 configurations {
289 default = "conf-0";
290
291 conf-0 {
292 description = "k3-j721e-beagleboneai64";
293 firmware = "atf";
294 loadables = "tee", "dm", "spl";
295 fdt = "fdt-0";
296 };
297 };
298 };
299 };
300
301 u-boot_unsigned {
302 filename = "u-boot.img_unsigned";
303 pad-byte = <0xff>;
304
305 fit {
306 description = "FIT image with multiple configurations";
307
308 images {
309 uboot {
310 description = "U-Boot for j721e board";
311 type = "firmware";
312 os = "u-boot";
313 arch = "arm";
314 compression = "none";
315 load = <CONFIG_TEXT_BASE>;
316 blob {
317 filename = UBOOT_NODTB;
318 };
319 hash {
320 algo = "crc32";
321 };
322 };
323
324 fdt-0 {
325 description = "k3-j721e-beagleboneai64";
326 type = "flat_dt";
327 arch = "arm";
328 compression = "none";
329 blob {
330 filename = J721E_BBAI64_DTB;
331 };
332 hash {
333 algo = "crc32";
334 };
335 };
336 };
337
338 configurations {
339 default = "conf-0";
340
341 conf-0 {
342 description = "k3-j721e-beagleboneai64";
343 firmware = "uboot";
344 loadables = "uboot";
345 fdt = "fdt-0";
346 };
347 };
348 };
349 };
350};
Jonathan Humphreys00aa26c2024-05-31 17:51:09 -0500351
352#include "k3-binman-capsule.dtsi"
353
354// Capsule update GUIDs in string form. See beagleboneai64.h
355#define BEAGLEBONEAI64_SPL_IMAGE_GUID_STR "83447222-1e26-40cd-a395-b7de0957e875"
356#define BEAGLEBONEAI64_UBOOT_IMAGE_GUID_STR "4249ff77-c17d-4eb7-a1db-45aa9887d49e"
357
358&capsule_tispl {
359 efi-capsule {
360 image-guid = BEAGLEBONEAI64_SPL_IMAGE_GUID_STR;
361
362 blob {
363 filename = "tispl.bin_unsigned";
364 };
365 };
366};
367
368&capsule_uboot {
369 efi-capsule {
370 image-guid = BEAGLEBONEAI64_UBOOT_IMAGE_GUID_STR;
371 };
372};
373
Robert Nelson39452282023-11-04 03:11:00 -0500374#endif