Jagan Teki | c1f0950 | 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 | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 6 | / { |
| 7 | binman: binman { |
| 8 | multiple-images; |
| 9 | }; |
| 10 | }; |
| 11 | |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 12 | &{/soc@0} { |
| 13 | u-boot,dm-pre-reloc; |
| 14 | u-boot,dm-spl; |
| 15 | }; |
| 16 | |
| 17 | &aips1 { |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 18 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 19 | u-boot,dm-spl; |
Jagan Teki | c1f0950 | 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 | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 30 | &binman { |
| 31 | u-boot-spl-ddr { |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 32 | align = <4>; |
| 33 | align-size = <4>; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 34 | filename = "u-boot-spl-ddr.bin"; |
| 35 | pad-byte = <0xff>; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 36 | |
| 37 | u-boot-spl { |
| 38 | align-end = <4>; |
Marcel Ziswiler | 86b7f20 | 2021-10-23 01:15:15 +0200 | [diff] [blame] | 39 | filename = "u-boot-spl.bin"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 40 | }; |
| 41 | |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 42 | 1d-imem { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 43 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
| 44 | size = <0x8000>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 45 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 48 | 1d-dmem { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 49 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
| 50 | size = <0x4000>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 51 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 52 | }; |
| 53 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 54 | 2d-imem { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 55 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
| 56 | size = <0x8000>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 57 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 60 | 2d-dmem { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 61 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
| 62 | size = <0x4000>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 63 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 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 | 7cf5597 | 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 | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 86 | #address-cells = <1>; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 87 | |
| 88 | images { |
| 89 | uboot { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 90 | arch = "arm64"; |
| 91 | compression = "none"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 92 | description = "U-Boot (64-bit)"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 93 | load = <CONFIG_SYS_TEXT_BASE>; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 94 | type = "standalone"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 95 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 96 | uboot-blob { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 97 | filename = "u-boot-nodtb.bin"; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 98 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 99 | }; |
| 100 | }; |
| 101 | |
| 102 | atf { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 103 | arch = "arm64"; |
| 104 | compression = "none"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 105 | description = "ARM Trusted Firmware"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 106 | entry = <0x920000>; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 107 | load = <0x920000>; |
| 108 | type = "firmware"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 109 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 110 | atf-blob { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 111 | filename = "bl31.bin"; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 112 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | |
| 116 | binman_fip: fip { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 117 | arch = "arm64"; |
| 118 | compression = "none"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 119 | description = "Trusted Firmware FIP"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 120 | load = <0x40310000>; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 121 | type = "firmware"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 122 | }; |
| 123 | |
| 124 | @fdt-SEQ { |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 125 | compression = "none"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 126 | description = "NAME"; |
| 127 | type = "flat_dt"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 128 | |
Patrick Wildt | 49f5565 | 2022-01-13 15:22:17 +0100 | [diff] [blame^] | 129 | uboot-fdt-blob { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 130 | filename = "u-boot.dtb"; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 131 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | configurations { |
| 137 | default = "@config-DEFAULT-SEQ"; |
| 138 | |
| 139 | binman_configuration: @config-SEQ { |
| 140 | description = "NAME"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 141 | fdt = "fdt-SEQ"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 142 | firmware = "uboot"; |
| 143 | loadables = "atf"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 144 | }; |
| 145 | }; |
| 146 | }; |
| 147 | }; |
| 148 | |
| 149 | imx-boot { |
| 150 | filename = "flash.bin"; |
| 151 | pad-byte = <0x00>; |
| 152 | |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 153 | spl { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 154 | filename = "spl.bin"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 155 | offset = <0x0>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 156 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 157 | }; |
| 158 | |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 159 | binman_uboot: uboot { |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 160 | filename = "u-boot.itb"; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 161 | offset = <0x57c00>; |
Marcel Ziswiler | f17fb6c | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 162 | type = "blob-ext"; |
Marcel Ziswiler | 7cf5597 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 167 | &clk { |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 168 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 169 | u-boot,dm-spl; |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 170 | /delete-property/ assigned-clocks; |
| 171 | /delete-property/ assigned-clock-parents; |
| 172 | /delete-property/ assigned-clock-rates; |
| 173 | }; |
| 174 | |
| 175 | &iomuxc { |
| 176 | u-boot,dm-spl; |
| 177 | }; |
| 178 | |
| 179 | &osc_24m { |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 180 | u-boot,dm-pre-reloc; |
Marcel Ziswiler | f08c3fee | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 181 | u-boot,dm-spl; |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 182 | }; |