blob: 2bc9f413da09f0f548846fbacc949bc49b6efe59 [file] [log] [blame]
Peng Fan4311f5a2021-10-22 10:42:16 +08001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2021 NXP
4 */
5
6/ {
7 binman: binman {
8 multiple-images;
9 };
10
11};
12
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010013&soc {
Peng Fanbd4beeb2022-05-05 15:43:38 +080014 u-boot,dm-spl;
15};
16
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010017&aips1 {
Peng Fanbd4beeb2022-05-05 15:43:38 +080018 u-boot,dm-spl;
19};
20
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010021&aips2 {
Peng Fanbd4beeb2022-05-05 15:43:38 +080022 u-boot,dm-spl;
23};
24
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010025&aips3 {
Peng Fanbd4beeb2022-05-05 15:43:38 +080026 u-boot,dm-spl;
27};
28
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010029&aips4 {
Peng Fanbd4beeb2022-05-05 15:43:38 +080030 u-boot,dm-spl;
31};
32
33&iomuxc {
34 u-boot,dm-spl;
35};
36
Peng Fan4311f5a2021-10-22 10:42:16 +080037&binman {
38 u-boot-spl-ddr {
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010039 align = <4>;
40 align-size = <4>;
Peng Fan4311f5a2021-10-22 10:42:16 +080041 filename = "u-boot-spl-ddr.bin";
42 pad-byte = <0xff>;
Peng Fan4311f5a2021-10-22 10:42:16 +080043
44 u-boot-spl {
45 align-end = <4>;
Patrick Wildt4cbc3b62022-01-13 15:21:47 +010046 filename = "u-boot-spl.bin";
Peng Fan4311f5a2021-10-22 10:42:16 +080047 };
48
Peng Fan5db610f42022-07-26 16:41:20 +080049 ddr-1d-imem-fw {
Peng Fan4311f5a2021-10-22 10:42:16 +080050 filename = "lpddr4_pmu_train_1d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080051 align-end = <4>;
Patrick Wildte5321992022-01-13 15:22:41 +010052 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080053 };
54
Peng Fan5db610f42022-07-26 16:41:20 +080055 ddr-1d-dmem-fw {
Peng Fan4311f5a2021-10-22 10:42:16 +080056 filename = "lpddr4_pmu_train_1d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080057 align-end = <4>;
Patrick Wildte5321992022-01-13 15:22:41 +010058 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080059 };
60
Peng Fan5db610f42022-07-26 16:41:20 +080061 ddr-2d-imem-fw {
Peng Fan4311f5a2021-10-22 10:42:16 +080062 filename = "lpddr4_pmu_train_2d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080063 align-end = <4>;
Patrick Wildte5321992022-01-13 15:22:41 +010064 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080065 };
66
Peng Fan5db610f42022-07-26 16:41:20 +080067 ddr-2d-dmem-fw {
Peng Fan4311f5a2021-10-22 10:42:16 +080068 filename = "lpddr4_pmu_train_2d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080069 align-end = <4>;
Patrick Wildte5321992022-01-13 15:22:41 +010070 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080071 };
72 };
73
Patrick Wildte5321992022-01-13 15:22:41 +010074 signed-hdmi {
Peng Fan4311f5a2021-10-22 10:42:16 +080075 filename = "signed_hdmi.bin";
76
Patrick Wildte5321992022-01-13 15:22:41 +010077 signed-hdmi-imx8m {
Peng Fan4311f5a2021-10-22 10:42:16 +080078 filename = "signed_hdmi_imx8m.bin";
Patrick Wildte5321992022-01-13 15:22:41 +010079 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080080 };
81 };
82
Patrick Wildt3d906722022-01-08 16:34:17 +010083 spl {
84 filename = "spl.bin";
85
Peng Fan4311f5a2021-10-22 10:42:16 +080086 mkimage {
87 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
88
89 blob {
90 filename = "u-boot-spl-ddr.bin";
91 };
Peng Fan4311f5a2021-10-22 10:42:16 +080092 };
Peng Fan4311f5a2021-10-22 10:42:16 +080093 };
94
95 itb {
96 filename = "u-boot.itb";
97
98 fit {
99 description = "Configuration to load ATF before U-Boot";
Peng Fan4311f5a2021-10-22 10:42:16 +0800100 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100101 #address-cells = <1>;
Peng Fan4311f5a2021-10-22 10:42:16 +0800102
103 images {
104 uboot {
Peng Fan4311f5a2021-10-22 10:42:16 +0800105 arch = "arm64";
106 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100107 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -0600108 load = <CONFIG_TEXT_BASE>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100109 type = "standalone";
Peng Fan4311f5a2021-10-22 10:42:16 +0800110
Patrick Wildte5321992022-01-13 15:22:41 +0100111 uboot-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800112 filename = "u-boot-nodtb.bin";
Patrick Wildte5321992022-01-13 15:22:41 +0100113 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800114 };
115 };
116
Marek Vasut1de0eb12022-12-22 01:46:37 +0100117#ifndef CONFIG_ARMV8_PSCI
Peng Fan4311f5a2021-10-22 10:42:16 +0800118 atf {
Peng Fan4311f5a2021-10-22 10:42:16 +0800119 arch = "arm64";
120 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100121 description = "ARM Trusted Firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800122 entry = <0x910000>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100123 load = <0x910000>;
124 type = "firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800125
Patrick Wildte5321992022-01-13 15:22:41 +0100126 atf-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800127 filename = "bl31.bin";
Patrick Wildte5321992022-01-13 15:22:41 +0100128 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800129 };
130 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100131#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800132
133 fdt {
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100134 compression = "none";
Peng Fan4311f5a2021-10-22 10:42:16 +0800135 description = "NAME";
136 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800137
Patrick Wildte5321992022-01-13 15:22:41 +0100138 uboot-fdt-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800139 filename = "u-boot.dtb";
Patrick Wildte5321992022-01-13 15:22:41 +0100140 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800141 };
142 };
143 };
144
145 configurations {
146 default = "conf";
147
148 conf {
149 description = "NAME";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100150 fdt = "fdt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800151 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100152#ifndef CONFIG_ARMV8_PSCI
Peng Fan4311f5a2021-10-22 10:42:16 +0800153 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100154#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800155 };
156 };
157 };
158 };
Patrick Wildt3d906722022-01-08 16:34:17 +0100159
160 imx-boot {
161 filename = "flash.bin";
162 pad-byte = <0x00>;
163
Patrick Wildte5321992022-01-13 15:22:41 +0100164 spl {
Patrick Wildt3d906722022-01-08 16:34:17 +0100165 filename = "spl.bin";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100166 offset = <0x0>;
Patrick Wildte5321992022-01-13 15:22:41 +0100167 type = "blob-ext";
Patrick Wildt3d906722022-01-08 16:34:17 +0100168 };
169
Patrick Wildte5321992022-01-13 15:22:41 +0100170 binman_uboot: uboot {
Patrick Wildt3d906722022-01-08 16:34:17 +0100171 filename = "u-boot.itb";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100172 offset = <0x57c00>;
Patrick Wildte5321992022-01-13 15:22:41 +0100173 type = "blob-ext";
Patrick Wildt3d906722022-01-08 16:34:17 +0100174 };
175 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800176};