blob: 9b895a63857afa04591eff155f592aa663b80be9 [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 Vasuta7416eb2023-05-28 23:00:30 +0200109#ifndef CONFIG_IMX_HAB
Marek Vasutfd5c8842024-05-21 12:48:25 +0200110 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200111#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200112 #address-cells = <1>;
Peng Fan4311f5a2021-10-22 10:42:16 +0800113
Fabio Estevamc0bf0ba2024-09-09 16:30:03 -0300114 offset = <0x57c00>;
115
Marek Vasutfd5c8842024-05-21 12:48:25 +0200116 images {
117 uboot {
118 arch = "arm64";
119 compression = "none";
120 description = "U-Boot (64-bit)";
121 load = <CONFIG_TEXT_BASE>;
122 type = "standalone";
Peng Fan4311f5a2021-10-22 10:42:16 +0800123
Marek Vasutfd5c8842024-05-21 12:48:25 +0200124 uboot-blob {
125 filename = "u-boot-nodtb.bin";
126 type = "blob-ext";
127 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800128 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800129
Marek Vasut1de0eb12022-12-22 01:46:37 +0100130#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200131 atf {
132 arch = "arm64";
133 compression = "none";
134 description = "ARM Trusted Firmware";
135 entry = <0x910000>;
136 load = <0x910000>;
137 type = "firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800138
Marek Vasutfd5c8842024-05-21 12:48:25 +0200139 atf-blob {
140 filename = "bl31.bin";
141 type = "blob-ext";
142 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800143 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100144#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800145
Marek Vasutfd5c8842024-05-21 12:48:25 +0200146 fdt {
147 compression = "none";
148 description = "NAME";
149 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800150
Marek Vasutfd5c8842024-05-21 12:48:25 +0200151 uboot-fdt-blob {
152 filename = "u-boot.dtb";
153 type = "blob-ext";
154 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800155 };
156 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800157
Marek Vasutfd5c8842024-05-21 12:48:25 +0200158 configurations {
159 default = "conf";
Peng Fan4311f5a2021-10-22 10:42:16 +0800160
Marek Vasutfd5c8842024-05-21 12:48:25 +0200161 conf {
162 description = "NAME";
163 fdt = "fdt";
164 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100165#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200166 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100167#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200168 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800169 };
170 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200171#ifdef CONFIG_IMX_HAB
Peng Fan4311f5a2021-10-22 10:42:16 +0800172 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200173#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800174 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800175};