Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com> | ||||
4 | */ | ||||
5 | |||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 6 | / { |
7 | binman: binman { | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 8 | }; |
Tim Harvey | b34f5a1 | 2023-08-24 12:01:42 -0700 | [diff] [blame] | 9 | |
10 | #ifdef CONFIG_OPTEE | ||||
11 | firmware { | ||||
12 | optee { | ||||
13 | compatible = "linaro,optee-tz"; | ||||
14 | method = "smc"; | ||||
15 | }; | ||||
16 | }; | ||||
17 | #endif | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 18 | }; |
19 | |||||
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 20 | #ifdef CONFIG_FSL_CAAM |
21 | &crypto { | ||||
22 | bootph-pre-ram; | ||||
23 | }; | ||||
24 | #endif | ||||
25 | |||||
Marcel Ziswiler | 6dd051a | 2022-11-07 22:22:41 +0100 | [diff] [blame] | 26 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 27 | bootph-all; |
28 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 29 | }; |
30 | |||||
31 | &aips1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-all; |
33 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 34 | }; |
35 | |||||
36 | &aips2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 38 | }; |
39 | |||||
40 | &aips3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 42 | }; |
43 | |||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 44 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 45 | filename = "flash.bin"; |
46 | section { | ||||
47 | pad-byte = <0x00>; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 48 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 49 | #ifdef CONFIG_FSPI_CONF_HEADER |
50 | fspi_conf_block { | ||||
51 | filename = CONFIG_FSPI_CONF_FILE; | ||||
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 52 | type = "blob-ext"; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 53 | size = <0x1000>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 54 | }; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 55 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 56 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 57 | nxp-imx8mimage { |
58 | filename = "u-boot-spl-mkimage.bin"; | ||||
59 | nxp,boot-from = "sd"; | ||||
60 | nxp,rom-version = <1>; | ||||
61 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; | ||||
62 | args; /* Needed by mkimage etype superclass */ | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 63 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 64 | section { |
65 | align = <4>; | ||||
66 | align-size = <4>; | ||||
67 | filename = "u-boot-spl-ddr.bin"; | ||||
68 | pad-byte = <0xff>; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 69 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 70 | u-boot-spl { |
71 | align-end = <4>; | ||||
72 | filename = "u-boot-spl.bin"; | ||||
73 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 74 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 75 | ddr-1d-imem-fw { |
76 | filename = "lpddr4_pmu_train_1d_imem.bin"; | ||||
77 | align-end = <4>; | ||||
78 | type = "blob-ext"; | ||||
79 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 80 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 81 | ddr-1d-dmem-fw { |
82 | filename = "lpddr4_pmu_train_1d_dmem.bin"; | ||||
83 | align-end = <4>; | ||||
84 | type = "blob-ext"; | ||||
85 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 86 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 87 | ddr-2d-imem-fw { |
88 | filename = "lpddr4_pmu_train_2d_imem.bin"; | ||||
89 | align-end = <4>; | ||||
90 | type = "blob-ext"; | ||||
91 | }; | ||||
92 | |||||
93 | ddr-2d-dmem-fw { | ||||
94 | filename = "lpddr4_pmu_train_2d_dmem.bin"; | ||||
95 | align-end = <4>; | ||||
96 | type = "blob-ext"; | ||||
97 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 98 | }; |
99 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 100 | |
101 | fit { | ||||
102 | description = "Configuration to load ATF before U-Boot"; | ||||
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 103 | #ifndef CONFIG_IMX_HAB |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 104 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 105 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 106 | fit,fdt-list = "of-list"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 107 | #address-cells = <1>; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 108 | #ifdef CONFIG_FSPI_CONF_HEADER |
109 | offset = <0x58C00>; | ||||
110 | #else | ||||
111 | offset = <0x57c00>; | ||||
112 | #endif | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 113 | |
114 | images { | ||||
115 | uboot { | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 116 | arch = "arm64"; |
117 | compression = "none"; | ||||
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 118 | description = "U-Boot (64-bit)"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 119 | load = <CONFIG_TEXT_BASE>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 120 | type = "standalone"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 121 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 122 | uboot-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 123 | filename = "u-boot-nodtb.bin"; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 124 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 125 | }; |
126 | }; | ||||
127 | |||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 128 | #ifndef CONFIG_ARMV8_PSCI |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 129 | atf { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 130 | arch = "arm64"; |
131 | compression = "none"; | ||||
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 132 | description = "ARM Trusted Firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 133 | entry = <0x920000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 134 | load = <0x920000>; |
135 | type = "firmware"; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 136 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 137 | atf-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 138 | filename = "bl31.bin"; |
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 139 | type = "atf-bl31"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 140 | }; |
141 | }; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 142 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 143 | |
144 | binman_fip: fip { | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 145 | arch = "arm64"; |
146 | compression = "none"; | ||||
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 147 | description = "Trusted Firmware FIP"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 148 | load = <0x40310000>; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 149 | type = "firmware"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 150 | }; |
151 | |||||
152 | @fdt-SEQ { | ||||
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 153 | compression = "none"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 154 | description = "NAME"; |
155 | type = "flat_dt"; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 156 | |
Patrick Wildt | a6ca691 | 2022-01-13 15:22:17 +0100 | [diff] [blame] | 157 | uboot-fdt-blob { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 158 | filename = "u-boot.dtb"; |
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 159 | type = "blob-ext"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 160 | }; |
161 | }; | ||||
162 | }; | ||||
163 | |||||
164 | configurations { | ||||
165 | default = "@config-DEFAULT-SEQ"; | ||||
166 | |||||
Simon Glass | ceea784 | 2023-08-23 19:18:01 -0600 | [diff] [blame] | 167 | @config-SEQ { |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 168 | description = "NAME"; |
Marcel Ziswiler | 0e2d37e | 2021-10-23 01:15:14 +0200 | [diff] [blame] | 169 | fdt = "fdt-SEQ"; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 170 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 171 | #ifndef CONFIG_ARMV8_PSCI |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 172 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 173 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 174 | }; |
175 | }; | ||||
176 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 177 | }; |
178 | }; | ||||
179 | |||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 180 | &clk { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 181 | bootph-all; |
182 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 183 | /delete-property/ assigned-clocks; |
184 | /delete-property/ assigned-clock-parents; | ||||
185 | /delete-property/ assigned-clock-rates; | ||||
186 | }; | ||||
187 | |||||
188 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 189 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 190 | }; |
191 | |||||
192 | &osc_24m { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 193 | bootph-all; |
194 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 195 | }; |
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 196 | |
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 197 | #ifdef CONFIG_FSL_CAAM |
198 | &sec_jr0 { | ||||
199 | bootph-pre-ram; | ||||
200 | }; | ||||
201 | |||||
202 | &sec_jr1 { | ||||
203 | bootph-pre-ram; | ||||
204 | }; | ||||
205 | |||||
206 | &sec_jr2 { | ||||
207 | bootph-pre-ram; | ||||
208 | }; | ||||
209 | #endif | ||||
210 | |||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 211 | &spba1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 212 | bootph-all; |
213 | bootph-pre-ram; | ||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 214 | }; |
215 | |||||
216 | &spba2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 217 | bootph-all; |
218 | bootph-pre-ram; | ||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 219 | }; |