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 { |
| 8 | multiple-images; |
| 9 | }; |
| 10 | |
| 11 | firmware { |
| 12 | optee { |
| 13 | compatible = "linaro,optee-tz"; |
| 14 | method = "smc"; |
| 15 | }; |
| 16 | }; |
| 17 | |
| 18 | wdt-reboot { |
| 19 | compatible = "wdt-reboot"; |
| 20 | wdt = <&wdog1>; |
| 21 | u-boot,dm-spl; |
| 22 | }; |
| 23 | }; |
| 24 | |
| 25 | &{/soc@0} { |
| 26 | u-boot,dm-pre-reloc; |
| 27 | u-boot,dm-spl; |
| 28 | }; |
| 29 | |
| 30 | &aips1 { |
| 31 | u-boot,dm-spl; |
| 32 | u-boot,dm-pre-reloc; |
| 33 | }; |
| 34 | |
| 35 | &aips2 { |
| 36 | u-boot,dm-spl; |
| 37 | }; |
| 38 | |
| 39 | &aips3 { |
| 40 | u-boot,dm-spl; |
| 41 | }; |
| 42 | |
| 43 | &aips4 { |
| 44 | u-boot,dm-spl; |
| 45 | }; |
| 46 | |
| 47 | &clk { |
| 48 | u-boot,dm-spl; |
| 49 | u-boot,dm-pre-reloc; |
| 50 | /delete-property/ assigned-clocks; |
| 51 | /delete-property/ assigned-clock-parents; |
| 52 | /delete-property/ assigned-clock-rates; |
| 53 | }; |
| 54 | |
| 55 | &iomuxc { |
| 56 | u-boot,dm-spl; |
| 57 | }; |
| 58 | |
| 59 | &osc_24m { |
| 60 | u-boot,dm-spl; |
| 61 | u-boot,dm-pre-reloc; |
| 62 | }; |
| 63 | |
| 64 | &spba1 { |
| 65 | u-boot,dm-spl; |
| 66 | }; |
| 67 | |
| 68 | &wdog1 { |
| 69 | u-boot,dm-spl; |
| 70 | }; |
| 71 | |
| 72 | &binman { |
| 73 | u-boot-spl-ddr { |
| 74 | filename = "u-boot-spl-ddr.bin"; |
| 75 | pad-byte = <0xff>; |
| 76 | align-size = <4>; |
| 77 | align = <4>; |
| 78 | |
| 79 | u-boot-spl { |
| 80 | align-end = <4>; |
| 81 | filename = "u-boot-spl.bin"; |
| 82 | }; |
| 83 | |
| 84 | ddr-1d-imem-fw { |
| 85 | #ifdef CONFIG_IMX8M_LPDDR4 |
| 86 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
| 87 | #elif CONFIG_IMX8M_DDR4 |
| 88 | filename = "ddr4_imem_1d.bin"; |
| 89 | #else |
| 90 | filename = "ddr3_imem_1d.bin"; |
| 91 | #endif |
| 92 | type = "blob-ext"; |
| 93 | align-end = <4>; |
| 94 | }; |
| 95 | |
| 96 | ddr-1d-dmem-fw { |
| 97 | #ifdef CONFIG_IMX8M_LPDDR4 |
| 98 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
| 99 | #elif CONFIG_IMX8M_DDR4 |
| 100 | filename = "ddr4_dmem_1d.bin"; |
| 101 | #else |
| 102 | filename = "ddr3_dmem_1d.bin"; |
| 103 | #endif |
| 104 | type = "blob-ext"; |
| 105 | align-end = <4>; |
| 106 | }; |
| 107 | |
| 108 | ddr-2d-imem-fw { |
| 109 | #ifdef CONFIG_IMX8M_LPDDR4 |
| 110 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
| 111 | #elif CONFIG_IMX8M_DDR4 |
| 112 | filename = "ddr4_imem_2d.bin"; |
| 113 | #endif |
| 114 | type = "blob-ext"; |
| 115 | align-end = <4>; |
| 116 | }; |
| 117 | |
| 118 | ddr-2d-dmem-fw { |
| 119 | #ifdef CONFIG_IMX8M_LPDDR4 |
| 120 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
| 121 | #elif CONFIG_IMX8M_DDR4 |
| 122 | filename = "ddr4_dmem_2d.bin"; |
| 123 | #endif |
| 124 | type = "blob-ext"; |
| 125 | align-end = <4>; |
| 126 | }; |
| 127 | }; |
| 128 | |
| 129 | spl { |
| 130 | filename = "spl.bin"; |
| 131 | |
| 132 | mkimage { |
| 133 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000"; |
| 134 | |
| 135 | blob { |
| 136 | filename = "u-boot-spl-ddr.bin"; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | itb { |
| 142 | filename = "u-boot.itb"; |
| 143 | |
| 144 | fit { |
| 145 | description = "Configuration to load ATF before U-Boot"; |
| 146 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 147 | fit,fdt-list = "of-list"; |
| 148 | #address-cells = <1>; |
| 149 | |
| 150 | images { |
| 151 | uboot { |
| 152 | arch = "arm64"; |
| 153 | compression = "none"; |
| 154 | description = "U-Boot (64-bit)"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 155 | load = <CONFIG_TEXT_BASE>; |
Adam Ford | 2d9310b | 2022-10-21 19:58:31 -0500 | [diff] [blame] | 156 | type = "standalone"; |
| 157 | |
| 158 | uboot-blob { |
| 159 | filename = "u-boot-nodtb.bin"; |
| 160 | type = "blob-ext"; |
| 161 | }; |
| 162 | }; |
| 163 | |
| 164 | atf { |
| 165 | arch = "arm64"; |
| 166 | compression = "none"; |
| 167 | description = "ARM Trusted Firmware"; |
| 168 | entry = <0x960000>; |
| 169 | load = <0x960000>; |
| 170 | type = "firmware"; |
| 171 | |
| 172 | atf-blob { |
| 173 | filename = "bl31.bin"; |
| 174 | type = "atf-bl31"; |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | binman_fip: fip { |
| 179 | arch = "arm64"; |
| 180 | compression = "none"; |
| 181 | description = "Trusted Firmware FIP"; |
| 182 | load = <0x40310000>; |
| 183 | type = "firmware"; |
| 184 | }; |
| 185 | |
| 186 | @fdt-SEQ { |
| 187 | compression = "none"; |
| 188 | description = "NAME"; |
| 189 | type = "flat_dt"; |
| 190 | |
| 191 | uboot-fdt-blob { |
| 192 | filename = "u-boot.dtb"; |
| 193 | type = "blob-ext"; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | |
| 198 | configurations { |
| 199 | default = "@config-DEFAULT-SEQ"; |
| 200 | |
| 201 | binman_configuration: @config-SEQ { |
| 202 | description = "NAME"; |
| 203 | fdt = "fdt-SEQ"; |
| 204 | firmware = "uboot"; |
| 205 | loadables = "atf"; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | }; |
| 210 | |
| 211 | imx-boot { |
| 212 | filename = "flash.bin"; |
| 213 | pad-byte = <0x00>; |
| 214 | |
| 215 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 216 | fspi_conf_block { |
| 217 | filename = CONFIG_FSPI_CONF_FILE; |
| 218 | type = "blob-ext"; |
| 219 | offset = <0x400>; |
| 220 | }; |
| 221 | |
| 222 | spl { |
| 223 | filename = "spl.bin"; |
| 224 | offset = <0x1000>; |
| 225 | type = "blob-ext"; |
| 226 | }; |
| 227 | |
| 228 | binman_uboot: uboot { |
| 229 | filename = "u-boot.itb"; |
| 230 | offset = <0x59000>; |
| 231 | type = "blob-ext"; |
| 232 | }; |
| 233 | #else |
| 234 | |
| 235 | spl { |
| 236 | offset = <0x0>; |
| 237 | filename = "spl.bin"; |
| 238 | type = "blob-ext"; |
| 239 | }; |
| 240 | |
| 241 | binman_uboot: uboot { |
| 242 | offset = <0x58000>; |
| 243 | filename = "u-boot.itb"; |
| 244 | type = "blob-ext"; |
| 245 | }; |
| 246 | #endif |
| 247 | }; |
| 248 | }; |