blob: 03ccc54329371941dbec6b17cb395da1f23754d9 [file] [log] [blame]
Jan Kiszkac3a87952021-09-18 08:17:52 +02001// SPDX-License-Identifier: GPL-2.0
2/*
Su Baochengea0f45d2023-02-28 19:19:09 +01003 * Copyright (c) Siemens AG, 2020-2022
Jan Kiszkac3a87952021-09-18 08:17:52 +02004 *
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>;
Jan Kiszka430e9f62023-02-28 19:19:15 +010017 allow-repack;
Jan Kiszkac3a87952021-09-18 08:17:52 +020018
19 blob-ext@0x000000 {
20 offset = <0x000000>;
Su Baochengea0f45d2023-02-28 19:19:09 +010021#ifdef CONFIG_TARGET_IOT2050_A53_PG1
22 filename = "seboot_pg1.bin";
23#else
24 filename = "seboot_pg2.bin";
25#endif
Ivan Mikhaylov1c11b5e2021-12-09 16:10:53 +000026 missing-msg = "iot2050-seboot";
Jan Kiszkac3a87952021-09-18 08:17:52 +020027 };
28
Jan Kiszka6ac91312023-02-28 19:19:11 +010029 blob@0x180000 {
30 offset = <0x180000>;
Jan Kiszkac3a87952021-09-18 08:17:52 +020031 filename = "tispl.bin";
32 };
33
Jan Kiszka6ac91312023-02-28 19:19:11 +010034 fit@0x380000 {
Jan Kiszkac3a87952021-09-18 08:17:52 +020035 description = "U-Boot for IOT2050";
Su Baochengffbd5b22023-02-28 19:19:10 +010036 fit,fdt-list = "of-list";
Jan Kiszka6ac91312023-02-28 19:19:11 +010037 offset = <0x380000>;
Jan Kiszkac3a87952021-09-18 08:17:52 +020038 images {
39 u-boot {
40 description = "U-Boot";
41 type = "standalone";
42 arch = "arm64";
43 os = "u-boot";
44 compression = "none";
45 load = <0x80800000>;
46 entry = <0x80800000>;
47 u-boot-nodtb {
48 };
Jan Kiszka430e9f62023-02-28 19:19:15 +010049 hash {
50 algo = "sha256";
51 };
Jan Kiszkac3a87952021-09-18 08:17:52 +020052 };
53
Su Baochengffbd5b22023-02-28 19:19:10 +010054 @fdt-SEQ {
55 description = "fdt-NAME";
Jan Kiszkac3a87952021-09-18 08:17:52 +020056 type = "flat_dt";
57 arch = "arm64";
58 compression = "none";
Jan Kiszka430e9f62023-02-28 19:19:15 +010059 hash {
60 algo = "sha256";
61 };
Jan Kiszkac3a87952021-09-18 08:17:52 +020062 };
Jan Kiszka26fa0632021-09-18 08:17:56 +020063
Jan Kiszka352ed652023-02-28 19:19:23 +010064#ifdef CONFIG_TARGET_IOT2050_A53_PG2
65 bkey-usb3-overlay {
66 description = "M.2-bkey-usb3-overlay";
67 type = "blob";
68 load = <0x82100000>;
69 arch = "arm64";
70 compression = "none";
71 blob-ext {
72 filename = "k3-am6548-iot2050-advanced-m2-bkey-usb3-overlay.dtbo";
73 };
74 hash {
75 algo = "sha256";
76 };
77 };
78
79 bkey-ekey-pcie-overlay {
80 description = "M.2-bkey-ekey-pcie-overlay";
81 type = "blob";
82 load = <0x82110000>;
83 arch = "arm64";
84 compression = "none";
85 blob-ext {
86 filename = "k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-overlay.dtbo";
87 };
88 hash {
89 algo = "sha256";
90 };
91 };
92#endif
93
Jan Kiszka26fa0632021-09-18 08:17:56 +020094#ifdef CONFIG_WDT_K3_RTI_FW_FILE
95 k3-rti-wdt-firmware {
96 type = "firmware";
97 load = <0x82000000>;
98 arch = "arm";
99 compression = "none";
100 blob-ext {
101 filename = CONFIG_WDT_K3_RTI_FW_FILE;
102 missing-msg = "k3-rti-wdt-firmware";
103 };
Jan Kiszka430e9f62023-02-28 19:19:15 +0100104 hash {
105 algo = "sha256";
106 };
Jan Kiszka26fa0632021-09-18 08:17:56 +0200107 };
108#endif
Jan Kiszkac3a87952021-09-18 08:17:52 +0200109 };
110
111 configurations {
Su Baochengffbd5b22023-02-28 19:19:10 +0100112 default = "@config-DEFAULT-SEQ";
113 @config-SEQ {
114 description = "NAME";
Jan Kiszkac3a87952021-09-18 08:17:52 +0200115 firmware = "u-boot";
Su Baochengffbd5b22023-02-28 19:19:10 +0100116 fdt = "fdt-SEQ";
Jan Kiszka352ed652023-02-28 19:19:23 +0100117 loadables =
118#ifdef CONFIG_TARGET_IOT2050_A53_PG2
119 "bkey-usb3-overlay",
120 "bkey-ekey-pcie-overlay",
Jan Kiszka26fa0632021-09-18 08:17:56 +0200121#endif
Jan Kiszka352ed652023-02-28 19:19:23 +0100122#ifdef CONFIG_WDT_K3_RTI_FW_FILE
123 "k3-rti-wdt-firmware",
124#endif
125 <>;
Jan Kiszka430e9f62023-02-28 19:19:15 +0100126 signature {
127 sign-images = "firmware", "fdt", "loadables";
128 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200129 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200130 };
131 };
132
Jan Kiszka430e9f62023-02-28 19:19:15 +0100133 fdtmap {
134 };
135
Jan Kiszkac3a87952021-09-18 08:17:52 +0200136 /* primary env */
137 fill@0x680000 {
138 offset = <0x680000>;
139 size = <0x020000>;
140 fill-byte = [00];
141 };
142 /* secondary env */
143 fill@0x6a0000 {
144 offset = <0x6a0000>;
145 size = <0x020000>;
146 fill-byte = [00];
147 };
148
Jan Kiszka6ac91312023-02-28 19:19:11 +0100149 /* OTP update command block */
Jan Kiszka367b1bf2023-02-28 19:19:18 +0100150#if CONFIG_IOT2050_EMBED_OTPCMD
151 blob-ext@0x6c0000 {
152 offset = <0x6c0000>;
153 size = <0x010000>;
154 filename = "otpcmd.bin";
155 missing-msg = "iot2050-otpcmd";
156 };
157#else
Jan Kiszka6ac91312023-02-28 19:19:11 +0100158 fill@0x6c0000 {
Jan Kiszkac3a87952021-09-18 08:17:52 +0200159 offset = <0x6c0000>;
Jan Kiszka6ac91312023-02-28 19:19:11 +0100160 size = <0x010000>;
161 fill-byte = [ff];
Jan Kiszkac3a87952021-09-18 08:17:52 +0200162 };
Jan Kiszka367b1bf2023-02-28 19:19:18 +0100163#endif
Jan Kiszkac3a87952021-09-18 08:17:52 +0200164 };
165};