Michal Simek | caa11b8 | 2024-11-01 10:17:58 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for Xilinx ZynqMP platforms |
| 4 | * |
| 5 | * (C) Copyright 2024, Advanced Micro Devices, Inc. |
| 6 | * |
| 7 | * Michal Simek <michal.simek@amd.com> |
| 8 | */ |
| 9 | |
| 10 | #include <config.h> |
| 11 | |
| 12 | /dts-v1/; |
| 13 | / { |
| 14 | binman: binman { |
| 15 | multiple-images; |
| 16 | |
| 17 | /* u-boot.itb generation in a static way */ |
| 18 | itb { |
| 19 | filename = "u-boot.itb"; |
| 20 | pad-byte = <0>; |
| 21 | |
| 22 | fit { |
| 23 | description = "Configuration for Xilinx ZynqMP SoC"; |
| 24 | fit,align = <0x8>; |
| 25 | fit,external-offset = <0x0>; |
| 26 | fit,fdt-list = "of-list"; |
| 27 | images { |
| 28 | uboot { |
| 29 | description = "U-Boot (64-bit)"; |
| 30 | type = "firmware"; |
| 31 | os = "u-boot"; |
| 32 | arch = "arm64"; |
| 33 | compression = "none"; |
| 34 | load = /bits/ 64 <CONFIG_TEXT_BASE>; |
| 35 | entry = /bits/ 64 <CONFIG_TEXT_BASE>; |
| 36 | hash { |
| 37 | algo = "md5"; |
| 38 | }; |
| 39 | u-boot-nodtb { |
| 40 | }; |
| 41 | }; |
| 42 | atf { |
| 43 | description = "Trusted Firmware-A"; |
| 44 | type = "firmware"; |
| 45 | os = "arm-trusted-firmware"; |
| 46 | arch = "arm64"; |
| 47 | compression = "none"; |
| 48 | load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>; |
| 49 | entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>; |
| 50 | hash { |
| 51 | algo = "md5"; |
| 52 | }; |
| 53 | atf-bl31 { |
| 54 | optional; |
| 55 | }; |
| 56 | }; |
| 57 | tee { |
| 58 | description = "OP-TEE"; |
| 59 | type = "tee"; |
| 60 | arch = "arm64"; |
| 61 | compression = "none"; |
| 62 | os = "tee"; |
| 63 | load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>; |
| 64 | entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>; |
| 65 | tee-os { |
| 66 | optional; |
| 67 | }; |
| 68 | }; |
| 69 | @fdt-SEQ { |
| 70 | description = "NAME"; |
| 71 | type = "flat_dt"; |
| 72 | arch = "arm64"; |
| 73 | compression = "none"; |
| 74 | load = <0x0 0x100000>; |
| 75 | hash-1 { |
| 76 | algo = "md5"; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | configurations { |
| 81 | default = "@conf-DEFAULT-SEQ"; |
| 82 | @conf-SEQ { |
| 83 | description = "NAME"; |
| 84 | firmware = "atf"; |
| 85 | loadables = "tee", "uboot"; |
| 86 | fdt = "fdt-SEQ"; |
| 87 | }; |
| 88 | }; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | #ifdef CONFIG_SYS_SPI_U_BOOT_OFFS |
| 93 | /* QSPI image for testing QSPI boot mode */ |
| 94 | image { |
| 95 | filename = "qspi.bin"; |
| 96 | pad-byte = <0>; |
| 97 | |
| 98 | blob-ext@1 { |
| 99 | offset = <0x0>; |
| 100 | filename = "spl/boot.bin"; |
| 101 | }; |
| 102 | blob-ext@2 { |
| 103 | offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>; |
| 104 | filename = "u-boot.itb"; |
| 105 | }; |
| 106 | fdtmap { |
| 107 | }; |
| 108 | }; |
| 109 | #endif |
| 110 | }; |
| 111 | }; |