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 { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 8 | }; |
9 | |||||
10 | }; | ||||
11 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 12 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 13 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 14 | }; |
15 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 16 | &aips1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 17 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 18 | }; |
19 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 20 | &aips2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 21 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 22 | }; |
23 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 24 | &aips3 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 25 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 26 | }; |
27 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 28 | &aips4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 29 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 30 | }; |
31 | |||||
32 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 34 | }; |
35 | |||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 36 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 37 | filename = "flash.bin"; |
38 | section { | ||||
39 | pad-byte = <0x00>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 40 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 41 | #ifdef CONFIG_IMX_HAB |
42 | nxp-imx8mcst@0 { | ||||
43 | filename = "u-boot-spl-mkimage.signed.bin"; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 44 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 45 | nxp,unlock; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 46 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 47 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 48 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 49 | 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 Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 55 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 56 | section { |
57 | align = <4>; | ||||
58 | align-size = <4>; | ||||
59 | filename = "u-boot-spl-ddr.bin"; | ||||
60 | pad-byte = <0xff>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 61 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 62 | u-boot-spl { |
63 | align-end = <4>; | ||||
64 | filename = "u-boot-spl.bin"; | ||||
65 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 66 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 67 | ddr-1d-imem-fw { |
68 | filename = "lpddr4_pmu_train_1d_imem.bin"; | ||||
69 | align-end = <4>; | ||||
70 | type = "blob-ext"; | ||||
71 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 72 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 73 | ddr-1d-dmem-fw { |
74 | filename = "lpddr4_pmu_train_1d_dmem.bin"; | ||||
75 | align-end = <4>; | ||||
76 | type = "blob-ext"; | ||||
77 | }; | ||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 78 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 79 | ddr-2d-imem-fw { |
80 | filename = "lpddr4_pmu_train_2d_imem.bin"; | ||||
81 | align-end = <4>; | ||||
82 | type = "blob-ext"; | ||||
83 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 84 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 85 | 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 Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 95 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 96 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 97 | #ifdef CONFIG_IMX_HAB |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 98 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 99 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 100 | 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 Vasut | 2b93821 | 2024-09-24 15:02:09 +0200 | [diff] [blame] | 109 | filename = "u-boot.itb"; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 110 | #ifndef CONFIG_IMX_HAB |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 111 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 112 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 113 | #address-cells = <1>; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 114 | |
Fabio Estevam | c0bf0ba | 2024-09-09 16:30:03 -0300 | [diff] [blame] | 115 | offset = <0x57c00>; |
116 | |||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 117 | images { |
118 | uboot { | ||||
119 | arch = "arm64"; | ||||
120 | compression = "none"; | ||||
121 | description = "U-Boot (64-bit)"; | ||||
122 | load = <CONFIG_TEXT_BASE>; | ||||
123 | type = "standalone"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 124 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 125 | uboot-blob { |
126 | filename = "u-boot-nodtb.bin"; | ||||
127 | type = "blob-ext"; | ||||
128 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 129 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 130 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 131 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 132 | atf { |
133 | arch = "arm64"; | ||||
134 | compression = "none"; | ||||
135 | description = "ARM Trusted Firmware"; | ||||
136 | entry = <0x910000>; | ||||
137 | load = <0x910000>; | ||||
138 | type = "firmware"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 139 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 140 | atf-blob { |
141 | filename = "bl31.bin"; | ||||
142 | type = "blob-ext"; | ||||
143 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 144 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 145 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 146 | |
Fabio Estevam | 469ca6a | 2025-01-16 22:56:42 -0300 | [diff] [blame] | 147 | #ifdef CONFIG_OPTEE |
Yannic Moog | 0ad8a1e | 2025-01-10 13:35:33 +0100 | [diff] [blame] | 148 | tee: tee { |
149 | description = "OP-TEE"; | ||||
150 | type = "tee"; | ||||
151 | arch = "arm64"; | ||||
152 | compression = "none"; | ||||
153 | os = "tee"; | ||||
154 | load = <CONFIG_IMX8M_OPTEE_LOAD_ADDR>; | ||||
155 | entry = <CONFIG_IMX8M_OPTEE_LOAD_ADDR>; | ||||
156 | |||||
157 | tee-os { | ||||
158 | filename = "tee.bin"; | ||||
Yannic Moog | 0ad8a1e | 2025-01-10 13:35:33 +0100 | [diff] [blame] | 159 | }; |
160 | }; | ||||
Fabio Estevam | 469ca6a | 2025-01-16 22:56:42 -0300 | [diff] [blame] | 161 | #endif |
Yannic Moog | 0ad8a1e | 2025-01-10 13:35:33 +0100 | [diff] [blame] | 162 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 163 | fdt { |
164 | compression = "none"; | ||||
165 | description = "NAME"; | ||||
166 | type = "flat_dt"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 167 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 168 | uboot-fdt-blob { |
169 | filename = "u-boot.dtb"; | ||||
170 | type = "blob-ext"; | ||||
171 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 172 | }; |
173 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 174 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 175 | configurations { |
176 | default = "conf"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 177 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 178 | conf { |
179 | description = "NAME"; | ||||
180 | fdt = "fdt"; | ||||
181 | firmware = "uboot"; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 182 | #ifndef CONFIG_ARMV8_PSCI |
Fabio Estevam | 469ca6a | 2025-01-16 22:56:42 -0300 | [diff] [blame] | 183 | #ifdef CONFIG_OPTEE |
Yannic Moog | 0ad8a1e | 2025-01-10 13:35:33 +0100 | [diff] [blame] | 184 | loadables = "atf", "tee"; |
Fabio Estevam | 469ca6a | 2025-01-16 22:56:42 -0300 | [diff] [blame] | 185 | #else |
186 | loadables = "atf"; | ||||
187 | #endif | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 188 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 189 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 190 | }; |
191 | }; | ||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 192 | #ifdef CONFIG_IMX_HAB |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 193 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 194 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 195 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 196 | }; |