Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2022 Logic PD, Inc dba Beacon EmbeddedWorks |
| 4 | */ |
| 5 | |
| 6 | / { |
| 7 | binman: binman { |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 8 | }; |
| 9 | |
Tim Harvey | 1f5a510 | 2023-08-24 12:01:44 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_OPTEE |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 11 | firmware { |
| 12 | optee { |
| 13 | compatible = "linaro,optee-tz"; |
| 14 | method = "smc"; |
| 15 | }; |
| 16 | }; |
Tim Harvey | 1f5a510 | 2023-08-24 12:01:44 -0700 | [diff] [blame] | 17 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 18 | |
| 19 | wdt-reboot { |
| 20 | compatible = "wdt-reboot"; |
| 21 | wdt = <&wdog1>; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 22 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 23 | }; |
| 24 | }; |
| 25 | |
| 26 | &{/soc@0} { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 27 | bootph-all; |
| 28 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | &aips1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-pre-ram; |
| 33 | bootph-all; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &aips2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | &aips3 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | &aips4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 45 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | &clk { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 49 | bootph-pre-ram; |
| 50 | bootph-all; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 51 | /delete-property/ assigned-clocks; |
| 52 | /delete-property/ assigned-clock-parents; |
| 53 | /delete-property/ assigned-clock-rates; |
| 54 | }; |
| 55 | |
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 56 | #ifdef CONFIG_FSL_CAAM |
| 57 | &crypto { |
| 58 | bootph-pre-ram; |
| 59 | }; |
| 60 | #endif |
| 61 | |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 62 | &iomuxc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 63 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | &osc_24m { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 67 | bootph-pre-ram; |
| 68 | bootph-all; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 69 | }; |
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 70 | |
| 71 | #ifdef CONFIG_FSL_CAAM |
| 72 | &sec_jr0 { |
| 73 | bootph-pre-ram; |
| 74 | }; |
| 75 | |
| 76 | &sec_jr1 { |
| 77 | bootph-pre-ram; |
| 78 | }; |
| 79 | |
| 80 | &sec_jr2 { |
| 81 | bootph-pre-ram; |
| 82 | }; |
| 83 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 84 | |
| 85 | &spba1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 86 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | &wdog1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 90 | bootph-pre-ram; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 91 | }; |
| 92 | |
| 93 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 94 | filename = "flash.bin"; |
| 95 | section { |
| 96 | pad-byte = <0x00>; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 97 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 98 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 99 | fspi_conf_block { |
| 100 | filename = CONFIG_FSPI_CONF_FILE; |
| 101 | type = "blob-ext"; |
| 102 | offset = <0x400>; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 103 | }; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 104 | #endif |
| 105 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 106 | #ifdef CONFIG_IMX_HAB |
| 107 | nxp-imx8mcst@0 { |
| 108 | filename = "u-boot-spl-mkimage.signed.bin"; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 109 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 110 | nxp,unlock; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 111 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 112 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 113 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 114 | binman_imx_spl: nxp-imx8mimage { |
| 115 | filename = "u-boot-spl-mkimage.bin"; |
| 116 | nxp,boot-from = "sd"; |
| 117 | nxp,rom-version = <2>; |
| 118 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
| 119 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 120 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 121 | section { |
| 122 | filename = "u-boot-spl-ddr.bin"; |
| 123 | pad-byte = <0xff>; |
| 124 | align-size = <4>; |
| 125 | align = <4>; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 126 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 127 | u-boot-spl { |
| 128 | align-end = <4>; |
| 129 | filename = "u-boot-spl.bin"; |
| 130 | }; |
| 131 | |
| 132 | ddr-1d-imem-fw { |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 133 | #ifdef CONFIG_IMX8M_LPDDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 134 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 135 | #elif CONFIG_IMX8M_DDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 136 | filename = "ddr4_imem_1d_201810.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 137 | #else |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 138 | filename = "ddr3_imem_1d.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 139 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 140 | type = "blob-ext"; |
| 141 | align-end = <4>; |
| 142 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 143 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 144 | ddr-1d-dmem-fw { |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 145 | #ifdef CONFIG_IMX8M_LPDDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 146 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 147 | #elif CONFIG_IMX8M_DDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 148 | filename = "ddr4_dmem_1d_201810.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 149 | #else |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 150 | filename = "ddr3_dmem_1d.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 151 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 152 | type = "blob-ext"; |
| 153 | align-end = <4>; |
| 154 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 155 | |
Dario Binacchi | 39ae820 | 2023-01-28 17:04:04 +0100 | [diff] [blame] | 156 | #if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4) |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 157 | ddr-2d-imem-fw { |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 158 | #ifdef CONFIG_IMX8M_LPDDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 159 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
Dario Binacchi | 39ae820 | 2023-01-28 17:04:04 +0100 | [diff] [blame] | 160 | #else |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 161 | filename = "ddr4_imem_2d_201810.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 162 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 163 | type = "blob-ext"; |
| 164 | align-end = <4>; |
| 165 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 166 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 167 | ddr-2d-dmem-fw { |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 168 | #ifdef CONFIG_IMX8M_LPDDR4 |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 169 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
Dario Binacchi | 39ae820 | 2023-01-28 17:04:04 +0100 | [diff] [blame] | 170 | #else |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 171 | filename = "ddr4_dmem_2d_201810.bin"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 172 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 173 | type = "blob-ext"; |
| 174 | align-end = <4>; |
| 175 | }; |
Dario Binacchi | 39ae820 | 2023-01-28 17:04:04 +0100 | [diff] [blame] | 176 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 177 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 178 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 179 | |
| 180 | #ifdef CONFIG_IMX_HAB |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 181 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 182 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 183 | nxp-imx8mcst@1 { |
| 184 | filename = "u-boot-fit.signed.bin"; |
| 185 | nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 186 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 187 | offset = <0x59000>; |
| 188 | #else |
| 189 | offset = <0x58000>; |
| 190 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 191 | args; /* Needed by mkimage etype superclass */ |
| 192 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 193 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 194 | binman_imx_fit: fit { |
| 195 | description = "Configuration to load ATF before U-Boot"; |
Marek Vasut | 2b93821 | 2024-09-24 15:02:09 +0200 | [diff] [blame^] | 196 | filename = "u-boot.itb"; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 197 | #ifndef CONFIG_IMX_HAB |
| 198 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 199 | #endif |
| 200 | fit,fdt-list = "of-list"; |
| 201 | #address-cells = <1>; |
| 202 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 203 | offset = <0x59000>; |
| 204 | #else |
| 205 | offset = <0x58000>; |
| 206 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 207 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 208 | images { |
| 209 | uboot { |
| 210 | arch = "arm64"; |
| 211 | compression = "none"; |
| 212 | description = "U-Boot (64-bit)"; |
| 213 | load = <CONFIG_TEXT_BASE>; |
| 214 | type = "standalone"; |
| 215 | |
| 216 | uboot-blob { |
| 217 | filename = "u-boot-nodtb.bin"; |
| 218 | type = "blob-ext"; |
| 219 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 220 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 221 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 222 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 223 | atf { |
| 224 | arch = "arm64"; |
| 225 | compression = "none"; |
| 226 | description = "ARM Trusted Firmware"; |
| 227 | entry = <0x960000>; |
| 228 | load = <0x960000>; |
| 229 | type = "firmware"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 230 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 231 | atf-blob { |
| 232 | filename = "bl31.bin"; |
| 233 | type = "atf-bl31"; |
| 234 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 235 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 236 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 237 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 238 | binman_fip: fip { |
| 239 | arch = "arm64"; |
| 240 | compression = "none"; |
| 241 | description = "Trusted Firmware FIP"; |
| 242 | load = <0x40310000>; |
| 243 | type = "firmware"; |
| 244 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 245 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 246 | @fdt-SEQ { |
| 247 | compression = "none"; |
| 248 | description = "NAME"; |
| 249 | type = "flat_dt"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 250 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 251 | uboot-fdt-blob { |
| 252 | filename = "u-boot.dtb"; |
| 253 | type = "blob-ext"; |
| 254 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 255 | }; |
| 256 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 257 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 258 | configurations { |
| 259 | default = "@config-DEFAULT-SEQ"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 260 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 261 | @config-SEQ { |
| 262 | description = "NAME"; |
| 263 | fdt = "fdt-SEQ"; |
| 264 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 265 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 266 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 267 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 268 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 269 | }; |
| 270 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 271 | #ifdef CONFIG_IMX_HAB |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 272 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 273 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 274 | }; |
| 275 | }; |