1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) Siemens AG, 2020-2021
4 *
5 * Authors:
6 *   Jan Kiszka <jan.kiszka@siemens.com>
7 *   Chao Zeng <chao.zeng@siemens.com>
8 */
9
10#include <config.h>
11
12/ {
13	binman {
14		filename = "flash.bin";
15		pad-byte = <0xff>;
16		size = <0x8c0000>;
17
18		blob-ext@0x000000 {
19			offset = <0x000000>;
20			filename = "tiboot3.bin";
21		};
22
23		blob@0x080000 {
24			offset = <0x080000>;
25			filename = "tispl.bin";
26		};
27
28		fit@0x280000 {
29			description = "U-Boot for IOT2050";
30			offset = <0x280000>;
31			images {
32				u-boot {
33					description = "U-Boot";
34					type = "standalone";
35					arch = "arm64";
36					os = "u-boot";
37					compression = "none";
38					load = <0x80800000>;
39					entry = <0x80800000>;
40					u-boot-nodtb {
41					};
42				};
43
44				fdt-iot2050-basic {
45					description = "k3-am6528-iot2050-basic.dtb";
46					type = "flat_dt";
47					arch = "arm64";
48					compression = "none";
49					blob {
50						filename = "arch/arm/dts/k3-am6528-iot2050-basic.dtb";
51					};
52				};
53
54				fdt-iot2050-basic-pg2 {
55					description = "k3-am6528-iot2050-basic-pg2.dtb";
56					type = "flat_dt";
57					arch = "arm64";
58					compression = "none";
59					blob {
60						filename = "arch/arm/dts/k3-am6528-iot2050-basic-pg2.dtb";
61					};
62				};
63
64				fdt-iot2050-advanced {
65					description = "k3-am6548-iot2050-advanced.dtb";
66					type = "flat_dt";
67					arch = "arm64";
68					compression = "none";
69					blob {
70						filename = "arch/arm/dts/k3-am6548-iot2050-advanced.dtb";
71					};
72				};
73
74				fdt-iot2050-advanced-pg2 {
75					description = "k3-am6548-iot2050-advanced-pg2.dtb";
76					type = "flat_dt";
77					arch = "arm64";
78					compression = "none";
79					blob {
80						filename = "arch/arm/dts/k3-am6548-iot2050-advanced-pg2.dtb";
81					};
82				};
83
84#ifdef CONFIG_WDT_K3_RTI_FW_FILE
85				k3-rti-wdt-firmware {
86					type = "firmware";
87					load = <0x82000000>;
88					arch = "arm";
89					compression = "none";
90					blob-ext {
91						filename = CONFIG_WDT_K3_RTI_FW_FILE;
92						missing-msg = "k3-rti-wdt-firmware";
93					};
94				};
95#endif
96			};
97
98			configurations {
99				default = "conf-iot2050-basic";
100
101				conf-iot2050-basic {
102					description = "iot2050-basic";
103					firmware = "u-boot";
104					fdt = "fdt-iot2050-basic";
105#ifdef CONFIG_WDT_K3_RTI_FW_FILE
106					loadables = "k3-rti-wdt-firmware";
107#endif
108				};
109
110				conf-iot2050-basic-pg2 {
111					description = "iot2050-basic-pg2";
112					firmware = "u-boot";
113					fdt = "fdt-iot2050-basic-pg2";
114#ifdef CONFIG_WDT_K3_RTI_FW_FILE
115					loadables = "k3-rti-wdt-firmware";
116#endif
117				};
118
119				conf-iot2050-advanced {
120					description = "iot2050-advanced";
121					firmware = "u-boot";
122					fdt = "fdt-iot2050-advanced";
123#ifdef CONFIG_WDT_K3_RTI_FW_FILE
124					loadables = "k3-rti-wdt-firmware";
125#endif
126				};
127
128				conf-iot2050-advanced-pg2 {
129					description = "iot2050-advanced-pg2";
130					firmware = "u-boot";
131					fdt = "fdt-iot2050-advanced-pg2";
132#ifdef CONFIG_WDT_K3_RTI_FW_FILE
133					loadables = "k3-rti-wdt-firmware";
134#endif
135				};
136			};
137		};
138
139		/* primary env */
140		fill@0x680000 {
141			offset = <0x680000>;
142			size   = <0x020000>;
143			fill-byte = [00];
144		};
145		/* secondary env */
146		fill@0x6a0000 {
147			offset = <0x6a0000>;
148			size   = <0x020000>;
149			fill-byte = [00];
150		};
151
152		/* PG1 sysfw, basic variant */
153		blob-ext@0x6c0000 {
154			offset = <0x6c0000>;
155			filename = "sysfw.itb";
156		};
157		/* PG1 sysfw, advanced variant */
158		blob-ext@0x740000 {
159			offset = <0x740000>;
160			filename = "sysfw.itb_HS";
161		};
162		/* PG2 sysfw, basic variant */
163		blob-ext@0x7c0000 {
164			offset = <0x7c0000>;
165			filename = "sysfw_sr2.itb";
166		};
167		/* PG2 sysfw, advanced variant */
168		blob-ext@0x840000 {
169			offset = <0x840000>;
170			filename = "sysfw_sr2.itb_HS";
171		};
172	};
173};
174