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 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 14 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 15 | }; |
16 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 17 | &aips1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 18 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 19 | }; |
20 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 21 | &aips2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 22 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 23 | }; |
24 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 25 | &aips3 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 26 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 27 | }; |
28 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 29 | &aips4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 30 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 31 | }; |
32 | |||||
33 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 34 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 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"; | ||||
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 100 | #ifndef CONFIG_IMX_HAB |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 101 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 102 | #endif |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 103 | #address-cells = <1>; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 104 | |
105 | images { | ||||
106 | uboot { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 107 | arch = "arm64"; |
108 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 109 | description = "U-Boot (64-bit)"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 110 | load = <CONFIG_TEXT_BASE>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 111 | type = "standalone"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 112 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 113 | uboot-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 114 | filename = "u-boot-nodtb.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 115 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 116 | }; |
117 | }; | ||||
118 | |||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 119 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 120 | atf { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 121 | arch = "arm64"; |
122 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 123 | description = "ARM Trusted Firmware"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 124 | entry = <0x910000>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 125 | load = <0x910000>; |
126 | type = "firmware"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 127 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 128 | atf-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 129 | filename = "bl31.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 130 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 131 | }; |
132 | }; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 133 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 134 | |
135 | fdt { | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 136 | compression = "none"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 137 | description = "NAME"; |
138 | type = "flat_dt"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 139 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 140 | uboot-fdt-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 141 | filename = "u-boot.dtb"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 142 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 143 | }; |
144 | }; | ||||
145 | }; | ||||
146 | |||||
147 | configurations { | ||||
148 | default = "conf"; | ||||
149 | |||||
150 | conf { | ||||
151 | description = "NAME"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 152 | fdt = "fdt"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 153 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 154 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 155 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 156 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 157 | }; |
158 | }; | ||||
159 | }; | ||||
160 | }; | ||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 161 | |
162 | imx-boot { | ||||
163 | filename = "flash.bin"; | ||||
164 | pad-byte = <0x00>; | ||||
165 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 166 | spl { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 167 | filename = "spl.bin"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 168 | offset = <0x0>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 169 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 170 | }; |
171 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 172 | binman_uboot: uboot { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 173 | filename = "u-boot.itb"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 174 | offset = <0x57c00>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 175 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 176 | }; |
177 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 178 | }; |