blob: 458387161c3550587133589636b957d998c96796 [file] [log] [blame]
Michal Simekcaa11b82024-11-01 10:17:58 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx ZynqMP platforms
4 *
5 * (C) Copyright 2024, Advanced Micro Devices, Inc.
6 *
7 * Michal Simek <michal.simek@amd.com>
8 */
9
10#include <config.h>
11
12/dts-v1/;
13/ {
14 binman: binman {
15 multiple-images;
16
Prasad Kummari6629bd82025-01-21 13:24:59 +010017#ifdef CONFIG_SPL
Michal Simekcaa11b82024-11-01 10:17:58 +010018 /* u-boot.itb generation in a static way */
19 itb {
20 filename = "u-boot.itb";
21 pad-byte = <0>;
22
23 fit {
24 description = "Configuration for Xilinx ZynqMP SoC";
25 fit,align = <0x8>;
26 fit,external-offset = <0x0>;
27 fit,fdt-list = "of-list";
28 images {
29 uboot {
30 description = "U-Boot (64-bit)";
31 type = "firmware";
32 os = "u-boot";
33 arch = "arm64";
34 compression = "none";
35 load = /bits/ 64 <CONFIG_TEXT_BASE>;
36 entry = /bits/ 64 <CONFIG_TEXT_BASE>;
37 hash {
38 algo = "md5";
39 };
40 u-boot-nodtb {
41 };
42 };
43 atf {
44 description = "Trusted Firmware-A";
45 type = "firmware";
46 os = "arm-trusted-firmware";
47 arch = "arm64";
48 compression = "none";
49 load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
50 entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
51 hash {
52 algo = "md5";
53 };
54 atf-bl31 {
55 optional;
56 };
57 };
58 tee {
59 description = "OP-TEE";
60 type = "tee";
61 arch = "arm64";
62 compression = "none";
63 os = "tee";
Michal Simek775cbf42025-02-04 09:53:39 +010064 load = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
65 entry = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
66 hash {
67 algo = "md5";
68 };
Michal Simekcaa11b82024-11-01 10:17:58 +010069 tee-os {
70 optional;
71 };
72 };
73 @fdt-SEQ {
74 description = "NAME";
75 type = "flat_dt";
76 arch = "arm64";
77 compression = "none";
78 load = <0x0 0x100000>;
79 hash-1 {
80 algo = "md5";
81 };
82 };
83 };
84 configurations {
85 default = "@conf-DEFAULT-SEQ";
86 @conf-SEQ {
87 description = "NAME";
88 firmware = "atf";
89 loadables = "tee", "uboot";
90 fdt = "fdt-SEQ";
91 };
92 };
93 };
94 };
95
Michal Simek7bbd3bb2024-11-20 09:05:27 +010096 itb-single {
97 filename = "u-boot-single.itb";
98 pad-byte = <0>;
99
100 fit {
101 description = "Configuration for Xilinx ZynqMP SoC";
102 fit,align = <0x8>;
103 fit,external-offset = <0x0>;
104 fit,fdt-list = "of-list";
105 images {
106 uboot {
107 description = "U-Boot (64-bit)";
108 type = "firmware";
109 os = "u-boot";
110 arch = "arm64";
111 compression = "none";
112 load = /bits/ 64 <CONFIG_TEXT_BASE>;
113 entry = /bits/ 64 <CONFIG_TEXT_BASE>;
114 hash {
115 algo = "md5";
116 };
117 u-boot-nodtb {
118 };
119 };
120 atf {
121 description = "Trusted Firmware-A";
122 type = "firmware";
123 os = "arm-trusted-firmware";
124 arch = "arm64";
125 compression = "none";
126 load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
127 entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
128 hash {
129 algo = "md5";
130 };
131 atf-bl31 {
132 optional;
133 };
134 };
135 tee {
136 description = "OP-TEE";
137 type = "tee";
138 arch = "arm64";
139 compression = "none";
140 os = "tee";
Michal Simek775cbf42025-02-04 09:53:39 +0100141 load = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
142 entry = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
143 hash {
144 algo = "md5";
145 };
Michal Simek7bbd3bb2024-11-20 09:05:27 +0100146 tee-os {
147 optional;
148 };
149 };
150 fdt {
151 description = "DT";
152 type = "flat_dt";
153 arch = "arm64";
154 compression = "none";
155 load = <0x0 0x100000>;
156 uboot-fdt-blob {
157 filename = "u-boot.dtb";
158 type = "blob-ext";
159 };
160 hash-1 {
161 algo = "md5";
162 };
163
164 };
165 };
166 configurations {
167 default = "conf-1";
168 conf-1 {
169 description = "Single DT";
170 firmware = "atf";
171 loadables = "tee", "uboot";
172 fdt = "fdt";
173 };
174 };
175 };
176 };
177
Michal Simekcaa11b82024-11-01 10:17:58 +0100178#ifdef CONFIG_SYS_SPI_U_BOOT_OFFS
179 /* QSPI image for testing QSPI boot mode */
180 image {
181 filename = "qspi.bin";
182 pad-byte = <0>;
183
184 blob-ext@1 {
185 offset = <0x0>;
186 filename = "spl/boot.bin";
187 };
188 blob-ext@2 {
189 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
190 filename = "u-boot.itb";
191 };
192 fdtmap {
193 };
194 };
Michal Simek7bbd3bb2024-11-20 09:05:27 +0100195
196 image-single {
197 filename = "qspi-single.bin";
198 pad-byte = <0>;
199
200 blob-ext@1 {
201 offset = <0x0>;
202 filename = "spl/boot.bin";
203 };
204 blob-ext@2 {
205 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
206 filename = "u-boot-single.itb";
207 };
208 fdtmap {
209 };
210 };
Michal Simekcaa11b82024-11-01 10:17:58 +0100211#endif
Prasad Kummari6629bd82025-01-21 13:24:59 +0100212#endif
Michal Simekcaa11b82024-11-01 10:17:58 +0100213 };
214};