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"; |
| 196 | #ifndef CONFIG_IMX_HAB |
| 197 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 198 | #endif |
| 199 | fit,fdt-list = "of-list"; |
| 200 | #address-cells = <1>; |
| 201 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 202 | offset = <0x59000>; |
| 203 | #else |
| 204 | offset = <0x58000>; |
| 205 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 206 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 207 | images { |
| 208 | uboot { |
| 209 | arch = "arm64"; |
| 210 | compression = "none"; |
| 211 | description = "U-Boot (64-bit)"; |
| 212 | load = <CONFIG_TEXT_BASE>; |
| 213 | type = "standalone"; |
| 214 | |
| 215 | uboot-blob { |
| 216 | filename = "u-boot-nodtb.bin"; |
| 217 | type = "blob-ext"; |
| 218 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 219 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 220 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 221 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 222 | atf { |
| 223 | arch = "arm64"; |
| 224 | compression = "none"; |
| 225 | description = "ARM Trusted Firmware"; |
| 226 | entry = <0x960000>; |
| 227 | load = <0x960000>; |
| 228 | type = "firmware"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 229 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 230 | atf-blob { |
| 231 | filename = "bl31.bin"; |
| 232 | type = "atf-bl31"; |
| 233 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 234 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 235 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 236 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 237 | binman_fip: fip { |
| 238 | arch = "arm64"; |
| 239 | compression = "none"; |
| 240 | description = "Trusted Firmware FIP"; |
| 241 | load = <0x40310000>; |
| 242 | type = "firmware"; |
| 243 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 244 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 245 | @fdt-SEQ { |
| 246 | compression = "none"; |
| 247 | description = "NAME"; |
| 248 | type = "flat_dt"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 249 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 250 | uboot-fdt-blob { |
| 251 | filename = "u-boot.dtb"; |
| 252 | type = "blob-ext"; |
| 253 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 254 | }; |
| 255 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 256 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 257 | configurations { |
| 258 | default = "@config-DEFAULT-SEQ"; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 259 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 260 | @config-SEQ { |
| 261 | description = "NAME"; |
| 262 | fdt = "fdt-SEQ"; |
| 263 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 264 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 265 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 266 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 267 | }; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 268 | }; |
| 269 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 270 | #ifdef CONFIG_IMX_HAB |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 271 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 272 | #endif |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 273 | }; |
| 274 | }; |