blob: e1cd6f8996dcba09a33150848d93c5525982e075 [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
Marek Vasutfd5c8842024-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 Fan4311f5a2021-10-22 10:42:16 +0800121
Marek Vasutfd5c8842024-05-21 12:48:25 +0200122 uboot-blob {
123 filename = "u-boot-nodtb.bin";
124 type = "blob-ext";
125 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800126 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800127
Marek Vasut1de0eb12022-12-22 01:46:37 +0100128#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-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 Fan4311f5a2021-10-22 10:42:16 +0800136
Marek Vasutfd5c8842024-05-21 12:48:25 +0200137 atf-blob {
138 filename = "bl31.bin";
139 type = "blob-ext";
140 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800141 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100142#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800143
Marek Vasutfd5c8842024-05-21 12:48:25 +0200144 fdt {
145 compression = "none";
146 description = "NAME";
147 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800148
Marek Vasutfd5c8842024-05-21 12:48:25 +0200149 uboot-fdt-blob {
150 filename = "u-boot.dtb";
151 type = "blob-ext";
152 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800153 };
154 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800155
Marek Vasutfd5c8842024-05-21 12:48:25 +0200156 configurations {
157 default = "conf";
Peng Fan4311f5a2021-10-22 10:42:16 +0800158
Marek Vasutfd5c8842024-05-21 12:48:25 +0200159 conf {
160 description = "NAME";
161 fdt = "fdt";
162 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100163#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200164 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100165#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200166 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800167 };
168 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200169#ifdef CONFIG_IMX_HAB
Peng Fan4311f5a2021-10-22 10:42:16 +0800170 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200171#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800172 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800173};