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 | 654652a | 2020-12-20 22:35:13 +0100 | [diff] [blame] | 7 | mmc0 = &esdhc1; |
Michael Walle | 2a20ed1 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 8 | mmc1 = &esdhc; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 9 | i2c0 = &i2c0; |
| 10 | i2c1 = &i2c3; |
| 11 | i2c2 = &i2c4; |
| 12 | rtc0 = &rtc; |
Michael Walle | 2a20ed1 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 13 | ethernet2 = &enetc_port2; |
| 14 | ethernet3 = &enetc_port3; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 15 | }; |
| 16 | |
Michael Walle | f5253fb | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 17 | binman: binman { |
Michael Walle | 927f0c4 | 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 | 36ba764 | 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 | 0c16d23 | 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 | ba3aa6b | 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 | 36ba764 | 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 | ba3aa6b | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 91 | fdt-5 { |
Michael Walle | 36ba764 | 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 | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 109 | fdt = "fdt-1"; |
| 110 | }; |
| 111 | |
| 112 | conf-2 { |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 113 | description = "fsl-ls1028a-kontron-sl28-var1"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 114 | firmware = "uboot"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 115 | fdt = "fdt-2"; |
| 116 | }; |
| 117 | |
| 118 | conf-3 { |
Michael Walle | ba3aa6b | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 119 | description = "fsl-ls1028a-kontron-sl28-var2"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 120 | firmware = "uboot"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 121 | fdt = "fdt-3"; |
| 122 | }; |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 123 | |
| 124 | conf-4 { |
Michael Walle | ba3aa6b | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 125 | description = "fsl-ls1028a-kontron-sl28-var3"; |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 126 | firmware = "uboot"; |
| 127 | loadables = "uboot"; |
| 128 | fdt = "fdt-4"; |
| 129 | }; |
Michael Walle | ba3aa6b | 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 | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | }; |
| 141 | |
Michael Walle | 927f0c4 | 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 | 898a8be | 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 | f5253fb | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 175 | #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31 |
Michael Walle | 927f0c4 | 2021-09-29 13:39:10 +0200 | [diff] [blame] | 176 | &u_boot_rom { |
Michael Walle | f5253fb | 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 | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 209 | |
| 210 | conf-4 { |
| 211 | firmware = "bl31"; |
| 212 | loadables = "uboot"; |
| 213 | }; |
Michael Walle | ba3aa6b | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 214 | |
| 215 | conf-5 { |
| 216 | firmware = "bl31"; |
| 217 | loadables = "uboot"; |
| 218 | }; |
Michael Walle | f5253fb | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 219 | }; |
| 220 | }; |
| 221 | }; |
| 222 | #endif |
| 223 | |
Michael Walle | 76427fb | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 224 | #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32 |
Michael Walle | 927f0c4 | 2021-09-29 13:39:10 +0200 | [diff] [blame] | 225 | &u_boot_rom { |
Michael Walle | 76427fb | 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 | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame] | 255 | |
| 256 | conf-4 { |
| 257 | loadables = "uboot", "bl32"; |
| 258 | }; |
Michael Walle | ba3aa6b | 2021-01-08 00:08:58 +0100 | [diff] [blame] | 259 | |
| 260 | conf-5 { |
| 261 | loadables = "uboot", "bl32"; |
| 262 | }; |
Michael Walle | 76427fb | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 263 | }; |
| 264 | }; |
| 265 | }; |
| 266 | #endif |
| 267 | |
Michael Walle | 36ba764 | 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 | |
Michael Walle | 2a20ed1 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 284 | &esdhc { |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 285 | u-boot,dm-pre-reloc; |
| 286 | }; |
| 287 | |
| 288 | &esdhc1 { |
| 289 | u-boot,dm-pre-reloc; |
| 290 | }; |
| 291 | |
Michael Walle | 898a8be | 2021-03-26 19:40:59 +0100 | [diff] [blame] | 292 | &lpuart1 { |
| 293 | u-boot,dm-pre-reloc; |
| 294 | }; |
| 295 | |
Michael Walle | 2a20ed1 | 2021-10-13 18:14:15 +0200 | [diff] [blame] | 296 | &duart0 { |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 297 | u-boot,dm-pre-reloc; |
| 298 | }; |
| 299 | |
Michael Walle | 0a908fb | 2021-10-13 18:14:25 +0200 | [diff] [blame] | 300 | /* |
| 301 | * u-boot will enable the device in the linux device tree in place. Because |
| 302 | * we are using the linux device tree, we have to enable the PCI controller |
| 303 | * ourselves. |
| 304 | */ |
| 305 | &pcie1 { |
| 306 | status = "okay"; |
| 307 | }; |
| 308 | |
| 309 | &pcie2 { |
| 310 | status = "okay"; |
| 311 | }; |
| 312 | |
Michael Walle | a81b2e8 | 2021-10-13 18:14:03 +0200 | [diff] [blame] | 313 | &soc { |
| 314 | u-boot,dm-pre-reloc; |
| 315 | }; |
| 316 | |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 317 | &sysclk { |
| 318 | u-boot,dm-pre-reloc; |
| 319 | }; |