Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | #include <config.h> |
| 4 | |
| 5 | / { |
| 6 | aliases { |
Michael Walle | e668bec | 2020-12-20 22:35:13 +0100 | [diff] [blame] | 7 | mmc0 = &esdhc1; |
| 8 | mmc1 = &esdhc0; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 9 | i2c0 = &i2c0; |
| 10 | i2c1 = &i2c3; |
| 11 | i2c2 = &i2c4; |
| 12 | rtc0 = &rtc; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 13 | ethernet2 = &enetc2; |
| 14 | ethernet3 = &enetc6; |
| 15 | }; |
| 16 | |
Michael Walle | e057760 | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 17 | binman: binman { |
Michael Walle | d8ffd93 | 2021-09-29 13:39:10 +0200 | [diff] [blame^] | 18 | multiple-images; |
| 19 | }; |
| 20 | }; |
| 21 | |
| 22 | &binman { |
| 23 | u_boot_rom: u-boot-rom { |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 24 | filename = "u-boot.rom"; |
| 25 | pad-byte = <0xff>; |
| 26 | |
| 27 | u-boot-spl { |
| 28 | }; |
| 29 | |
| 30 | fit { |
| 31 | offset = <CONFIG_SPL_PAD_TO>; |
| 32 | description = "FIT image with multiple configurations"; |
| 33 | |
| 34 | images { |
| 35 | uboot { |
| 36 | description = "U-Boot"; |
| 37 | type = "firmware"; |
| 38 | os = "u-boot"; |
| 39 | arch = "arm"; |
| 40 | compression = "none"; |
| 41 | load = <CONFIG_SYS_TEXT_BASE>; |
| 42 | |
| 43 | u-boot-nodtb { |
| 44 | }; |
| 45 | }; |
| 46 | |
| 47 | fdt-1 { |
| 48 | description = "fsl-ls1028a-kontron-sl28"; |
| 49 | type = "flat_dt"; |
| 50 | arch = "arm"; |
| 51 | compression = "none"; |
| 52 | |
| 53 | blob { |
| 54 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28.dtb"; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | fdt-2 { |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 59 | description = "fsl-ls1028a-kontron-sl28-var1"; |
| 60 | type = "flat_dt"; |
| 61 | arch = "arm"; |
| 62 | compression = "none"; |
| 63 | |
| 64 | blob { |
| 65 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dtb"; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | fdt-3 { |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 70 | description = "fsl-ls1028a-kontron-sl28-var2"; |
| 71 | type = "flat_dt"; |
| 72 | arch = "arm"; |
| 73 | compression = "none"; |
| 74 | |
| 75 | blob { |
| 76 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dtb"; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | fdt-4 { |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 81 | description = "fsl-ls1028a-kontron-sl28-var3"; |
| 82 | type = "flat_dt"; |
| 83 | arch = "arm"; |
| 84 | compression = "none"; |
| 85 | |
| 86 | blob { |
| 87 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb"; |
| 88 | }; |
| 89 | }; |
| 90 | |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 91 | fdt-5 { |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 92 | description = "fsl-ls1028a-kontron-sl28-var4"; |
| 93 | type = "flat_dt"; |
| 94 | arch = "arm"; |
| 95 | compression = "none"; |
| 96 | |
| 97 | blob { |
| 98 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb"; |
| 99 | }; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | configurations { |
| 104 | default = "conf-1"; |
| 105 | |
| 106 | conf-1 { |
| 107 | description = "fsl-ls1028a-kontron-sl28"; |
| 108 | firmware = "uboot"; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 109 | fdt = "fdt-1"; |
| 110 | }; |
| 111 | |
| 112 | conf-2 { |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 113 | description = "fsl-ls1028a-kontron-sl28-var1"; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 114 | firmware = "uboot"; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 115 | fdt = "fdt-2"; |
| 116 | }; |
| 117 | |
| 118 | conf-3 { |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 119 | description = "fsl-ls1028a-kontron-sl28-var2"; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 120 | firmware = "uboot"; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 121 | fdt = "fdt-3"; |
| 122 | }; |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 123 | |
| 124 | conf-4 { |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 125 | description = "fsl-ls1028a-kontron-sl28-var3"; |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 126 | firmware = "uboot"; |
| 127 | loadables = "uboot"; |
| 128 | fdt = "fdt-4"; |
| 129 | }; |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 130 | |
| 131 | conf-5 { |
| 132 | description = "fsl-ls1028a-kontron-sl28-var4"; |
| 133 | firmware = "uboot"; |
| 134 | loadables = "uboot"; |
| 135 | fdt = "fdt-5"; |
| 136 | }; |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
| 141 | |
Michael Walle | d8ffd93 | 2021-09-29 13:39:10 +0200 | [diff] [blame^] | 142 | &binman { |
| 143 | u-boot-update { |
| 144 | filename = "u-boot.update"; |
| 145 | |
| 146 | fit { |
| 147 | description = "FIT update image"; |
| 148 | |
| 149 | images { |
| 150 | u-boot-bin { |
| 151 | description = "U-Boot"; |
| 152 | type = "firmware"; |
| 153 | os = "u-boot"; |
| 154 | arch = "arm"; |
| 155 | compression = "none"; |
| 156 | load = <0>; /* unused */ |
| 157 | |
| 158 | blob { |
| 159 | filename = "u-boot.rom"; |
| 160 | }; |
| 161 | }; |
| 162 | }; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
Michael Walle | 9b3843f | 2021-03-26 19:40:59 +0100 | [diff] [blame] | 167 | #ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE |
| 168 | / { |
| 169 | chosen { |
| 170 | stdout-path = "serial2:115200n8"; |
| 171 | }; |
| 172 | }; |
| 173 | #endif |
| 174 | |
Michael Walle | e057760 | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 175 | #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31 |
Michael Walle | d8ffd93 | 2021-09-29 13:39:10 +0200 | [diff] [blame^] | 176 | &u_boot_rom { |
Michael Walle | e057760 | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 177 | fit { |
| 178 | images { |
| 179 | bl31 { |
| 180 | description = "ARM Trusted Firmware (bl31)"; |
| 181 | type = "firmware"; |
| 182 | arch = "arm"; |
| 183 | os = "arm-trusted-firmware"; |
| 184 | compression = "none"; |
| 185 | load = <CONFIG_SL28_BL31_ENTRY_ADDR>; |
| 186 | entry = <CONFIG_SL28_BL31_ENTRY_ADDR>; |
| 187 | |
| 188 | blob-ext { |
| 189 | filename = "bl31.bin"; |
| 190 | }; |
| 191 | }; |
| 192 | }; |
| 193 | |
| 194 | configurations { |
| 195 | conf-1 { |
| 196 | firmware = "bl31"; |
| 197 | loadables = "uboot"; |
| 198 | }; |
| 199 | |
| 200 | conf-2 { |
| 201 | firmware = "bl31"; |
| 202 | loadables = "uboot"; |
| 203 | }; |
| 204 | |
| 205 | conf-3 { |
| 206 | firmware = "bl31"; |
| 207 | loadables = "uboot"; |
| 208 | }; |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 209 | |
| 210 | conf-4 { |
| 211 | firmware = "bl31"; |
| 212 | loadables = "uboot"; |
| 213 | }; |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 214 | |
| 215 | conf-5 { |
| 216 | firmware = "bl31"; |
| 217 | loadables = "uboot"; |
| 218 | }; |
Michael Walle | e057760 | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 219 | }; |
| 220 | }; |
| 221 | }; |
| 222 | #endif |
| 223 | |
Michael Walle | 4c450da | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 224 | #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32 |
Michael Walle | d8ffd93 | 2021-09-29 13:39:10 +0200 | [diff] [blame^] | 225 | &u_boot_rom { |
Michael Walle | 4c450da | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 226 | fit { |
| 227 | images { |
| 228 | bl32 { |
| 229 | description = "OP-TEE Trusted OS (bl32)"; |
| 230 | type = "firmware"; |
| 231 | arch = "arm"; |
| 232 | os = "tee"; |
| 233 | compression = "none"; |
| 234 | load = <CONFIG_SL28_BL32_ENTRY_ADDR>; |
| 235 | entry = <CONFIG_SL28_BL32_ENTRY_ADDR>; |
| 236 | |
| 237 | blob-ext { |
| 238 | filename = "tee.bin"; |
| 239 | }; |
| 240 | }; |
| 241 | }; |
| 242 | |
| 243 | configurations { |
| 244 | conf-1 { |
| 245 | loadables = "uboot", "bl32"; |
| 246 | }; |
| 247 | |
| 248 | conf-2 { |
| 249 | loadables = "uboot", "bl32"; |
| 250 | }; |
| 251 | |
| 252 | conf-3 { |
| 253 | loadables = "uboot", "bl32"; |
| 254 | }; |
Michael Walle | 4029d35 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 255 | |
| 256 | conf-4 { |
| 257 | loadables = "uboot", "bl32"; |
| 258 | }; |
Michael Walle | b463010 | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 259 | |
| 260 | conf-5 { |
| 261 | loadables = "uboot", "bl32"; |
| 262 | }; |
Michael Walle | 4c450da | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 263 | }; |
| 264 | }; |
| 265 | }; |
| 266 | #endif |
| 267 | |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 268 | &i2c0 { |
| 269 | rtc: rtc@32 { |
| 270 | }; |
| 271 | }; |
| 272 | |
| 273 | &fspi { |
| 274 | u-boot,dm-pre-reloc; |
| 275 | flash@0 { |
| 276 | u-boot,dm-pre-reloc; |
| 277 | }; |
| 278 | }; |
| 279 | |
| 280 | &dspi2 { |
| 281 | u-boot,dm-pre-reloc; |
| 282 | }; |
| 283 | |
| 284 | &esdhc0 { |
| 285 | u-boot,dm-pre-reloc; |
| 286 | }; |
| 287 | |
| 288 | &esdhc1 { |
| 289 | u-boot,dm-pre-reloc; |
| 290 | }; |
| 291 | |
Michael Walle | 9b3843f | 2021-03-26 19:40:59 +0100 | [diff] [blame] | 292 | &lpuart1 { |
| 293 | u-boot,dm-pre-reloc; |
| 294 | }; |
| 295 | |
Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 296 | &serial0 { |
| 297 | u-boot,dm-pre-reloc; |
| 298 | }; |
| 299 | |
| 300 | &sysclk { |
| 301 | u-boot,dm-pre-reloc; |
| 302 | }; |