blob: 1dc060ce0c266fd288bdd24b37f8c9035fdd95d9 [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 {
8 multiple-images;
9 };
10
11};
12
13&binman {
14 u-boot-spl-ddr {
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010015 align = <4>;
16 align-size = <4>;
Peng Fan4311f5a2021-10-22 10:42:16 +080017 filename = "u-boot-spl-ddr.bin";
18 pad-byte = <0xff>;
Peng Fan4311f5a2021-10-22 10:42:16 +080019
20 u-boot-spl {
21 align-end = <4>;
Patrick Wildt4cbc3b62022-01-13 15:21:47 +010022 filename = "u-boot-spl.bin";
Peng Fan4311f5a2021-10-22 10:42:16 +080023 };
24
Patrick Wildte5321992022-01-13 15:22:41 +010025 1d-imem {
Peng Fan4311f5a2021-10-22 10:42:16 +080026 filename = "lpddr4_pmu_train_1d_imem.bin";
27 size = <0x8000>;
Patrick Wildte5321992022-01-13 15:22:41 +010028 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080029 };
30
Patrick Wildte5321992022-01-13 15:22:41 +010031 1d-dmem {
Peng Fan4311f5a2021-10-22 10:42:16 +080032 filename = "lpddr4_pmu_train_1d_dmem.bin";
33 size = <0x4000>;
Patrick Wildte5321992022-01-13 15:22:41 +010034 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080035 };
36
Patrick Wildte5321992022-01-13 15:22:41 +010037 2d-imem {
Peng Fan4311f5a2021-10-22 10:42:16 +080038 filename = "lpddr4_pmu_train_2d_imem.bin";
39 size = <0x8000>;
Patrick Wildte5321992022-01-13 15:22:41 +010040 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080041 };
42
Patrick Wildte5321992022-01-13 15:22:41 +010043 2d-dmem {
Peng Fan4311f5a2021-10-22 10:42:16 +080044 filename = "lpddr4_pmu_train_2d_dmem.bin";
45 size = <0x4000>;
Patrick Wildte5321992022-01-13 15:22:41 +010046 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080047 };
48 };
49
Patrick Wildte5321992022-01-13 15:22:41 +010050 signed-hdmi {
Peng Fan4311f5a2021-10-22 10:42:16 +080051 filename = "signed_hdmi.bin";
52
Patrick Wildte5321992022-01-13 15:22:41 +010053 signed-hdmi-imx8m {
Peng Fan4311f5a2021-10-22 10:42:16 +080054 filename = "signed_hdmi_imx8m.bin";
Patrick Wildte5321992022-01-13 15:22:41 +010055 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080056 };
57 };
58
Patrick Wildt3d906722022-01-08 16:34:17 +010059 spl {
60 filename = "spl.bin";
61
Peng Fan4311f5a2021-10-22 10:42:16 +080062 mkimage {
63 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
64
65 blob {
66 filename = "u-boot-spl-ddr.bin";
67 };
Peng Fan4311f5a2021-10-22 10:42:16 +080068 };
Peng Fan4311f5a2021-10-22 10:42:16 +080069 };
70
71 itb {
72 filename = "u-boot.itb";
73
74 fit {
75 description = "Configuration to load ATF before U-Boot";
Peng Fan4311f5a2021-10-22 10:42:16 +080076 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010077 #address-cells = <1>;
Peng Fan4311f5a2021-10-22 10:42:16 +080078
79 images {
80 uboot {
Peng Fan4311f5a2021-10-22 10:42:16 +080081 arch = "arm64";
82 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010083 description = "U-Boot (64-bit)";
Peng Fan4311f5a2021-10-22 10:42:16 +080084 load = <CONFIG_SYS_TEXT_BASE>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010085 type = "standalone";
Peng Fan4311f5a2021-10-22 10:42:16 +080086
Patrick Wildte5321992022-01-13 15:22:41 +010087 uboot-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +080088 filename = "u-boot-nodtb.bin";
Patrick Wildte5321992022-01-13 15:22:41 +010089 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +080090 };
91 };
92
93 atf {
Peng Fan4311f5a2021-10-22 10:42:16 +080094 arch = "arm64";
95 compression = "none";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010096 description = "ARM Trusted Firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +080097 entry = <0x910000>;
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +010098 load = <0x910000>;
99 type = "firmware";
Peng Fan4311f5a2021-10-22 10:42:16 +0800100
Patrick Wildte5321992022-01-13 15:22:41 +0100101 atf-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800102 filename = "bl31.bin";
Patrick Wildte5321992022-01-13 15:22:41 +0100103 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800104 };
105 };
106
107 fdt {
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100108 compression = "none";
Peng Fan4311f5a2021-10-22 10:42:16 +0800109 description = "NAME";
110 type = "flat_dt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800111
Patrick Wildte5321992022-01-13 15:22:41 +0100112 uboot-fdt-blob {
Peng Fan4311f5a2021-10-22 10:42:16 +0800113 filename = "u-boot.dtb";
Patrick Wildte5321992022-01-13 15:22:41 +0100114 type = "blob-ext";
Peng Fan4311f5a2021-10-22 10:42:16 +0800115 };
116 };
117 };
118
119 configurations {
120 default = "conf";
121
122 conf {
123 description = "NAME";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100124 fdt = "fdt";
Peng Fan4311f5a2021-10-22 10:42:16 +0800125 firmware = "uboot";
126 loadables = "atf";
Peng Fan4311f5a2021-10-22 10:42:16 +0800127 };
128 };
129 };
130 };
Patrick Wildt3d906722022-01-08 16:34:17 +0100131
132 imx-boot {
133 filename = "flash.bin";
134 pad-byte = <0x00>;
135
Patrick Wildte5321992022-01-13 15:22:41 +0100136 spl {
Patrick Wildt3d906722022-01-08 16:34:17 +0100137 filename = "spl.bin";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100138 offset = <0x0>;
Patrick Wildte5321992022-01-13 15:22:41 +0100139 type = "blob-ext";
Patrick Wildt3d906722022-01-08 16:34:17 +0100140 };
141
Patrick Wildte5321992022-01-13 15:22:41 +0100142 binman_uboot: uboot {
Patrick Wildt3d906722022-01-08 16:34:17 +0100143 filename = "u-boot.itb";
Patrick Wildt3d5ce4e2022-01-13 15:21:24 +0100144 offset = <0x57c00>;
Patrick Wildte5321992022-01-13 15:22:41 +0100145 type = "blob-ext";
Patrick Wildt3d906722022-01-08 16:34:17 +0100146 };
147 };
Peng Fan4311f5a2021-10-22 10:42:16 +0800148};