iot2050: Update firmware layout
[platform/kernel/u-boot.git] / arch / arm / dts / k3-am65-iot2050-boot-image.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) Siemens AG, 2020-2022
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 #ifdef CONFIG_TARGET_IOT2050_A53_PG1
21                         filename = "seboot_pg1.bin";
22 #else
23                         filename = "seboot_pg2.bin";
24 #endif
25                         missing-msg = "iot2050-seboot";
26                 };
27
28                 blob@0x180000 {
29                         offset = <0x180000>;
30                         filename = "tispl.bin";
31                 };
32
33                 fit@0x380000 {
34                         description = "U-Boot for IOT2050";
35                         fit,fdt-list = "of-list";
36                         offset = <0x380000>;
37                         images {
38                                 u-boot {
39                                         description = "U-Boot";
40                                         type = "standalone";
41                                         arch = "arm64";
42                                         os = "u-boot";
43                                         compression = "none";
44                                         load = <0x80800000>;
45                                         entry = <0x80800000>;
46                                         u-boot-nodtb {
47                                         };
48                                 };
49
50                                 @fdt-SEQ {
51                                         description = "fdt-NAME";
52                                         type = "flat_dt";
53                                         arch = "arm64";
54                                         compression = "none";
55                                 };
56
57 #ifdef CONFIG_WDT_K3_RTI_FW_FILE
58                                 k3-rti-wdt-firmware {
59                                         type = "firmware";
60                                         load = <0x82000000>;
61                                         arch = "arm";
62                                         compression = "none";
63                                         blob-ext {
64                                                 filename = CONFIG_WDT_K3_RTI_FW_FILE;
65                                                 missing-msg = "k3-rti-wdt-firmware";
66                                         };
67                                 };
68 #endif
69                         };
70
71                         configurations {
72                                 default = "@config-DEFAULT-SEQ";
73                                 @config-SEQ {
74                                         description = "NAME";
75                                         firmware = "u-boot";
76                                         fdt = "fdt-SEQ";
77 #ifdef CONFIG_WDT_K3_RTI_FW_FILE
78                                         loadables = "k3-rti-wdt-firmware";
79 #endif
80                                 };
81                         };
82                 };
83
84                 /* primary env */
85                 fill@0x680000 {
86                         offset = <0x680000>;
87                         size   = <0x020000>;
88                         fill-byte = [00];
89                 };
90                 /* secondary env */
91                 fill@0x6a0000 {
92                         offset = <0x6a0000>;
93                         size   = <0x020000>;
94                         fill-byte = [00];
95                 };
96
97                 /* OTP update command block */
98                 fill@0x6c0000 {
99                         offset = <0x6c0000>;
100                         size   = <0x010000>;
101                         fill-byte = [ff];
102                 };
103         };
104 };