Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||||
Su Baocheng | ea0f45d | 2023-02-28 19:19:09 +0100 | [diff] [blame] | 3 | * Copyright (c) Siemens AG, 2020-2022 |
Jan Kiszka | c3a8795 | 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 | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 17 | allow-repack; |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 18 | |
19 | blob-ext@0x000000 { | ||||
20 | offset = <0x000000>; | ||||
Su Baocheng | ea0f45d | 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 | 1c11b5e | 2021-12-09 16:10:53 +0000 | [diff] [blame] | 26 | missing-msg = "iot2050-seboot"; |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 27 | }; |
28 | |||||
Jan Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 29 | blob@0x180000 { |
30 | offset = <0x180000>; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 31 | filename = "tispl.bin"; |
32 | }; | ||||
33 | |||||
Jan Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 34 | fit@0x380000 { |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 35 | description = "U-Boot for IOT2050"; |
Su Baocheng | ffbd5b2 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 36 | fit,fdt-list = "of-list"; |
Jan Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 37 | offset = <0x380000>; |
Jan Kiszka | c3a8795 | 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 | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 49 | hash { |
50 | algo = "sha256"; | ||||
51 | }; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 52 | }; |
53 | |||||
Su Baocheng | ffbd5b2 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 54 | @fdt-SEQ { |
55 | description = "fdt-NAME"; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 56 | type = "flat_dt"; |
57 | arch = "arm64"; | ||||
58 | compression = "none"; | ||||
Jan Kiszka | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 59 | hash { |
60 | algo = "sha256"; | ||||
61 | }; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 62 | }; |
Jan Kiszka | 26fa063 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 63 | |
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 Kiszka | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 74 | hash { |
75 | algo = "sha256"; | ||||
76 | }; | ||||
Jan Kiszka | 26fa063 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 77 | }; |
78 | #endif | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 79 | }; |
80 | |||||
81 | configurations { | ||||
Su Baocheng | ffbd5b2 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 82 | default = "@config-DEFAULT-SEQ"; |
83 | @config-SEQ { | ||||
84 | description = "NAME"; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 85 | firmware = "u-boot"; |
Su Baocheng | ffbd5b2 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 86 | fdt = "fdt-SEQ"; |
Jan Kiszka | 26fa063 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 87 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
88 | loadables = "k3-rti-wdt-firmware"; | ||||
89 | #endif | ||||
Jan Kiszka | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 90 | signature { |
91 | sign-images = "firmware", "fdt", "loadables"; | ||||
92 | }; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 93 | }; |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 94 | }; |
95 | }; | ||||
96 | |||||
Jan Kiszka | 430e9f6 | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 97 | fdtmap { |
98 | }; | ||||
99 | |||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 100 | /* 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 Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 113 | /* OTP update command block */ |
Jan Kiszka | 367b1bf | 2023-02-28 19:19:18 +0100 | [diff] [blame^] | 114 | #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 Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 122 | fill@0x6c0000 { |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 123 | offset = <0x6c0000>; |
Jan Kiszka | 6ac9131 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 124 | size = <0x010000>; |
125 | fill-byte = [ff]; | ||||
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 126 | }; |
Jan Kiszka | 367b1bf | 2023-02-28 19:19:18 +0100 | [diff] [blame^] | 127 | #endif |
Jan Kiszka | c3a8795 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 128 | }; |
129 | }; |