blob: 90b2274754bb1bff27f5090625df1d5ef0db0975 [file] [log] [blame]
Peng Fanc1ecd032021-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 Ziswilercb9b70f2022-11-07 22:22:38 +010013&soc {
Simon Glass8c103c32023-02-13 08:56:33 -070014 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080015};
16
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010017&aips1 {
Simon Glass8c103c32023-02-13 08:56:33 -070018 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080019};
20
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010021&aips2 {
Simon Glass8c103c32023-02-13 08:56:33 -070022 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080023};
24
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010025&aips3 {
Simon Glass8c103c32023-02-13 08:56:33 -070026 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080027};
28
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010029&aips4 {
Simon Glass8c103c32023-02-13 08:56:33 -070030 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080031};
32
33&iomuxc {
Simon Glass8c103c32023-02-13 08:56:33 -070034 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080035};
36
Peng Fanc1ecd032021-10-22 10:42:16 +080037&binman {
38 u-boot-spl-ddr {
Patrick Wildt440c7d12022-01-13 15:21:24 +010039 align = <4>;
40 align-size = <4>;
Peng Fanc1ecd032021-10-22 10:42:16 +080041 filename = "u-boot-spl-ddr.bin";
42 pad-byte = <0xff>;
Peng Fanc1ecd032021-10-22 10:42:16 +080043
44 u-boot-spl {
45 align-end = <4>;
Patrick Wildt553216f2022-01-13 15:21:47 +010046 filename = "u-boot-spl.bin";
Peng Fanc1ecd032021-10-22 10:42:16 +080047 };
48
Peng Fan25daa2c2022-07-26 16:41:20 +080049 ddr-1d-imem-fw {
Peng Fanc1ecd032021-10-22 10:42:16 +080050 filename = "lpddr4_pmu_train_1d_imem.bin";
Peng Fanc065a6c2022-07-26 16:41:22 +080051 align-end = <4>;
Patrick Wildtea4e9382022-01-13 15:22:41 +010052 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +080053 };
54
Peng Fan25daa2c2022-07-26 16:41:20 +080055 ddr-1d-dmem-fw {
Peng Fanc1ecd032021-10-22 10:42:16 +080056 filename = "lpddr4_pmu_train_1d_dmem.bin";
Peng Fanc065a6c2022-07-26 16:41:22 +080057 align-end = <4>;
Patrick Wildtea4e9382022-01-13 15:22:41 +010058 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +080059 };
60
Peng Fan25daa2c2022-07-26 16:41:20 +080061 ddr-2d-imem-fw {
Peng Fanc1ecd032021-10-22 10:42:16 +080062 filename = "lpddr4_pmu_train_2d_imem.bin";
Peng Fanc065a6c2022-07-26 16:41:22 +080063 align-end = <4>;
Patrick Wildtea4e9382022-01-13 15:22:41 +010064 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +080065 };
66
Peng Fan25daa2c2022-07-26 16:41:20 +080067 ddr-2d-dmem-fw {
Peng Fanc1ecd032021-10-22 10:42:16 +080068 filename = "lpddr4_pmu_train_2d_dmem.bin";
Peng Fanc065a6c2022-07-26 16:41:22 +080069 align-end = <4>;
Patrick Wildtea4e9382022-01-13 15:22:41 +010070 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +080071 };
72 };
73
Patrick Wildtea4e9382022-01-13 15:22:41 +010074 signed-hdmi {
Peng Fanc1ecd032021-10-22 10:42:16 +080075 filename = "signed_hdmi.bin";
76
Patrick Wildtea4e9382022-01-13 15:22:41 +010077 signed-hdmi-imx8m {
Peng Fanc1ecd032021-10-22 10:42:16 +080078 filename = "signed_hdmi_imx8m.bin";
Patrick Wildtea4e9382022-01-13 15:22:41 +010079 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +080080 };
81 };
82
Patrick Wildtb05cebb2022-01-08 16:34:17 +010083 spl {
84 filename = "spl.bin";
85
Peng Fanc1ecd032021-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 Fanc1ecd032021-10-22 10:42:16 +080092 };
Peng Fanc1ecd032021-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";
Marek Vasut6039e0e2023-05-28 23:00:30 +0200100#ifndef CONFIG_IMX_HAB
Peng Fanc1ecd032021-10-22 10:42:16 +0800101 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasut6039e0e2023-05-28 23:00:30 +0200102#endif
Patrick Wildt440c7d12022-01-13 15:21:24 +0100103 #address-cells = <1>;
Peng Fanc1ecd032021-10-22 10:42:16 +0800104
105 images {
106 uboot {
Peng Fanc1ecd032021-10-22 10:42:16 +0800107 arch = "arm64";
108 compression = "none";
Patrick Wildt440c7d12022-01-13 15:21:24 +0100109 description = "U-Boot (64-bit)";
Simon Glass98463902022-10-20 18:22:39 -0600110 load = <CONFIG_TEXT_BASE>;
Patrick Wildt440c7d12022-01-13 15:21:24 +0100111 type = "standalone";
Peng Fanc1ecd032021-10-22 10:42:16 +0800112
Patrick Wildtea4e9382022-01-13 15:22:41 +0100113 uboot-blob {
Peng Fanc1ecd032021-10-22 10:42:16 +0800114 filename = "u-boot-nodtb.bin";
Patrick Wildtea4e9382022-01-13 15:22:41 +0100115 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +0800116 };
117 };
118
Marek Vasut9694c0532022-12-22 01:46:37 +0100119#ifndef CONFIG_ARMV8_PSCI
Peng Fanc1ecd032021-10-22 10:42:16 +0800120 atf {
Peng Fanc1ecd032021-10-22 10:42:16 +0800121 arch = "arm64";
122 compression = "none";
Patrick Wildt440c7d12022-01-13 15:21:24 +0100123 description = "ARM Trusted Firmware";
Peng Fanc1ecd032021-10-22 10:42:16 +0800124 entry = <0x910000>;
Patrick Wildt440c7d12022-01-13 15:21:24 +0100125 load = <0x910000>;
126 type = "firmware";
Peng Fanc1ecd032021-10-22 10:42:16 +0800127
Patrick Wildtea4e9382022-01-13 15:22:41 +0100128 atf-blob {
Peng Fanc1ecd032021-10-22 10:42:16 +0800129 filename = "bl31.bin";
Patrick Wildtea4e9382022-01-13 15:22:41 +0100130 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +0800131 };
132 };
Marek Vasut9694c0532022-12-22 01:46:37 +0100133#endif
Peng Fanc1ecd032021-10-22 10:42:16 +0800134
135 fdt {
Patrick Wildt440c7d12022-01-13 15:21:24 +0100136 compression = "none";
Peng Fanc1ecd032021-10-22 10:42:16 +0800137 description = "NAME";
138 type = "flat_dt";
Peng Fanc1ecd032021-10-22 10:42:16 +0800139
Patrick Wildtea4e9382022-01-13 15:22:41 +0100140 uboot-fdt-blob {
Peng Fanc1ecd032021-10-22 10:42:16 +0800141 filename = "u-boot.dtb";
Patrick Wildtea4e9382022-01-13 15:22:41 +0100142 type = "blob-ext";
Peng Fanc1ecd032021-10-22 10:42:16 +0800143 };
144 };
145 };
146
147 configurations {
148 default = "conf";
149
150 conf {
151 description = "NAME";
Patrick Wildt440c7d12022-01-13 15:21:24 +0100152 fdt = "fdt";
Peng Fanc1ecd032021-10-22 10:42:16 +0800153 firmware = "uboot";
Marek Vasut9694c0532022-12-22 01:46:37 +0100154#ifndef CONFIG_ARMV8_PSCI
Peng Fanc1ecd032021-10-22 10:42:16 +0800155 loadables = "atf";
Marek Vasut9694c0532022-12-22 01:46:37 +0100156#endif
Peng Fanc1ecd032021-10-22 10:42:16 +0800157 };
158 };
159 };
160 };
Patrick Wildtb05cebb2022-01-08 16:34:17 +0100161
162 imx-boot {
163 filename = "flash.bin";
164 pad-byte = <0x00>;
165
Patrick Wildtea4e9382022-01-13 15:22:41 +0100166 spl {
Patrick Wildtb05cebb2022-01-08 16:34:17 +0100167 filename = "spl.bin";
Patrick Wildt440c7d12022-01-13 15:21:24 +0100168 offset = <0x0>;
Patrick Wildtea4e9382022-01-13 15:22:41 +0100169 type = "blob-ext";
Patrick Wildtb05cebb2022-01-08 16:34:17 +0100170 };
171
Patrick Wildtea4e9382022-01-13 15:22:41 +0100172 binman_uboot: uboot {
Patrick Wildtb05cebb2022-01-08 16:34:17 +0100173 filename = "u-boot.itb";
Patrick Wildt440c7d12022-01-13 15:21:24 +0100174 offset = <0x57c00>;
Patrick Wildtea4e9382022-01-13 15:22:41 +0100175 type = "blob-ext";
Patrick Wildtb05cebb2022-01-08 16:34:17 +0100176 };
177 };
Peng Fanc1ecd032021-10-22 10:42:16 +0800178};