Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com> |
| 4 | */ |
| 5 | |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 6 | / { |
| 7 | binman: binman { |
| 8 | multiple-images; |
| 9 | }; |
| 10 | }; |
| 11 | |
Marcel Ziswiler | 6dd051a | 2022-11-07 22:22:41 +0100 | [diff] [blame] | 12 | &soc { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 13 | u-boot,dm-pre-reloc; |
| 14 | u-boot,dm-spl; |
| 15 | }; |
| 16 | |
| 17 | &aips1 { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 18 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 19 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | &aips2 { |
| 23 | u-boot,dm-spl; |
| 24 | }; |
| 25 | |
| 26 | &aips3 { |
| 27 | u-boot,dm-spl; |
| 28 | }; |
| 29 | |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 30 | &binman { |
| 31 | u-boot-spl-ddr { |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 32 | align = <4>; |
| 33 | align-size = <4>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 34 | filename = "u-boot-spl-ddr.bin"; |
| 35 | pad-byte = <0xff>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 36 | |
| 37 | u-boot-spl { |
| 38 | align-end = <4>; |
Marcel Ziswiler | 74d5d4f | 2021-10-23 01:15:15 +0200 | [diff] [blame] | 39 | filename = "u-boot-spl.bin"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 40 | }; |
| 41 | |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 42 | ddr-1d-imem-fw { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 43 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 44 | align-end = <4>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 45 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 48 | ddr-1d-dmem-fw { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 49 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 50 | align-end = <4>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 51 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 52 | }; |
| 53 | |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 54 | ddr-2d-imem-fw { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 55 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 56 | align-end = <4>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 57 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 60 | ddr-2d-dmem-fw { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 61 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 62 | align-end = <4>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 63 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 64 | }; |
| 65 | }; |
| 66 | |
| 67 | spl { |
| 68 | filename = "spl.bin"; |
| 69 | |
| 70 | mkimage { |
| 71 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; |
| 72 | |
| 73 | blob { |
| 74 | filename = "u-boot-spl-ddr.bin"; |
| 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | itb { |
| 80 | filename = "u-boot.itb"; |
| 81 | |
| 82 | fit { |
| 83 | description = "Configuration to load ATF before U-Boot"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 84 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 85 | fit,fdt-list = "of-list"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 86 | #address-cells = <1>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 87 | |
| 88 | images { |
| 89 | uboot { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 90 | arch = "arm64"; |
| 91 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 92 | description = "U-Boot (64-bit)"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 93 | load = <CONFIG_TEXT_BASE>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 94 | type = "standalone"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 95 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 96 | uboot-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 97 | filename = "u-boot-nodtb.bin"; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 98 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 99 | }; |
| 100 | }; |
| 101 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 102 | #ifndef CONFIG_ARMV8_PSCI |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 103 | atf { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 104 | arch = "arm64"; |
| 105 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 106 | description = "ARM Trusted Firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 107 | entry = <0x920000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 108 | load = <0x920000>; |
| 109 | type = "firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 110 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 111 | atf-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 112 | filename = "bl31.bin"; |
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 113 | type = "atf-bl31"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 114 | }; |
| 115 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 116 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 117 | |
| 118 | binman_fip: fip { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 119 | arch = "arm64"; |
| 120 | compression = "none"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 121 | description = "Trusted Firmware FIP"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 122 | load = <0x40310000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 123 | type = "firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 124 | }; |
| 125 | |
| 126 | @fdt-SEQ { |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 127 | compression = "none"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 128 | description = "NAME"; |
| 129 | type = "flat_dt"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 130 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 131 | uboot-fdt-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 132 | filename = "u-boot.dtb"; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 133 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | |
| 138 | configurations { |
| 139 | default = "@config-DEFAULT-SEQ"; |
| 140 | |
| 141 | binman_configuration: @config-SEQ { |
| 142 | description = "NAME"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 143 | fdt = "fdt-SEQ"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 144 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 145 | #ifndef CONFIG_ARMV8_PSCI |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 146 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 147 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 148 | }; |
| 149 | }; |
| 150 | }; |
| 151 | }; |
| 152 | |
| 153 | imx-boot { |
| 154 | filename = "flash.bin"; |
| 155 | pad-byte = <0x00>; |
| 156 | |
Mamta Shukla | cd76f3a | 2022-07-12 14:36:18 +0000 | [diff] [blame] | 157 | #ifdef CONFIG_FSPI_CONF_HEADER |
| 158 | fspi_conf_block { |
| 159 | filename = CONFIG_FSPI_CONF_FILE; |
| 160 | type = "blob-ext"; |
| 161 | size = <0x1000>; |
| 162 | }; |
| 163 | |
| 164 | spl { |
| 165 | filename = "spl.bin"; |
| 166 | offset = <0x1000>; |
| 167 | type = "blob-ext"; |
| 168 | }; |
| 169 | |
| 170 | binman_uboot: uboot { |
| 171 | filename = "u-boot.itb"; |
| 172 | offset = <0x58C00>; |
| 173 | type = "blob-ext"; |
| 174 | }; |
| 175 | #else |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 176 | spl { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 177 | filename = "spl.bin"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 178 | offset = <0x0>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 179 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 180 | }; |
| 181 | |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 182 | binman_uboot: uboot { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 183 | filename = "u-boot.itb"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 184 | offset = <0x57c00>; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 185 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 186 | }; |
Mamta Shukla | cd76f3a | 2022-07-12 14:36:18 +0000 | [diff] [blame] | 187 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 188 | }; |
| 189 | }; |
| 190 | |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 191 | &clk { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 192 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 193 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 194 | /delete-property/ assigned-clocks; |
| 195 | /delete-property/ assigned-clock-parents; |
| 196 | /delete-property/ assigned-clock-rates; |
| 197 | }; |
| 198 | |
| 199 | &iomuxc { |
| 200 | u-boot,dm-spl; |
| 201 | }; |
| 202 | |
| 203 | &osc_24m { |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 204 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 205 | u-boot,dm-spl; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 206 | }; |
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 207 | |
| 208 | &spba1 { |
| 209 | u-boot,dm-pre-reloc; |
| 210 | u-boot,dm-spl; |
| 211 | }; |
| 212 | |
| 213 | &spba2 { |
| 214 | u-boot,dm-pre-reloc; |
| 215 | u-boot,dm-spl; |
| 216 | }; |