Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||||
Su Baocheng | 0dcd337 | 2023-02-28 19:19:09 +0100 | [diff] [blame] | 3 | * Copyright (c) Siemens AG, 2020-2022 |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 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>; | ||||
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 17 | allow-repack; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 18 | |
19 | blob-ext@0x000000 { | ||||
20 | offset = <0x000000>; | ||||
Su Baocheng | 0dcd337 | 2023-02-28 19:19:09 +0100 | [diff] [blame] | 21 | #ifdef CONFIG_TARGET_IOT2050_A53_PG1 |
22 | filename = "seboot_pg1.bin"; | ||||
23 | #else | ||||
24 | filename = "seboot_pg2.bin"; | ||||
25 | #endif | ||||
Ivan Mikhaylov | e1953e4 | 2021-12-09 16:10:53 +0000 | [diff] [blame] | 26 | missing-msg = "iot2050-seboot"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 27 | }; |
28 | |||||
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 29 | blob@0x180000 { |
30 | offset = <0x180000>; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 31 | filename = "tispl.bin"; |
32 | }; | ||||
33 | |||||
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 34 | fit@0x380000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 35 | description = "U-Boot for IOT2050"; |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 36 | fit,fdt-list = "of-list"; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 37 | offset = <0x380000>; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 38 | 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 Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 49 | hash { |
50 | algo = "sha256"; | ||||
51 | }; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 52 | }; |
53 | |||||
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 54 | @fdt-SEQ { |
55 | description = "fdt-NAME"; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 56 | type = "flat_dt"; |
57 | arch = "arm64"; | ||||
58 | compression = "none"; | ||||
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 59 | hash { |
60 | algo = "sha256"; | ||||
61 | }; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 62 | }; |
63 | |||||
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame^] | 64 | #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 Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 94 | #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 Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 104 | hash { |
105 | algo = "sha256"; | ||||
106 | }; | ||||
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 107 | }; |
108 | #endif | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 109 | }; |
110 | |||||
111 | configurations { | ||||
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 112 | default = "@config-DEFAULT-SEQ"; |
113 | @config-SEQ { | ||||
114 | description = "NAME"; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 115 | firmware = "u-boot"; |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 116 | fdt = "fdt-SEQ"; |
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame^] | 117 | loadables = |
118 | #ifdef CONFIG_TARGET_IOT2050_A53_PG2 | ||||
119 | "bkey-usb3-overlay", | ||||
120 | "bkey-ekey-pcie-overlay", | ||||
121 | #endif | ||||
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 122 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame^] | 123 | "k3-rti-wdt-firmware", |
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 124 | #endif |
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame^] | 125 | <>; |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 126 | signature { |
127 | sign-images = "firmware", "fdt", "loadables"; | ||||
128 | }; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 129 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 130 | }; |
131 | }; | ||||
132 | |||||
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 133 | fdtmap { |
134 | }; | ||||
135 | |||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 136 | /* 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 Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 149 | /* OTP update command block */ |
Jan Kiszka | aebb5b9 | 2023-02-28 19:19:18 +0100 | [diff] [blame] | 150 | #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 Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 158 | fill@0x6c0000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 159 | offset = <0x6c0000>; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 160 | size = <0x010000>; |
161 | fill-byte = [ff]; | ||||
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 162 | }; |
Jan Kiszka | aebb5b9 | 2023-02-28 19:19:18 +0100 | [diff] [blame] | 163 | #endif |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 164 | }; |
165 | }; |