blob: d7a83a78f4d3db9c5e483a29cd50031580db3e4b [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 {
Peng Fan4311f5a2021-10-22 10:42:16 +08008 };
9
10};
11
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010012&soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070013 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080014};
15
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010016&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070017 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080018};
19
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010020&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070021 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080022};
23
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010024&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070025 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080026};
27
Marcel Ziswiler5b427d82022-11-07 22:22:38 +010028&aips4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080030};
31
32&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070033 bootph-pre-ram;
Peng Fanbd4beeb2022-05-05 15:43:38 +080034};
35
Peng Fan4311f5a2021-10-22 10:42:16 +080036&binman {
Marek Vasutf44c7382024-04-26 01:00:37 +020037 filename = "flash.bin";
38 section {
39 pad-byte = <0x00>;
Peng Fan4311f5a2021-10-22 10:42:16 +080040
Marek Vasutfd5c8842024-05-21 12:48:25 +020041#ifdef CONFIG_IMX_HAB
42 nxp-imx8mcst@0 {
43 filename = "u-boot-spl-mkimage.signed.bin";
Marek Vasutf44c7382024-04-26 01:00:37 +020044 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
Marek Vasutfd5c8842024-05-21 12:48:25 +020045 nxp,unlock;
Marek Vasutf44c7382024-04-26 01:00:37 +020046 args; /* Needed by mkimage etype superclass */
Marek Vasutfd5c8842024-05-21 12:48:25 +020047#endif
Peng Fan4311f5a2021-10-22 10:42:16 +080048
Marek Vasutfd5c8842024-05-21 12:48:25 +020049 binman_imx_spl: nxp-imx8mimage {
50 filename = "u-boot-spl-mkimage.bin";
51 nxp,boot-from = "sd";
52 nxp,rom-version = <1>;
53 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
54 args; /* Needed by mkimage etype superclass */
Peng Fan4311f5a2021-10-22 10:42:16 +080055
Marek Vasutfd5c8842024-05-21 12:48:25 +020056 section {
57 align = <4>;
58 align-size = <4>;
59 filename = "u-boot-spl-ddr.bin";
60 pad-byte = <0xff>;
Peng Fan4311f5a2021-10-22 10:42:16 +080061
Marek Vasutfd5c8842024-05-21 12:48:25 +020062 u-boot-spl {
63 align-end = <4>;
64 filename = "u-boot-spl.bin";
65 };
Peng Fan4311f5a2021-10-22 10:42:16 +080066
Marek Vasutfd5c8842024-05-21 12:48:25 +020067 ddr-1d-imem-fw {
68 filename = "lpddr4_pmu_train_1d_imem.bin";
69 align-end = <4>;
70 type = "blob-ext";
71 };
Peng Fan4311f5a2021-10-22 10:42:16 +080072
Marek Vasutfd5c8842024-05-21 12:48:25 +020073 ddr-1d-dmem-fw {
74 filename = "lpddr4_pmu_train_1d_dmem.bin";
75 align-end = <4>;
76 type = "blob-ext";
77 };
Patrick Wildt3d906722022-01-08 16:34:17 +010078
Marek Vasutfd5c8842024-05-21 12:48:25 +020079 ddr-2d-imem-fw {
80 filename = "lpddr4_pmu_train_2d_imem.bin";
81 align-end = <4>;
82 type = "blob-ext";
83 };
Peng Fan4311f5a2021-10-22 10:42:16 +080084
Marek Vasutfd5c8842024-05-21 12:48:25 +020085 ddr-2d-dmem-fw {
86 filename = "lpddr4_pmu_train_2d_dmem.bin";
87 align-end = <4>;
88 type = "blob-ext";
89 };
90
91 signed-hdmi-imx8m {
92 filename = "signed_hdmi_imx8m.bin";
93 type = "blob-ext";
94 };
Marek Vasutf44c7382024-04-26 01:00:37 +020095 };
Peng Fan4311f5a2021-10-22 10:42:16 +080096 };
Marek Vasutfd5c8842024-05-21 12:48:25 +020097#ifdef CONFIG_IMX_HAB
Peng Fan4311f5a2021-10-22 10:42:16 +080098 };
Peng Fan4311f5a2021-10-22 10:42:16 +080099
Marek Vasutfd5c8842024-05-21 12:48:25 +0200100 nxp-imx8mcst@1 {
101 filename = "u-boot-fit.signed.bin";
102 nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
103 offset = <0x58000>;
104 args; /* Needed by mkimage etype superclass */
105#endif
106
107 binman_imx_fit: fit {
108 description = "Configuration to load ATF before U-Boot";
Marek Vasut2b938212024-09-24 15:02:09 +0200109 filename = "u-boot.itb";
Marek Vasuta7416eb2023-05-28 23:00:30 +0200110#ifndef CONFIG_IMX_HAB
Marek Vasutfd5c8842024-05-21 12:48:25 +0200111 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200112#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200113 #address-cells = <1>;
Peng Fan4311f5a2021-10-22 10:42:16 +0800114
Fabio Estevamc0bf0ba2024-09-09 16:30:03 -0300115 offset = <0x57c00>;
116
Marek Vasutfd5c8842024-05-21 12:48:25 +0200117 images {
118 uboot {
119 arch = "arm64";
120 compression = "none";
121 description = "U-Boot (64-bit)";
122 load = <CONFIG_TEXT_BASE>;
123 type = "standalone";
Peng Fan4311f5a2021-10-22 10:42:16 +0800124
Marek Vasutfd5c8842024-05-21 12:48:25 +0200125 uboot-blob {
126 filename = "u-boot-nodtb.bin";
127 type = "blob-ext";
128 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800129 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800130
Marek Vasut1de0eb12022-12-22 01:46:37 +0100131#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200132 atf {
133 arch = "arm64";
134 compression = "none";
135 description = "ARM Trusted Firmware";
136 entry = <0x910000>;
137 load = <0x910000>;
138 type = "firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800139
Marek Vasutfd5c8842024-05-21 12:48:25 +0200140 atf-blob {
141 filename = "bl31.bin";
142 type = "blob-ext";
143 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800144 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100145#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800146
Marek Vasutfd5c8842024-05-21 12:48:25 +0200147 fdt {
148 compression = "none";
149 description = "NAME";
150 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800151
Marek Vasutfd5c8842024-05-21 12:48:25 +0200152 uboot-fdt-blob {
153 filename = "u-boot.dtb";
154 type = "blob-ext";
155 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800156 };
157 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800158
Marek Vasutfd5c8842024-05-21 12:48:25 +0200159 configurations {
160 default = "conf";
Peng Fan4311f5a2021-10-22 10:42:16 +0800161
Marek Vasutfd5c8842024-05-21 12:48:25 +0200162 conf {
163 description = "NAME";
164 fdt = "fdt";
165 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100166#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200167 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100168#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200169 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800170 };
171 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200172#ifdef CONFIG_IMX_HAB
Peng Fan4311f5a2021-10-22 10:42:16 +0800173 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200174#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800175 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800176};