blob: e1cd6f8996dcba09a33150848d93c5525982e075 [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 {
Peng Fanc1ecd032021-10-22 10:42:16 +08008 };
9
10};
11
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010012&soc {
Simon Glass8c103c32023-02-13 08:56:33 -070013 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080014};
15
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010016&aips1 {
Simon Glass8c103c32023-02-13 08:56:33 -070017 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080018};
19
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010020&aips2 {
Simon Glass8c103c32023-02-13 08:56:33 -070021 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080022};
23
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010024&aips3 {
Simon Glass8c103c32023-02-13 08:56:33 -070025 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080026};
27
Marcel Ziswilercb9b70f2022-11-07 22:22:38 +010028&aips4 {
Simon Glass8c103c32023-02-13 08:56:33 -070029 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080030};
31
32&iomuxc {
Simon Glass8c103c32023-02-13 08:56:33 -070033 bootph-pre-ram;
Peng Fan56f38882022-05-05 15:43:38 +080034};
35
Peng Fanc1ecd032021-10-22 10:42:16 +080036&binman {
Marek Vasut37e50622024-04-26 01:00:37 +020037 filename = "flash.bin";
38 section {
39 pad-byte = <0x00>;
Peng Fanc1ecd032021-10-22 10:42:16 +080040
Marek Vasutd415a482024-05-21 12:48:25 +020041#ifdef CONFIG_IMX_HAB
42 nxp-imx8mcst@0 {
43 filename = "u-boot-spl-mkimage.signed.bin";
Marek Vasut37e50622024-04-26 01:00:37 +020044 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
Marek Vasutd415a482024-05-21 12:48:25 +020045 nxp,unlock;
Marek Vasut37e50622024-04-26 01:00:37 +020046 args; /* Needed by mkimage etype superclass */
Marek Vasutd415a482024-05-21 12:48:25 +020047#endif
Peng Fanc1ecd032021-10-22 10:42:16 +080048
Marek Vasutd415a482024-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 */
Marek Vasut37e50622024-04-26 01:00:37 +020055
Marek Vasutd415a482024-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>;
Marek Vasut37e50622024-04-26 01:00:37 +020061
Marek Vasutd415a482024-05-21 12:48:25 +020062 u-boot-spl {
63 align-end = <4>;
64 filename = "u-boot-spl.bin";
65 };
Marek Vasut37e50622024-04-26 01:00:37 +020066
Marek Vasutd415a482024-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 };
Marek Vasut37e50622024-04-26 01:00:37 +020072
Marek Vasutd415a482024-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 };
Marek Vasut37e50622024-04-26 01:00:37 +020078
Marek Vasutd415a482024-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 };
Marek Vasut37e50622024-04-26 01:00:37 +020084
Marek Vasutd415a482024-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 Vasut37e50622024-04-26 01:00:37 +020095 };
Peng Fanc1ecd032021-10-22 10:42:16 +080096 };
Marek Vasutd415a482024-05-21 12:48:25 +020097#ifdef CONFIG_IMX_HAB
Peng Fanc1ecd032021-10-22 10:42:16 +080098 };
Peng Fanc1ecd032021-10-22 10:42:16 +080099
Marek Vasutd415a482024-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 Vasut6039e0e2023-05-28 23:00:30 +0200109#ifndef CONFIG_IMX_HAB
Marek Vasutd415a482024-05-21 12:48:25 +0200110 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasut6039e0e2023-05-28 23:00:30 +0200111#endif
Marek Vasutd415a482024-05-21 12:48:25 +0200112 #address-cells = <1>;
Peng Fanc1ecd032021-10-22 10:42:16 +0800113
Marek Vasutd415a482024-05-21 12:48:25 +0200114 images {
115 uboot {
116 arch = "arm64";
117 compression = "none";
118 description = "U-Boot (64-bit)";
119 load = <CONFIG_TEXT_BASE>;
120 type = "standalone";
Peng Fanc1ecd032021-10-22 10:42:16 +0800121
Marek Vasutd415a482024-05-21 12:48:25 +0200122 uboot-blob {
123 filename = "u-boot-nodtb.bin";
124 type = "blob-ext";
125 };
Peng Fanc1ecd032021-10-22 10:42:16 +0800126 };
Peng Fanc1ecd032021-10-22 10:42:16 +0800127
Marek Vasut9694c0532022-12-22 01:46:37 +0100128#ifndef CONFIG_ARMV8_PSCI
Marek Vasutd415a482024-05-21 12:48:25 +0200129 atf {
130 arch = "arm64";
131 compression = "none";
132 description = "ARM Trusted Firmware";
133 entry = <0x910000>;
134 load = <0x910000>;
135 type = "firmware";
Peng Fanc1ecd032021-10-22 10:42:16 +0800136
Marek Vasutd415a482024-05-21 12:48:25 +0200137 atf-blob {
138 filename = "bl31.bin";
139 type = "blob-ext";
140 };
Peng Fanc1ecd032021-10-22 10:42:16 +0800141 };
Marek Vasut9694c0532022-12-22 01:46:37 +0100142#endif
Peng Fanc1ecd032021-10-22 10:42:16 +0800143
Marek Vasutd415a482024-05-21 12:48:25 +0200144 fdt {
145 compression = "none";
146 description = "NAME";
147 type = "flat_dt";
Peng Fanc1ecd032021-10-22 10:42:16 +0800148
Marek Vasutd415a482024-05-21 12:48:25 +0200149 uboot-fdt-blob {
150 filename = "u-boot.dtb";
151 type = "blob-ext";
152 };
153 };
154 };
155
156 configurations {
157 default = "conf";
158
159 conf {
160 description = "NAME";
161 fdt = "fdt";
162 firmware = "uboot";
163#ifndef CONFIG_ARMV8_PSCI
164 loadables = "atf";
165#endif
Peng Fanc1ecd032021-10-22 10:42:16 +0800166 };
167 };
168 };
Marek Vasutd415a482024-05-21 12:48:25 +0200169#ifdef CONFIG_IMX_HAB
Peng Fanc1ecd032021-10-22 10:42:16 +0800170 };
Marek Vasutd415a482024-05-21 12:48:25 +0200171#endif
Peng Fanc1ecd032021-10-22 10:42:16 +0800172 };
Peng Fanc1ecd032021-10-22 10:42:16 +0800173};