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 | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 64 | description = "fsl-ls1028a-kontron-sl28-var3"; |
| 65 | type = "flat_dt"; |
| 66 | arch = "arm"; |
| 67 | compression = "none"; |
| 68 | |
| 69 | blob { |
| 70 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb"; |
| 71 | }; |
| 72 | }; |
| 73 | |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 74 | fdt-4 { |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 75 | description = "fsl-ls1028a-kontron-sl28-var4"; |
| 76 | type = "flat_dt"; |
| 77 | arch = "arm"; |
| 78 | compression = "none"; |
| 79 | |
| 80 | blob { |
| 81 | filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb"; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | configurations { |
| 87 | default = "conf-1"; |
| 88 | |
| 89 | conf-1 { |
| 90 | description = "fsl-ls1028a-kontron-sl28"; |
| 91 | firmware = "uboot"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 92 | fdt = "fdt-1"; |
| 93 | }; |
| 94 | |
| 95 | conf-2 { |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 96 | description = "fsl-ls1028a-kontron-sl28-var1"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 97 | firmware = "uboot"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 98 | fdt = "fdt-2"; |
| 99 | }; |
| 100 | |
| 101 | conf-3 { |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 102 | description = "fsl-ls1028a-kontron-sl28-var3"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 103 | firmware = "uboot"; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 104 | fdt = "fdt-3"; |
| 105 | }; |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 106 | |
| 107 | conf-4 { |
| 108 | description = "fsl-ls1028a-kontron-sl28-var4"; |
| 109 | firmware = "uboot"; |
| 110 | loadables = "uboot"; |
| 111 | fdt = "fdt-4"; |
| 112 | }; |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | }; |
| 116 | }; |
| 117 | |
Michael Walle | f5253fb | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 118 | #ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31 |
| 119 | &binman { |
| 120 | fit { |
| 121 | images { |
| 122 | bl31 { |
| 123 | description = "ARM Trusted Firmware (bl31)"; |
| 124 | type = "firmware"; |
| 125 | arch = "arm"; |
| 126 | os = "arm-trusted-firmware"; |
| 127 | compression = "none"; |
| 128 | load = <CONFIG_SL28_BL31_ENTRY_ADDR>; |
| 129 | entry = <CONFIG_SL28_BL31_ENTRY_ADDR>; |
| 130 | |
| 131 | blob-ext { |
| 132 | filename = "bl31.bin"; |
| 133 | }; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | configurations { |
| 138 | conf-1 { |
| 139 | firmware = "bl31"; |
| 140 | loadables = "uboot"; |
| 141 | }; |
| 142 | |
| 143 | conf-2 { |
| 144 | firmware = "bl31"; |
| 145 | loadables = "uboot"; |
| 146 | }; |
| 147 | |
| 148 | conf-3 { |
| 149 | firmware = "bl31"; |
| 150 | loadables = "uboot"; |
| 151 | }; |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 152 | |
| 153 | conf-4 { |
| 154 | firmware = "bl31"; |
| 155 | loadables = "uboot"; |
| 156 | }; |
Michael Walle | f5253fb | 2020-11-18 17:46:01 +0100 | [diff] [blame] | 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | #endif |
| 161 | |
Michael Walle | 76427fb | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 162 | #ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32 |
| 163 | &binman { |
| 164 | fit { |
| 165 | images { |
| 166 | bl32 { |
| 167 | description = "OP-TEE Trusted OS (bl32)"; |
| 168 | type = "firmware"; |
| 169 | arch = "arm"; |
| 170 | os = "tee"; |
| 171 | compression = "none"; |
| 172 | load = <CONFIG_SL28_BL32_ENTRY_ADDR>; |
| 173 | entry = <CONFIG_SL28_BL32_ENTRY_ADDR>; |
| 174 | |
| 175 | blob-ext { |
| 176 | filename = "tee.bin"; |
| 177 | }; |
| 178 | }; |
| 179 | }; |
| 180 | |
| 181 | configurations { |
| 182 | conf-1 { |
| 183 | loadables = "uboot", "bl32"; |
| 184 | }; |
| 185 | |
| 186 | conf-2 { |
| 187 | loadables = "uboot", "bl32"; |
| 188 | }; |
| 189 | |
| 190 | conf-3 { |
| 191 | loadables = "uboot", "bl32"; |
| 192 | }; |
Michael Walle | 0c16d23 | 2021-01-08 00:08:57 +0100 | [diff] [blame^] | 193 | |
| 194 | conf-4 { |
| 195 | loadables = "uboot", "bl32"; |
| 196 | }; |
Michael Walle | 76427fb | 2020-11-18 17:46:02 +0100 | [diff] [blame] | 197 | }; |
| 198 | }; |
| 199 | }; |
| 200 | #endif |
| 201 | |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 202 | &i2c0 { |
| 203 | rtc: rtc@32 { |
| 204 | }; |
| 205 | }; |
| 206 | |
| 207 | &fspi { |
| 208 | u-boot,dm-pre-reloc; |
| 209 | flash@0 { |
| 210 | u-boot,dm-pre-reloc; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | &dspi2 { |
| 215 | u-boot,dm-pre-reloc; |
| 216 | }; |
| 217 | |
| 218 | &esdhc0 { |
| 219 | u-boot,dm-pre-reloc; |
| 220 | }; |
| 221 | |
| 222 | &esdhc1 { |
| 223 | u-boot,dm-pre-reloc; |
| 224 | }; |
| 225 | |
| 226 | &serial0 { |
| 227 | u-boot,dm-pre-reloc; |
| 228 | }; |
| 229 | |
| 230 | &sysclk { |
| 231 | u-boot,dm-pre-reloc; |
| 232 | }; |