Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | /* |
Marcel Ziswiler | 5cfa559 | 2021-10-09 22:41:07 +0200 | [diff] [blame] | 3 | * Copyright 2020-2021 Toradex |
Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 4 | */ |
Jagan Teki | c1f0950 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 5 | |
| 6 | #include "imx8mm-u-boot.dtsi" |
| 7 | |
Marek Vasut | d304e7a | 2020-04-29 15:04:27 +0200 | [diff] [blame] | 8 | / { |
Marcel Ziswiler | 5cfa559 | 2021-10-09 22:41:07 +0200 | [diff] [blame] | 9 | binman: binman { |
| 10 | multiple-images; |
| 11 | }; |
| 12 | |
Marcel Ziswiler | 8d060e4 | 2021-10-09 22:41:05 +0200 | [diff] [blame] | 13 | firmware { |
| 14 | optee { |
| 15 | compatible = "linaro,optee-tz"; |
| 16 | method = "smc"; |
| 17 | }; |
| 18 | }; |
| 19 | |
Marek Vasut | d304e7a | 2020-04-29 15:04:27 +0200 | [diff] [blame] | 20 | wdt-reboot { |
| 21 | compatible = "wdt-reboot"; |
Marek Vasut | d304e7a | 2020-04-29 15:04:27 +0200 | [diff] [blame] | 22 | u-boot,dm-spl; |
Marcel Ziswiler | 088eb75 | 2021-10-09 22:41:06 +0200 | [diff] [blame] | 23 | wdt = <&wdog1>; |
Marek Vasut | d304e7a | 2020-04-29 15:04:27 +0200 | [diff] [blame] | 24 | }; |
| 25 | }; |
| 26 | |
Marcel Ziswiler | 088eb75 | 2021-10-09 22:41:06 +0200 | [diff] [blame] | 27 | &{/soc@0/bus@30800000/i2c@30a20000/pmic} { |
| 28 | u-boot,dm-spl; |
| 29 | }; |
| 30 | |
| 31 | &{/soc@0/bus@30800000/i2c@30a20000/pmic/regulators} { |
| 32 | u-boot,dm-spl; |
| 33 | }; |
| 34 | |
Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 35 | &gpio1 { |
| 36 | u-boot,dm-spl; |
| 37 | }; |
| 38 | |
| 39 | &gpio2 { |
| 40 | u-boot,dm-spl; |
| 41 | }; |
| 42 | |
| 43 | &gpio3 { |
| 44 | u-boot,dm-spl; |
| 45 | }; |
| 46 | |
| 47 | &gpio4 { |
| 48 | u-boot,dm-spl; |
| 49 | }; |
| 50 | |
| 51 | &gpio5 { |
| 52 | u-boot,dm-spl; |
| 53 | }; |
| 54 | |
| 55 | &i2c1 { |
| 56 | u-boot,dm-spl; |
| 57 | }; |
| 58 | |
Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 59 | &pinctrl_i2c1 { |
| 60 | u-boot,dm-spl; |
| 61 | }; |
| 62 | |
| 63 | &pinctrl_pmic { |
| 64 | u-boot,dm-spl; |
| 65 | }; |
| 66 | |
| 67 | &pinctrl_uart1 { |
| 68 | u-boot,dm-spl; |
| 69 | }; |
| 70 | |
Igor Opaniuk | 0c45a51 | 2020-02-14 14:36:43 +0200 | [diff] [blame] | 71 | &pinctrl_usdhc1 { |
| 72 | u-boot,dm-spl; |
| 73 | }; |
| 74 | |
Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 75 | &pinctrl_usdhc2 { |
| 76 | u-boot,dm-spl; |
| 77 | }; |
| 78 | |
Marcel Ziswiler | f254a46 | 2021-10-09 22:41:13 +0200 | [diff] [blame] | 79 | &pinctrl_wdog { |
| 80 | u-boot,dm-spl; |
| 81 | }; |
| 82 | |
Igor Opaniuk | 14d5aef | 2020-01-28 14:42:25 +0100 | [diff] [blame] | 83 | &uart1 { |
| 84 | u-boot,dm-spl; |
| 85 | }; |
| 86 | |
| 87 | &usdhc1 { |
| 88 | u-boot,dm-spl; |
| 89 | }; |
| 90 | |
| 91 | &usdhc2 { |
| 92 | u-boot,dm-spl; |
| 93 | }; |
| 94 | |
| 95 | &usdhc3 { |
| 96 | u-boot,dm-spl; |
| 97 | }; |
Marek Vasut | d304e7a | 2020-04-29 15:04:27 +0200 | [diff] [blame] | 98 | |
| 99 | &wdog1 { |
| 100 | u-boot,dm-spl; |
| 101 | }; |
Marcel Ziswiler | 5cfa559 | 2021-10-09 22:41:07 +0200 | [diff] [blame] | 102 | |
| 103 | &binman { |
| 104 | u-boot-spl-ddr { |
| 105 | filename = "u-boot-spl-ddr.bin"; |
| 106 | pad-byte = <0xff>; |
| 107 | align-size = <4>; |
| 108 | align = <4>; |
| 109 | |
| 110 | u-boot-spl { |
| 111 | align-end = <4>; |
| 112 | }; |
| 113 | |
| 114 | blob_1: blob-ext@1 { |
| 115 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
| 116 | size = <0x8000>; |
| 117 | }; |
| 118 | |
| 119 | blob_2: blob-ext@2 { |
| 120 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
| 121 | size = <0x4000>; |
| 122 | }; |
| 123 | |
| 124 | blob_3: blob-ext@3 { |
| 125 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
| 126 | size = <0x8000>; |
| 127 | }; |
| 128 | |
| 129 | blob_4: blob-ext@4 { |
| 130 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
| 131 | size = <0x4000>; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | spl { |
| 136 | filename = "spl.bin"; |
| 137 | |
| 138 | mkimage { |
| 139 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; |
| 140 | |
| 141 | blob { |
| 142 | filename = "u-boot-spl-ddr.bin"; |
| 143 | }; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | itb { |
| 148 | filename = "u-boot.itb"; |
| 149 | |
| 150 | fit { |
| 151 | description = "Configuration to load ATF before U-Boot"; |
| 152 | #address-cells = <1>; |
| 153 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 154 | |
| 155 | images { |
| 156 | uboot { |
| 157 | description = "U-Boot (64-bit)"; |
| 158 | type = "standalone"; |
| 159 | arch = "arm64"; |
| 160 | compression = "none"; |
| 161 | load = <CONFIG_SYS_TEXT_BASE>; |
| 162 | |
| 163 | uboot_blob: blob-ext { |
| 164 | filename = "u-boot-nodtb.bin"; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | atf { |
| 169 | description = "ARM Trusted Firmware"; |
| 170 | type = "firmware"; |
| 171 | arch = "arm64"; |
| 172 | compression = "none"; |
| 173 | load = <0x920000>; |
| 174 | entry = <0x920000>; |
| 175 | |
| 176 | atf_blob: blob-ext { |
| 177 | filename = "bl31.bin"; |
| 178 | }; |
| 179 | }; |
| 180 | |
| 181 | fdt { |
| 182 | description = "NAME"; |
| 183 | type = "flat_dt"; |
| 184 | compression = "none"; |
| 185 | |
| 186 | uboot_fdt_blob: blob-ext { |
| 187 | filename = "u-boot.dtb"; |
| 188 | }; |
| 189 | }; |
| 190 | }; |
| 191 | |
| 192 | configurations { |
| 193 | default = "conf"; |
| 194 | |
| 195 | conf { |
| 196 | description = "NAME"; |
| 197 | firmware = "uboot"; |
| 198 | loadables = "atf"; |
| 199 | fdt = "fdt"; |
| 200 | }; |
| 201 | }; |
| 202 | }; |
| 203 | }; |
| 204 | |
| 205 | imx-boot { |
| 206 | filename = "flash.bin"; |
| 207 | pad-byte = <0x00>; |
| 208 | |
| 209 | spl: blob-ext@1 { |
| 210 | offset = <0x0>; |
| 211 | filename = "spl.bin"; |
| 212 | }; |
| 213 | |
| 214 | uboot: blob-ext@2 { |
| 215 | offset = <0x5fc00>; |
| 216 | filename = "u-boot.itb"; |
| 217 | }; |
| 218 | }; |
| 219 | }; |