Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * Copyright 2021 NXP | ||||
4 | */ | ||||
5 | |||||
6 | / { | ||||
7 | binman: binman { | ||||
8 | multiple-images; | ||||
9 | }; | ||||
10 | |||||
11 | }; | ||||
12 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 13 | &soc { |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 14 | u-boot,dm-spl; |
15 | }; | ||||
16 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 17 | &aips1 { |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 18 | u-boot,dm-spl; |
19 | }; | ||||
20 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 21 | &aips2 { |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 22 | u-boot,dm-spl; |
23 | }; | ||||
24 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 25 | &aips3 { |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 26 | u-boot,dm-spl; |
27 | }; | ||||
28 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 29 | &aips4 { |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 30 | u-boot,dm-spl; |
31 | }; | ||||
32 | |||||
33 | &iomuxc { | ||||
34 | u-boot,dm-spl; | ||||
35 | }; | ||||
36 | |||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 37 | &binman { |
38 | u-boot-spl-ddr { | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 39 | align = <4>; |
40 | align-size = <4>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 41 | filename = "u-boot-spl-ddr.bin"; |
42 | pad-byte = <0xff>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 43 | |
44 | u-boot-spl { | ||||
45 | align-end = <4>; | ||||
Patrick Wildt | 4cbc3b6 | 2022-01-13 15:21:47 +0100 | [diff] [blame] | 46 | filename = "u-boot-spl.bin"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 47 | }; |
48 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 49 | ddr-1d-imem-fw { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 50 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 51 | align-end = <4>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 52 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 53 | }; |
54 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 55 | ddr-1d-dmem-fw { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 56 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 57 | align-end = <4>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 58 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 59 | }; |
60 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 61 | ddr-2d-imem-fw { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 62 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 63 | align-end = <4>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 64 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 65 | }; |
66 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 67 | ddr-2d-dmem-fw { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 68 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 69 | align-end = <4>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 70 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 71 | }; |
72 | }; | ||||
73 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 74 | signed-hdmi { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 75 | filename = "signed_hdmi.bin"; |
76 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 77 | signed-hdmi-imx8m { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 78 | filename = "signed_hdmi_imx8m.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 79 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 80 | }; |
81 | }; | ||||
82 | |||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 83 | spl { |
84 | filename = "spl.bin"; | ||||
85 | |||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 86 | mkimage { |
87 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; | ||||
88 | |||||
89 | blob { | ||||
90 | filename = "u-boot-spl-ddr.bin"; | ||||
91 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 92 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 93 | }; |
94 | |||||
95 | itb { | ||||
96 | filename = "u-boot.itb"; | ||||
97 | |||||
98 | fit { | ||||
99 | description = "Configuration to load ATF before U-Boot"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 100 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 101 | #address-cells = <1>; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 102 | |
103 | images { | ||||
104 | uboot { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 105 | arch = "arm64"; |
106 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 107 | description = "U-Boot (64-bit)"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 108 | load = <CONFIG_TEXT_BASE>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 109 | type = "standalone"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 110 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 111 | uboot-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 112 | filename = "u-boot-nodtb.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 113 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 114 | }; |
115 | }; | ||||
116 | |||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 117 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 118 | atf { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 119 | arch = "arm64"; |
120 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 121 | description = "ARM Trusted Firmware"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 122 | entry = <0x910000>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 123 | load = <0x910000>; |
124 | type = "firmware"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 125 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 126 | atf-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 127 | filename = "bl31.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 128 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 129 | }; |
130 | }; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 131 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 132 | |
133 | fdt { | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 134 | compression = "none"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 135 | description = "NAME"; |
136 | type = "flat_dt"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 137 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 138 | uboot-fdt-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 139 | filename = "u-boot.dtb"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 140 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 141 | }; |
142 | }; | ||||
143 | }; | ||||
144 | |||||
145 | configurations { | ||||
146 | default = "conf"; | ||||
147 | |||||
148 | conf { | ||||
149 | description = "NAME"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 150 | fdt = "fdt"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 151 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 152 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 153 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 154 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 155 | }; |
156 | }; | ||||
157 | }; | ||||
158 | }; | ||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 159 | |
160 | imx-boot { | ||||
161 | filename = "flash.bin"; | ||||
162 | pad-byte = <0x00>; | ||||
163 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 164 | spl { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 165 | filename = "spl.bin"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 166 | offset = <0x0>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 167 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 168 | }; |
169 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 170 | binman_uboot: uboot { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 171 | filename = "u-boot.itb"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 172 | offset = <0x57c00>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 173 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 174 | }; |
175 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 176 | }; |