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>; |
| 17 | |
| 18 | blob-ext@0x000000 { |
| 19 | offset = <0x000000>; |
Su Baocheng | 0dcd337 | 2023-02-28 19:19:09 +0100 | [diff] [blame] | 20 | #ifdef CONFIG_TARGET_IOT2050_A53_PG1 |
| 21 | filename = "seboot_pg1.bin"; |
| 22 | #else |
| 23 | filename = "seboot_pg2.bin"; |
| 24 | #endif |
Ivan Mikhaylov | e1953e4 | 2021-12-09 16:10:53 +0000 | [diff] [blame] | 25 | missing-msg = "iot2050-seboot"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 26 | }; |
| 27 | |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 28 | blob@0x180000 { |
| 29 | offset = <0x180000>; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 30 | filename = "tispl.bin"; |
| 31 | }; |
| 32 | |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 33 | fit@0x380000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 34 | description = "U-Boot for IOT2050"; |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 35 | fit,fdt-list = "of-list"; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 36 | offset = <0x380000>; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 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 | |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 50 | @fdt-SEQ { |
| 51 | description = "fdt-NAME"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 52 | type = "flat_dt"; |
| 53 | arch = "arm64"; |
| 54 | compression = "none"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 55 | }; |
| 56 | |
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 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 |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | configurations { |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 72 | default = "@config-DEFAULT-SEQ"; |
| 73 | @config-SEQ { |
| 74 | description = "NAME"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 75 | firmware = "u-boot"; |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 76 | fdt = "fdt-SEQ"; |
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 77 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
| 78 | loadables = "k3-rti-wdt-firmware"; |
| 79 | #endif |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 80 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 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 | |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 97 | /* OTP update command block */ |
| 98 | fill@0x6c0000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 99 | offset = <0x6c0000>; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 100 | size = <0x010000>; |
| 101 | fill-byte = [ff]; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 102 | }; |
| 103 | }; |
| 104 | }; |