blob: a2fc8bbc123d0a80d19a90fe55d4010d3540910f [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
64#ifdef CONFIG_WDT_K3_RTI_FW_FILE
65 k3-rti-wdt-firmware {
66 type = "firmware";
67 load = <0x82000000>;
68 arch = "arm";
69 compression = "none";
70 blob-ext {
71 filename = CONFIG_WDT_K3_RTI_FW_FILE;
72 missing-msg = "k3-rti-wdt-firmware";
73 };
Jan Kiszka430e9f62023-02-28 19:19:15 +010074 hash {
75 algo = "sha256";
76 };
Jan Kiszka26fa0632021-09-18 08:17:56 +020077 };
78#endif
Jan Kiszkac3a87952021-09-18 08:17:52 +020079 };
80
81 configurations {
Su Baochengffbd5b22023-02-28 19:19:10 +010082 default = "@config-DEFAULT-SEQ";
83 @config-SEQ {
84 description = "NAME";
Jan Kiszkac3a87952021-09-18 08:17:52 +020085 firmware = "u-boot";
Su Baochengffbd5b22023-02-28 19:19:10 +010086 fdt = "fdt-SEQ";
Jan Kiszka26fa0632021-09-18 08:17:56 +020087#ifdef CONFIG_WDT_K3_RTI_FW_FILE
88 loadables = "k3-rti-wdt-firmware";
89#endif
Jan Kiszka430e9f62023-02-28 19:19:15 +010090 signature {
91 sign-images = "firmware", "fdt", "loadables";
92 };
Jan Kiszkac3a87952021-09-18 08:17:52 +020093 };
Jan Kiszkac3a87952021-09-18 08:17:52 +020094 };
95 };
96
Jan Kiszka430e9f62023-02-28 19:19:15 +010097 fdtmap {
98 };
99
Jan Kiszkac3a87952021-09-18 08:17:52 +0200100 /* primary env */
101 fill@0x680000 {
102 offset = <0x680000>;
103 size = <0x020000>;
104 fill-byte = [00];
105 };
106 /* secondary env */
107 fill@0x6a0000 {
108 offset = <0x6a0000>;
109 size = <0x020000>;
110 fill-byte = [00];
111 };
112
Jan Kiszka6ac91312023-02-28 19:19:11 +0100113 /* OTP update command block */
Jan Kiszka367b1bf2023-02-28 19:19:18 +0100114#if CONFIG_IOT2050_EMBED_OTPCMD
115 blob-ext@0x6c0000 {
116 offset = <0x6c0000>;
117 size = <0x010000>;
118 filename = "otpcmd.bin";
119 missing-msg = "iot2050-otpcmd";
120 };
121#else
Jan Kiszka6ac91312023-02-28 19:19:11 +0100122 fill@0x6c0000 {
Jan Kiszkac3a87952021-09-18 08:17:52 +0200123 offset = <0x6c0000>;
Jan Kiszka6ac91312023-02-28 19:19:11 +0100124 size = <0x010000>;
125 fill-byte = [ff];
Jan Kiszkac3a87952021-09-18 08:17:52 +0200126 };
Jan Kiszka367b1bf2023-02-28 19:19:18 +0100127#endif
Jan Kiszkac3a87952021-09-18 08:17:52 +0200128 };
129};