blob: 69363435b457af754482c249a21ba225ee1e3508 [file] [log] [blame]
Jagan Tekic1f09502021-04-26 18:23:46 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com>
4 */
5
Marcel Ziswiler7cf55972021-10-23 01:15:13 +02006/ {
7 binman: binman {
8 multiple-images;
9 };
10};
11
Jagan Tekic1f09502021-04-26 18:23:46 +053012&{/soc@0} {
13 u-boot,dm-pre-reloc;
14 u-boot,dm-spl;
15};
16
17&aips1 {
Jagan Tekic1f09502021-04-26 18:23:46 +053018 u-boot,dm-pre-reloc;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +020019 u-boot,dm-spl;
Jagan Tekic1f09502021-04-26 18:23:46 +053020};
21
22&aips2 {
23 u-boot,dm-spl;
24};
25
26&aips3 {
27 u-boot,dm-spl;
28};
29
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020030&binman {
31 u-boot-spl-ddr {
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +020032 align = <4>;
33 align-size = <4>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020034 filename = "u-boot-spl-ddr.bin";
35 pad-byte = <0xff>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020036
37 u-boot-spl {
38 align-end = <4>;
Marcel Ziswiler86b7f202021-10-23 01:15:15 +020039 filename = "u-boot-spl.bin";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020040 };
41
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020042 1d-imem {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020043 filename = "lpddr4_pmu_train_1d_imem.bin";
44 size = <0x8000>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020045 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020046 };
47
Patrick Wildt49f55652022-01-13 15:22:17 +010048 1d-dmem {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020049 filename = "lpddr4_pmu_train_1d_dmem.bin";
50 size = <0x4000>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020051 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020052 };
53
Patrick Wildt49f55652022-01-13 15:22:17 +010054 2d-imem {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020055 filename = "lpddr4_pmu_train_2d_imem.bin";
56 size = <0x8000>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020057 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020058 };
59
Patrick Wildt49f55652022-01-13 15:22:17 +010060 2d-dmem {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020061 filename = "lpddr4_pmu_train_2d_dmem.bin";
62 size = <0x4000>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020063 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020064 };
65 };
66
67 spl {
68 filename = "spl.bin";
69
70 mkimage {
71 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
72
73 blob {
74 filename = "u-boot-spl-ddr.bin";
75 };
76 };
77 };
78
79 itb {
80 filename = "u-boot.itb";
81
82 fit {
83 description = "Configuration to load ATF before U-Boot";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020084 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
85 fit,fdt-list = "of-list";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +020086 #address-cells = <1>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020087
88 images {
89 uboot {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020090 arch = "arm64";
91 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +020092 description = "U-Boot (64-bit)";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020093 load = <CONFIG_SYS_TEXT_BASE>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +020094 type = "standalone";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020095
Patrick Wildt49f55652022-01-13 15:22:17 +010096 uboot-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020097 filename = "u-boot-nodtb.bin";
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020098 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020099 };
100 };
101
102 atf {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200103 arch = "arm64";
104 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200105 description = "ARM Trusted Firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200106 entry = <0x920000>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200107 load = <0x920000>;
108 type = "firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200109
Patrick Wildt49f55652022-01-13 15:22:17 +0100110 atf-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200111 filename = "bl31.bin";
Marcel Ziswiler310de882022-04-08 10:06:56 +0200112 type = "atf-bl31";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200113 };
114 };
115
116 binman_fip: fip {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200117 arch = "arm64";
118 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200119 description = "Trusted Firmware FIP";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200120 load = <0x40310000>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200121 type = "firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200122 };
123
124 @fdt-SEQ {
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200125 compression = "none";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200126 description = "NAME";
127 type = "flat_dt";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200128
Patrick Wildt49f55652022-01-13 15:22:17 +0100129 uboot-fdt-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200130 filename = "u-boot.dtb";
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200131 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200132 };
133 };
134 };
135
136 configurations {
137 default = "@config-DEFAULT-SEQ";
138
139 binman_configuration: @config-SEQ {
140 description = "NAME";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200141 fdt = "fdt-SEQ";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200142 firmware = "uboot";
143 loadables = "atf";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200144 };
145 };
146 };
147 };
148
149 imx-boot {
150 filename = "flash.bin";
151 pad-byte = <0x00>;
152
Mamta Shuklade997212022-07-12 14:36:18 +0000153#ifdef CONFIG_FSPI_CONF_HEADER
154 fspi_conf_block {
155 filename = CONFIG_FSPI_CONF_FILE;
156 type = "blob-ext";
157 size = <0x1000>;
158 };
159
160 spl {
161 filename = "spl.bin";
162 offset = <0x1000>;
163 type = "blob-ext";
164 };
165
166 binman_uboot: uboot {
167 filename = "u-boot.itb";
168 offset = <0x58C00>;
169 type = "blob-ext";
170 };
171#else
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200172 spl {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200173 filename = "spl.bin";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200174 offset = <0x0>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200175 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200176 };
177
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200178 binman_uboot: uboot {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200179 filename = "u-boot.itb";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200180 offset = <0x57c00>;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200181 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200182 };
Mamta Shuklade997212022-07-12 14:36:18 +0000183#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200184 };
185};
186
Jagan Tekic1f09502021-04-26 18:23:46 +0530187&clk {
Jagan Tekic1f09502021-04-26 18:23:46 +0530188 u-boot,dm-pre-reloc;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200189 u-boot,dm-spl;
Jagan Tekic1f09502021-04-26 18:23:46 +0530190 /delete-property/ assigned-clocks;
191 /delete-property/ assigned-clock-parents;
192 /delete-property/ assigned-clock-rates;
193};
194
195&iomuxc {
196 u-boot,dm-spl;
197};
198
199&osc_24m {
Jagan Tekic1f09502021-04-26 18:23:46 +0530200 u-boot,dm-pre-reloc;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200201 u-boot,dm-spl;
Jagan Tekic1f09502021-04-26 18:23:46 +0530202};