blob: bf3335a3e539257840d6e33d32516aa5b40facce [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";
64 load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
65 entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
66 tee-os {
67 optional;
68 };
69 };
70 @fdt-SEQ {
71 description = "NAME";
72 type = "flat_dt";
73 arch = "arm64";
74 compression = "none";
75 load = <0x0 0x100000>;
76 hash-1 {
77 algo = "md5";
78 };
79 };
80 };
81 configurations {
82 default = "@conf-DEFAULT-SEQ";
83 @conf-SEQ {
84 description = "NAME";
85 firmware = "atf";
86 loadables = "tee", "uboot";
87 fdt = "fdt-SEQ";
88 };
89 };
90 };
91 };
92
Michal Simek7bbd3bb2024-11-20 09:05:27 +010093 itb-single {
94 filename = "u-boot-single.itb";
95 pad-byte = <0>;
96
97 fit {
98 description = "Configuration for Xilinx ZynqMP SoC";
99 fit,align = <0x8>;
100 fit,external-offset = <0x0>;
101 fit,fdt-list = "of-list";
102 images {
103 uboot {
104 description = "U-Boot (64-bit)";
105 type = "firmware";
106 os = "u-boot";
107 arch = "arm64";
108 compression = "none";
109 load = /bits/ 64 <CONFIG_TEXT_BASE>;
110 entry = /bits/ 64 <CONFIG_TEXT_BASE>;
111 hash {
112 algo = "md5";
113 };
114 u-boot-nodtb {
115 };
116 };
117 atf {
118 description = "Trusted Firmware-A";
119 type = "firmware";
120 os = "arm-trusted-firmware";
121 arch = "arm64";
122 compression = "none";
123 load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
124 entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
125 hash {
126 algo = "md5";
127 };
128 atf-bl31 {
129 optional;
130 };
131 };
132 tee {
133 description = "OP-TEE";
134 type = "tee";
135 arch = "arm64";
136 compression = "none";
137 os = "tee";
138 load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
139 entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
140 tee-os {
141 optional;
142 };
143 };
144 fdt {
145 description = "DT";
146 type = "flat_dt";
147 arch = "arm64";
148 compression = "none";
149 load = <0x0 0x100000>;
150 uboot-fdt-blob {
151 filename = "u-boot.dtb";
152 type = "blob-ext";
153 };
154 hash-1 {
155 algo = "md5";
156 };
157
158 };
159 };
160 configurations {
161 default = "conf-1";
162 conf-1 {
163 description = "Single DT";
164 firmware = "atf";
165 loadables = "tee", "uboot";
166 fdt = "fdt";
167 };
168 };
169 };
170 };
171
Michal Simekcaa11b82024-11-01 10:17:58 +0100172#ifdef CONFIG_SYS_SPI_U_BOOT_OFFS
173 /* QSPI image for testing QSPI boot mode */
174 image {
175 filename = "qspi.bin";
176 pad-byte = <0>;
177
178 blob-ext@1 {
179 offset = <0x0>;
180 filename = "spl/boot.bin";
181 };
182 blob-ext@2 {
183 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
184 filename = "u-boot.itb";
185 };
186 fdtmap {
187 };
188 };
Michal Simek7bbd3bb2024-11-20 09:05:27 +0100189
190 image-single {
191 filename = "qspi-single.bin";
192 pad-byte = <0>;
193
194 blob-ext@1 {
195 offset = <0x0>;
196 filename = "spl/boot.bin";
197 };
198 blob-ext@2 {
199 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
200 filename = "u-boot-single.itb";
201 };
202 fdtmap {
203 };
204 };
Michal Simekcaa11b82024-11-01 10:17:58 +0100205#endif
Prasad Kummari6629bd82025-01-21 13:24:59 +0100206#endif
Michal Simekcaa11b82024-11-01 10:17:58 +0100207 };
208};