Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | /* |
| 3 | * Copyright (C) 2021 PHYTEC Messtechnik GmbH |
| 4 | * Author: Teresa Remmet <t.remmet@phytec.de> |
| 5 | */ |
| 6 | |
| 7 | / { |
| 8 | binman: binman { |
| 9 | multiple-images; |
| 10 | }; |
| 11 | }; |
| 12 | |
| 13 | &{/soc@0} { |
| 14 | u-boot,dm-pre-reloc; |
| 15 | u-boot,dm-spl; |
| 16 | }; |
| 17 | |
| 18 | &clk { |
| 19 | u-boot,dm-spl; |
| 20 | u-boot,dm-pre-reloc; |
Ye Li | f93d54d | 2021-08-17 14:32:04 +0800 | [diff] [blame] | 21 | /delete-property/ assigned-clocks; |
| 22 | /delete-property/ assigned-clock-parents; |
| 23 | /delete-property/ assigned-clock-rates; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | &osc_32k { |
| 27 | u-boot,dm-spl; |
| 28 | u-boot,dm-pre-reloc; |
| 29 | }; |
| 30 | |
| 31 | &osc_24m { |
| 32 | u-boot,dm-spl; |
| 33 | u-boot,dm-pre-reloc; |
| 34 | }; |
| 35 | |
| 36 | &aips1 { |
| 37 | u-boot,dm-spl; |
| 38 | u-boot,dm-pre-reloc; |
| 39 | }; |
| 40 | |
| 41 | &aips2 { |
| 42 | u-boot,dm-spl; |
| 43 | }; |
| 44 | |
| 45 | &aips3 { |
| 46 | u-boot,dm-spl; |
| 47 | }; |
| 48 | |
| 49 | &iomuxc { |
| 50 | u-boot,dm-spl; |
| 51 | }; |
| 52 | |
| 53 | &binman { |
| 54 | u-boot-spl-ddr { |
| 55 | filename = "u-boot-spl-ddr.bin"; |
| 56 | pad-byte = <0xff>; |
| 57 | align-size = <4>; |
| 58 | align = <4>; |
| 59 | |
| 60 | u-boot-spl { |
| 61 | align-end = <4>; |
| 62 | }; |
| 63 | |
| 64 | blob_1: blob-ext@1 { |
| 65 | filename = "lpddr4_pmu_train_1d_imem_202006.bin"; |
| 66 | size = <0x8000>; |
| 67 | }; |
| 68 | |
| 69 | blob_2: blob-ext@2 { |
| 70 | filename = "lpddr4_pmu_train_1d_dmem_202006.bin"; |
| 71 | size = <0x4000>; |
| 72 | }; |
| 73 | |
| 74 | blob_3: blob-ext@3 { |
| 75 | filename = "lpddr4_pmu_train_2d_imem_202006.bin"; |
| 76 | size = <0x8000>; |
| 77 | }; |
| 78 | |
| 79 | blob_4: blob-ext@4 { |
| 80 | filename = "lpddr4_pmu_train_2d_dmem_202006.bin"; |
| 81 | size = <0x4000>; |
| 82 | }; |
| 83 | }; |
| 84 | |
Teresa Remmet | 1d05e8e | 2021-08-26 10:54:09 +0200 | [diff] [blame] | 85 | spl { |
| 86 | filename = "spl.bin"; |
| 87 | |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 88 | mkimage { |
| 89 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000"; |
| 90 | |
| 91 | blob { |
| 92 | filename = "u-boot-spl-ddr.bin"; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | itb { |
| 98 | filename = "u-boot.itb"; |
| 99 | |
| 100 | fit { |
| 101 | description = "Configuration to load ATF before U-Boot"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 102 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 103 | fit,fdt-list = "of-list"; |
| 104 | #address-cells = <1>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 105 | |
| 106 | images { |
| 107 | uboot { |
| 108 | description = "U-Boot (64-bit)"; |
| 109 | type = "standalone"; |
| 110 | arch = "arm64"; |
| 111 | compression = "none"; |
| 112 | load = <CONFIG_SYS_TEXT_BASE>; |
| 113 | |
| 114 | uboot_blob: blob-ext { |
| 115 | filename = "u-boot-nodtb.bin"; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | atf { |
| 120 | description = "ARM Trusted Firmware"; |
| 121 | type = "firmware"; |
| 122 | arch = "arm64"; |
| 123 | compression = "none"; |
| 124 | load = <0x970000>; |
| 125 | entry = <0x970000>; |
| 126 | |
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 127 | atf_blob: atf-blob { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 128 | filename = "bl31.bin"; |
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 129 | type = "atf-bl31"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 130 | }; |
| 131 | }; |
| 132 | |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 133 | @fdt-SEQ { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 134 | description = "NAME"; |
| 135 | type = "flat_dt"; |
| 136 | compression = "none"; |
| 137 | |
| 138 | uboot_fdt_blob: blob-ext { |
| 139 | filename = "u-boot.dtb"; |
| 140 | }; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | configurations { |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 145 | default = "@config-DEFAULT-SEQ"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 146 | |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 147 | @config-SEQ { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 148 | description = "NAME"; |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 149 | fdt = "fdt-SEQ"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 150 | firmware = "uboot"; |
| 151 | loadables = "atf"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 152 | }; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
Teresa Remmet | 1d05e8e | 2021-08-26 10:54:09 +0200 | [diff] [blame] | 156 | |
| 157 | imx-boot { |
| 158 | filename = "flash.bin"; |
| 159 | pad-byte = <0x00>; |
| 160 | |
| 161 | spl: blob-ext@1 { |
| 162 | filename = "spl.bin"; |
| 163 | offset = <0x0>; |
| 164 | }; |
| 165 | |
| 166 | uboot: blob-ext@2 { |
| 167 | filename = "u-boot.itb"; |
| 168 | offset = <0x58000>; |
| 169 | }; |
| 170 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 171 | }; |