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