Ariel D'Alessandro | b6d5e13 | 2021-11-23 13:33:30 -0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2021 Collabora Ltd. |
| 4 | */ |
| 5 | |
| 6 | / { |
| 7 | binman: binman { |
| 8 | multiple-images; |
| 9 | }; |
| 10 | |
| 11 | wdt-reboot { |
| 12 | compatible = "wdt-reboot"; |
| 13 | wdt = <&wdog1>; |
| 14 | u-boot,dm-spl; |
| 15 | }; |
| 16 | }; |
| 17 | |
| 18 | &{/soc@0} { |
| 19 | u-boot,dm-pre-reloc; |
| 20 | u-boot,dm-spl; |
| 21 | }; |
| 22 | |
| 23 | &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} { |
| 24 | u-boot,dm-spl; |
| 25 | }; |
| 26 | |
| 27 | &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b/regulators} { |
| 28 | u-boot,dm-spl; |
| 29 | }; |
| 30 | |
| 31 | &aips1 { |
| 32 | u-boot,dm-pre-reloc; |
| 33 | u-boot,dm-spl; |
| 34 | }; |
| 35 | |
| 36 | &aips3 { |
| 37 | u-boot,dm-spl; |
| 38 | }; |
| 39 | |
| 40 | &aips4 { |
| 41 | u-boot,dm-spl; |
| 42 | }; |
| 43 | |
| 44 | &clk { |
| 45 | u-boot,dm-pre-reloc; |
| 46 | u-boot,dm-spl; |
| 47 | /delete-property/ assigned-clocks; |
| 48 | /delete-property/ assigned-clock-parents; |
| 49 | /delete-property/ assigned-clock-rates; |
| 50 | }; |
| 51 | |
| 52 | &gpio1 { |
| 53 | u-boot,dm-spl; |
| 54 | }; |
| 55 | |
| 56 | &gpio2 { |
| 57 | u-boot,dm-spl; |
| 58 | }; |
| 59 | |
| 60 | &gpio4 { |
| 61 | u-boot,dm-spl; |
| 62 | }; |
| 63 | |
| 64 | &i2c1 { |
| 65 | u-boot,dm-spl; |
| 66 | }; |
| 67 | |
| 68 | &iomuxc { |
| 69 | u-boot,dm-spl; |
| 70 | }; |
| 71 | |
| 72 | &osc_24m { |
| 73 | u-boot,dm-pre-reloc; |
| 74 | u-boot,dm-spl; |
| 75 | }; |
| 76 | |
| 77 | &pinctrl_i2c1 { |
| 78 | u-boot,dm-spl; |
| 79 | }; |
| 80 | |
| 81 | &pinctrl_pmic { |
| 82 | u-boot,dm-spl; |
| 83 | }; |
| 84 | |
| 85 | &pinctrl_reg_usdhc2_vmmc { |
| 86 | u-boot,dm-spl; |
| 87 | }; |
| 88 | |
| 89 | &pinctrl_uart4 { |
| 90 | u-boot,dm-spl; |
| 91 | }; |
| 92 | |
| 93 | &pinctrl_usdhc2 { |
| 94 | u-boot,dm-spl; |
| 95 | }; |
| 96 | |
| 97 | &pinctrl_usdhc3 { |
| 98 | u-boot,dm-spl; |
| 99 | }; |
| 100 | |
| 101 | &pinctrl_wdog { |
| 102 | u-boot,dm-spl; |
| 103 | }; |
| 104 | |
| 105 | &uart4 { |
| 106 | u-boot,dm-spl; |
| 107 | }; |
| 108 | |
| 109 | &usdhc2 { |
| 110 | u-boot,dm-spl; |
| 111 | }; |
| 112 | |
| 113 | &usdhc3 { |
| 114 | u-boot,dm-spl; |
| 115 | }; |
| 116 | |
| 117 | &wdog1 { |
| 118 | u-boot,dm-spl; |
| 119 | }; |
| 120 | |
| 121 | &binman { |
| 122 | u-boot-spl-ddr { |
| 123 | align = <4>; |
| 124 | align-size = <4>; |
| 125 | filename = "u-boot-spl-ddr.bin"; |
| 126 | pad-byte = <0xff>; |
| 127 | |
| 128 | u-boot-spl { |
| 129 | align-end = <4>; |
| 130 | filename = "u-boot-spl.bin"; |
| 131 | }; |
| 132 | |
| 133 | 1d-imem { |
| 134 | filename = "ddr4_imem_1d.bin"; |
| 135 | size = <0x8000>; |
| 136 | type = "blob-ext"; |
| 137 | }; |
| 138 | |
| 139 | 1d_dmem { |
| 140 | filename = "ddr4_dmem_1d.bin"; |
| 141 | size = <0x4000>; |
| 142 | type = "blob-ext"; |
| 143 | }; |
| 144 | |
| 145 | 2d_imem { |
| 146 | filename = "ddr4_imem_2d.bin"; |
| 147 | size = <0x8000>; |
| 148 | type = "blob-ext"; |
| 149 | }; |
| 150 | |
| 151 | 2d_dmem { |
| 152 | filename = "ddr4_dmem_2d.bin"; |
| 153 | size = <0x4000>; |
| 154 | type = "blob-ext"; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | spl { |
| 159 | filename = "spl.bin"; |
| 160 | |
| 161 | mkimage { |
| 162 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000"; |
| 163 | |
| 164 | blob { |
| 165 | filename = "u-boot-spl-ddr.bin"; |
| 166 | }; |
| 167 | }; |
| 168 | }; |
| 169 | |
| 170 | itb { |
| 171 | filename = "u-boot.itb"; |
| 172 | |
| 173 | fit { |
| 174 | description = "Configuration to load ATF before U-Boot"; |
| 175 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 176 | fit,fdt-list = "of-list"; |
| 177 | #address-cells = <1>; |
| 178 | |
| 179 | images { |
| 180 | uboot { |
| 181 | arch = "arm64"; |
| 182 | compression = "none"; |
| 183 | description = "U-Boot (64-bit)"; |
| 184 | load = <CONFIG_SYS_TEXT_BASE>; |
| 185 | type = "standalone"; |
| 186 | |
| 187 | uboot_blob { |
| 188 | filename = "u-boot-nodtb.bin"; |
| 189 | type = "blob-ext"; |
| 190 | }; |
| 191 | }; |
| 192 | |
| 193 | atf { |
| 194 | arch = "arm64"; |
| 195 | compression = "none"; |
| 196 | description = "ARM Trusted Firmware"; |
| 197 | entry = <0x960000>; |
| 198 | load = <0x960000>; |
| 199 | type = "firmware"; |
| 200 | |
| 201 | atf_blob { |
| 202 | filename = "bl31.bin"; |
Ariel D'Alessandro | 2b22889 | 2022-03-04 09:48:16 -0300 | [diff] [blame] | 203 | type = "atf-bl31"; |
Ariel D'Alessandro | b6d5e13 | 2021-11-23 13:33:30 -0300 | [diff] [blame] | 204 | }; |
| 205 | }; |
| 206 | |
| 207 | binman_fip: fip { |
| 208 | arch = "arm64"; |
| 209 | compression = "none"; |
| 210 | description = "Trusted Firmware FIP"; |
| 211 | load = <0x40310000>; |
| 212 | type = "firmware"; |
| 213 | }; |
| 214 | |
| 215 | @fdt-SEQ { |
| 216 | compression = "none"; |
| 217 | description = "NAME"; |
| 218 | type = "flat_dt"; |
| 219 | |
| 220 | uboot_fdt_blob { |
| 221 | filename = "u-boot.dtb"; |
| 222 | type = "blob-ext"; |
| 223 | }; |
| 224 | }; |
| 225 | }; |
| 226 | |
| 227 | configurations { |
| 228 | default = "@config-DEFAULT-SEQ"; |
| 229 | |
| 230 | binman_configuration: @config-SEQ { |
| 231 | description = "NAME"; |
| 232 | fdt = "fdt-SEQ"; |
| 233 | firmware = "uboot"; |
| 234 | loadables = "atf"; |
| 235 | }; |
| 236 | }; |
| 237 | }; |
| 238 | }; |
| 239 | |
| 240 | imx-boot { |
| 241 | filename = "flash.bin"; |
| 242 | pad-byte = <0x00>; |
| 243 | |
| 244 | spl { |
| 245 | filename = "spl.bin"; |
| 246 | offset = <0x0>; |
| 247 | type = "blob-ext"; |
| 248 | }; |
| 249 | |
| 250 | binman_uboot: uboot { |
| 251 | filename = "u-boot.itb"; |
| 252 | offset = <0x58000>; |
| 253 | type = "blob-ext"; |
| 254 | }; |
| 255 | }; |
| 256 | }; |