2020-10-15 21:08:57 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
aliases {
|
|
|
|
i2c0 = &i2c0;
|
|
|
|
i2c1 = &i2c3;
|
|
|
|
i2c2 = &i2c4;
|
2021-10-13 16:14:15 +00:00
|
|
|
ethernet2 = &enetc_port2;
|
|
|
|
ethernet3 = &enetc_port3;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
|
2020-11-18 16:46:01 +00:00
|
|
|
binman: binman {
|
2021-09-29 11:39:10 +00:00
|
|
|
multiple-images;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&binman {
|
|
|
|
u_boot_rom: u-boot-rom {
|
2020-10-15 21:08:57 +00:00
|
|
|
filename = "u-boot.rom";
|
|
|
|
pad-byte = <0xff>;
|
|
|
|
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
|
|
|
|
|
|
|
fit {
|
|
|
|
offset = <CONFIG_SPL_PAD_TO>;
|
|
|
|
description = "FIT image with multiple configurations";
|
2022-02-25 12:51:56 +00:00
|
|
|
fit,fdt-list = "of-list";
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
images {
|
|
|
|
uboot {
|
|
|
|
description = "U-Boot";
|
|
|
|
type = "firmware";
|
|
|
|
os = "u-boot";
|
|
|
|
arch = "arm";
|
|
|
|
compression = "none";
|
2022-10-21 00:22:39 +00:00
|
|
|
load = <CONFIG_TEXT_BASE>;
|
2020-10-15 21:08:57 +00:00
|
|
|
|
|
|
|
u-boot-nodtb {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-02-25 12:51:56 +00:00
|
|
|
@fdt-SEQ {
|
|
|
|
description = "NAME";
|
2020-10-15 21:08:57 +00:00
|
|
|
type = "flat_dt";
|
|
|
|
compression = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
configurations {
|
2022-02-25 12:51:56 +00:00
|
|
|
default = "@config-DEFAULT-SEQ";
|
2021-01-07 23:08:58 +00:00
|
|
|
|
2022-02-25 12:51:56 +00:00
|
|
|
@config-SEQ {
|
|
|
|
description = "NAME";
|
2021-01-07 23:08:58 +00:00
|
|
|
firmware = "uboot";
|
2022-02-25 12:51:56 +00:00
|
|
|
fdt = "fdt-SEQ";
|
2021-01-07 23:08:58 +00:00
|
|
|
};
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-09-29 11:39:10 +00:00
|
|
|
&binman {
|
|
|
|
u-boot-update {
|
2023-09-07 16:00:20 +00:00
|
|
|
filename = "u-boot-update.bin";
|
2021-09-29 11:39:10 +00:00
|
|
|
|
|
|
|
fit {
|
|
|
|
description = "FIT update image";
|
|
|
|
|
|
|
|
images {
|
|
|
|
u-boot-bin {
|
|
|
|
description = "U-Boot";
|
|
|
|
type = "firmware";
|
|
|
|
os = "u-boot";
|
|
|
|
arch = "arm";
|
|
|
|
compression = "none";
|
|
|
|
load = <0>; /* unused */
|
|
|
|
|
|
|
|
blob {
|
|
|
|
filename = "u-boot.rom";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-03-26 18:40:59 +00:00
|
|
|
#ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
|
|
|
|
/ {
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial2:115200n8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2020-11-18 16:46:01 +00:00
|
|
|
#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
|
2021-09-29 11:39:10 +00:00
|
|
|
&u_boot_rom {
|
2020-11-18 16:46:01 +00:00
|
|
|
fit {
|
|
|
|
images {
|
|
|
|
bl31 {
|
|
|
|
description = "ARM Trusted Firmware (bl31)";
|
|
|
|
type = "firmware";
|
|
|
|
arch = "arm";
|
|
|
|
os = "arm-trusted-firmware";
|
|
|
|
compression = "none";
|
|
|
|
load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
|
|
|
|
entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
|
|
|
|
|
|
|
|
blob-ext {
|
|
|
|
filename = "bl31.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
configurations {
|
2022-02-25 12:51:56 +00:00
|
|
|
@config-SEQ {
|
2021-01-07 23:08:58 +00:00
|
|
|
firmware = "bl31";
|
|
|
|
loadables = "uboot";
|
|
|
|
};
|
2020-11-18 16:46:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2020-11-18 16:46:02 +00:00
|
|
|
#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
|
2021-09-29 11:39:10 +00:00
|
|
|
&u_boot_rom {
|
2020-11-18 16:46:02 +00:00
|
|
|
fit {
|
|
|
|
images {
|
|
|
|
bl32 {
|
|
|
|
description = "OP-TEE Trusted OS (bl32)";
|
|
|
|
type = "firmware";
|
|
|
|
arch = "arm";
|
|
|
|
os = "tee";
|
|
|
|
compression = "none";
|
|
|
|
load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
|
|
|
|
entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
|
|
|
|
|
|
|
|
blob-ext {
|
|
|
|
filename = "tee.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
configurations {
|
2022-02-25 12:51:56 +00:00
|
|
|
@config-SEQ {
|
2021-01-07 23:08:58 +00:00
|
|
|
loadables = "uboot", "bl32";
|
|
|
|
};
|
2020-11-18 16:46:02 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2020-10-15 21:08:57 +00:00
|
|
|
&fspi {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
flash@0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&dspi2 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:15 +00:00
|
|
|
&esdhc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&esdhc1 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
|
2021-03-26 18:40:59 +00:00
|
|
|
&lpuart1 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2021-03-26 18:40:59 +00:00
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:15 +00:00
|
|
|
&duart0 {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:25 +00:00
|
|
|
/*
|
|
|
|
* u-boot will enable the device in the linux device tree in place. Because
|
|
|
|
* we are using the linux device tree, we have to enable the PCI controller
|
|
|
|
* ourselves.
|
|
|
|
*/
|
|
|
|
&pcie1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:27 +00:00
|
|
|
&sata {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-10-13 16:14:03 +00:00
|
|
|
&soc {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2021-10-13 16:14:03 +00:00
|
|
|
};
|
|
|
|
|
2020-10-15 21:08:57 +00:00
|
|
|
&sysclk {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2020-10-15 21:08:57 +00:00
|
|
|
};
|