|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
| 2 | +/* |
| 3 | + * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com> |
| 4 | + */ |
| 5 | + |
| 6 | +/ { |
| 7 | + binman: binman { |
| 8 | + multiple-images; |
| 9 | + }; |
| 10 | +}; |
| 11 | + |
| 12 | +&soc { |
| 13 | + u-boot,dm-pre-reloc; |
| 14 | + u-boot,dm-spl; |
| 15 | +}; |
| 16 | + |
| 17 | +&aips1 { |
| 18 | + u-boot,dm-pre-reloc; |
| 19 | + u-boot,dm-spl; |
| 20 | +}; |
| 21 | + |
| 22 | +&aips2 { |
| 23 | + u-boot,dm-spl; |
| 24 | +}; |
| 25 | + |
| 26 | +&aips3 { |
| 27 | + u-boot,dm-spl; |
| 28 | +}; |
| 29 | + |
| 30 | +&binman { |
| 31 | + u-boot-spl-ddr { |
| 32 | + align = <4>; |
| 33 | + align-size = <4>; |
| 34 | + filename = "u-boot-spl-ddr.bin"; |
| 35 | + pad-byte = <0xff>; |
| 36 | + |
| 37 | + u-boot-spl { |
| 38 | + align-end = <4>; |
| 39 | + filename = "u-boot-spl.bin"; |
| 40 | + }; |
| 41 | + |
| 42 | + blob_1d_imem: ddr-1d-imem-fw { |
| 43 | + filename = "lpddr4_pmu_train_1d_imem.bin"; |
| 44 | + align-end = <4>; |
| 45 | + type = "blob-ext"; |
| 46 | + }; |
| 47 | + |
| 48 | + blob_1d_dmem: ddr-1d-dmem-fw { |
| 49 | + filename = "lpddr4_pmu_train_1d_dmem.bin"; |
| 50 | + align-end = <4>; |
| 51 | + type = "blob-ext"; |
| 52 | + }; |
| 53 | + |
| 54 | + blob_2d_imem: ddr-2d-imem-fw { |
| 55 | + filename = "lpddr4_pmu_train_2d_imem.bin"; |
| 56 | + align-end = <4>; |
| 57 | + type = "blob-ext"; |
| 58 | + }; |
| 59 | + |
| 60 | + blob_2d_dmem: ddr-2d-dmem-fw { |
| 61 | + filename = "lpddr4_pmu_train_2d_dmem.bin"; |
| 62 | + align-end = <4>; |
| 63 | + type = "blob-ext"; |
| 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"; |
| 84 | + fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 85 | + fit,fdt-list = "of-list"; |
| 86 | + #address-cells = <1>; |
| 87 | + |
| 88 | + images { |
| 89 | + uboot { |
| 90 | + arch = "arm64"; |
| 91 | + compression = "none"; |
| 92 | + description = "U-Boot (64-bit)"; |
| 93 | + load = <CONFIG_TEXT_BASE>; |
| 94 | + type = "standalone"; |
| 95 | + |
| 96 | + uboot-blob { |
| 97 | + filename = "u-boot-nodtb.bin"; |
| 98 | + type = "blob-ext"; |
| 99 | + }; |
| 100 | + }; |
| 101 | + |
| 102 | +#ifndef CONFIG_ARMV8_PSCI |
| 103 | + atf { |
| 104 | + arch = "arm64"; |
| 105 | + compression = "none"; |
| 106 | + description = "ARM Trusted Firmware"; |
| 107 | + entry = <0x920000>; |
| 108 | + load = <0x920000>; |
| 109 | + type = "firmware"; |
| 110 | + |
| 111 | + atf-blob { |
| 112 | + filename = "bl31.bin"; |
| 113 | + type = "atf-bl31"; |
| 114 | + }; |
| 115 | + }; |
| 116 | +#endif |
| 117 | + |
| 118 | + binman_fip: fip { |
| 119 | + arch = "arm64"; |
| 120 | + compression = "none"; |
| 121 | + description = "Trusted Firmware FIP"; |
| 122 | + load = <0x40310000>; |
| 123 | + type = "firmware"; |
| 124 | + }; |
| 125 | + |
| 126 | + @fdt-SEQ { |
| 127 | + compression = "none"; |
| 128 | + description = "NAME"; |
| 129 | + type = "flat_dt"; |
| 130 | + |
| 131 | + uboot-fdt-blob { |
| 132 | + filename = "u-boot.dtb"; |
| 133 | + type = "blob-ext"; |
| 134 | + }; |
| 135 | + }; |
| 136 | + }; |
| 137 | + |
| 138 | + configurations { |
| 139 | + default = "@config-DEFAULT-SEQ"; |
| 140 | + |
| 141 | + binman_configuration: @config-SEQ { |
| 142 | + description = "NAME"; |
| 143 | + fdt = "fdt-SEQ"; |
| 144 | + firmware = "uboot"; |
| 145 | +#ifndef CONFIG_ARMV8_PSCI |
| 146 | + loadables = "atf"; |
| 147 | +#endif |
| 148 | + }; |
| 149 | + }; |
| 150 | + }; |
| 151 | + }; |
| 152 | + |
| 153 | + imx-boot { |
| 154 | + filename = "flash.bin"; |
| 155 | + pad-byte = <0x00>; |
| 156 | + |
| 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 |
| 176 | + spl { |
| 177 | + filename = "spl.bin"; |
| 178 | + offset = <0x0>; |
| 179 | + type = "blob-ext"; |
| 180 | + }; |
| 181 | + |
| 182 | + binman_uboot: uboot { |
| 183 | + filename = "u-boot.itb"; |
| 184 | + offset = <0x57c00>; |
| 185 | + type = "blob-ext"; |
| 186 | + }; |
| 187 | +#endif |
| 188 | + }; |
| 189 | +}; |
| 190 | + |
| 191 | +&clk { |
| 192 | + u-boot,dm-pre-reloc; |
| 193 | + u-boot,dm-spl; |
| 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 { |
| 204 | + u-boot,dm-pre-reloc; |
| 205 | + u-boot,dm-spl; |
| 206 | +}; |
| 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 | +}; |
0 commit comments