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