blob: 48dbe94f0c4b75003b2fca9d1b9378ab40e72182 [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 Vasutf44c7382024-04-26 01:00:37 +020041 nxp-imx8mimage {
42 filename = "u-boot-spl-mkimage.bin";
43 nxp,boot-from = "sd";
44 nxp,rom-version = <1>;
45 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
46 args; /* Needed by mkimage etype superclass */
Peng Fan4311f5a2021-10-22 10:42:16 +080047
Marek Vasutf44c7382024-04-26 01:00:37 +020048 section {
49 align = <4>;
50 align-size = <4>;
51 filename = "u-boot-spl-ddr.bin";
52 pad-byte = <0xff>;
Peng Fan4311f5a2021-10-22 10:42:16 +080053
Marek Vasutf44c7382024-04-26 01:00:37 +020054 u-boot-spl {
55 align-end = <4>;
56 filename = "u-boot-spl.bin";
57 };
Peng Fan4311f5a2021-10-22 10:42:16 +080058
Marek Vasutf44c7382024-04-26 01:00:37 +020059 ddr-1d-imem-fw {
60 filename = "lpddr4_pmu_train_1d_imem.bin";
61 align-end = <4>;
62 type = "blob-ext";
63 };
Peng Fan4311f5a2021-10-22 10:42:16 +080064
Marek Vasutf44c7382024-04-26 01:00:37 +020065 ddr-1d-dmem-fw {
66 filename = "lpddr4_pmu_train_1d_dmem.bin";
67 align-end = <4>;
68 type = "blob-ext";
69 };
Peng Fan4311f5a2021-10-22 10:42:16 +080070
Marek Vasutf44c7382024-04-26 01:00:37 +020071 ddr-2d-imem-fw {
72 filename = "lpddr4_pmu_train_2d_imem.bin";
73 align-end = <4>;
74 type = "blob-ext";
75 };
Patrick Wildt3d906722022-01-08 16:34:17 +010076
Marek Vasutf44c7382024-04-26 01:00:37 +020077 ddr-2d-dmem-fw {
78 filename = "lpddr4_pmu_train_2d_dmem.bin";
79 align-end = <4>;
80 type = "blob-ext";
81 };
Peng Fan4311f5a2021-10-22 10:42:16 +080082
Marek Vasutf44c7382024-04-26 01:00:37 +020083 signed-hdmi-imx8m {
84 filename = "signed_hdmi_imx8m.bin";
85 type = "blob-ext";
86 };
Peng Fan4311f5a2021-10-22 10:42:16 +080087 };
Peng Fan4311f5a2021-10-22 10:42:16 +080088 };
Peng Fan4311f5a2021-10-22 10:42:16 +080089
90 fit {
91 description = "Configuration to load ATF before U-Boot";
Marek Vasuta7416eb2023-05-28 23:00:30 +020092#ifndef CONFIG_IMX_HAB
Peng Fan4311f5a2021-10-22 10:42:16 +080093 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +020094#endif
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010095 #address-cells = <1>;
Peng Fan4311f5a2021-10-22 10:42:16 +080096
97 images {
98 uboot {
Peng Fan4311f5a2021-10-22 10:42:16 +080099 arch = "arm64";
100 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100101 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -0600102 load = <CONFIG_TEXT_BASE>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100103 type = "standalone";
Peng Fan4311f5a2021-10-22 10:42:16 +0800104
Patrick Wildte5321992022-01-13 15:22:41 +0100105 uboot-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800106 filename = "u-boot-nodtb.bin";
Patrick Wildte5321992022-01-13 15:22:41 +0100107 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800108 };
109 };
110
Marek Vasut1de0eb12022-12-22 01:46:37 +0100111#ifndef CONFIG_ARMV8_PSCI
Peng Fan4311f5a2021-10-22 10:42:16 +0800112 atf {
Peng Fan4311f5a2021-10-22 10:42:16 +0800113 arch = "arm64";
114 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100115 description = "ARM Trusted Firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800116 entry = <0x910000>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100117 load = <0x910000>;
118 type = "firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800119
Patrick Wildte5321992022-01-13 15:22:41 +0100120 atf-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800121 filename = "bl31.bin";
Patrick Wildte5321992022-01-13 15:22:41 +0100122 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800123 };
124 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100125#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800126
127 fdt {
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100128 compression = "none";
Peng Fan4311f5a2021-10-22 10:42:16 +0800129 description = "NAME";
130 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800131
Patrick Wildte5321992022-01-13 15:22:41 +0100132 uboot-fdt-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800133 filename = "u-boot.dtb";
Patrick Wildte5321992022-01-13 15:22:41 +0100134 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800135 };
136 };
137 };
138
139 configurations {
140 default = "conf";
141
142 conf {
143 description = "NAME";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100144 fdt = "fdt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800145 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100146#ifndef CONFIG_ARMV8_PSCI
Peng Fan4311f5a2021-10-22 10:42:16 +0800147 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100148#endif
Peng Fan4311f5a2021-10-22 10:42:16 +0800149 };
150 };
151 };
152 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800153};