Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * Copyright 2021 NXP | ||||
4 | */ | ||||
5 | |||||
6 | / { | ||||
7 | binman: binman { | ||||
8 | multiple-images; | ||||
9 | }; | ||||
10 | |||||
11 | }; | ||||
12 | |||||
Marcel Ziswiler | cb9b70f | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 13 | &soc { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 14 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 15 | }; |
16 | |||||
Marcel Ziswiler | cb9b70f | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 17 | &aips1 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 18 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 19 | }; |
20 | |||||
Marcel Ziswiler | cb9b70f | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 21 | &aips2 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 22 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 23 | }; |
24 | |||||
Marcel Ziswiler | cb9b70f | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 25 | &aips3 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 26 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 27 | }; |
28 | |||||
Marcel Ziswiler | cb9b70f | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 29 | &aips4 { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 30 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 31 | }; |
32 | |||||
33 | &iomuxc { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 34 | bootph-pre-ram; |
Peng Fan | 56f3888 | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 35 | }; |
36 | |||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 37 | &binman { |
38 | u-boot-spl-ddr { | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 39 | align = <4>; |
40 | align-size = <4>; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 41 | filename = "u-boot-spl-ddr.bin"; |
42 | pad-byte = <0xff>; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 43 | |
44 | u-boot-spl { | ||||
45 | align-end = <4>; | ||||
Patrick Wildt | 553216f | 2022-01-13 15:21:47 +0100 | [diff] [blame] | 46 | filename = "u-boot-spl.bin"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 47 | }; |
48 | |||||
Peng Fan | 25daa2c | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 49 | ddr-1d-imem-fw { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 50 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
Peng Fan | c065a6c | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 51 | align-end = <4>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 52 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 53 | }; |
54 | |||||
Peng Fan | 25daa2c | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 55 | ddr-1d-dmem-fw { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 56 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
Peng Fan | c065a6c | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 57 | align-end = <4>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 58 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 59 | }; |
60 | |||||
Peng Fan | 25daa2c | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 61 | ddr-2d-imem-fw { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 62 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
Peng Fan | c065a6c | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 63 | align-end = <4>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 64 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 65 | }; |
66 | |||||
Peng Fan | 25daa2c | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 67 | ddr-2d-dmem-fw { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 68 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
Peng Fan | c065a6c | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 69 | align-end = <4>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 70 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 71 | }; |
72 | }; | ||||
73 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 74 | signed-hdmi { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 75 | filename = "signed_hdmi.bin"; |
76 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 77 | signed-hdmi-imx8m { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 78 | filename = "signed_hdmi_imx8m.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 79 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 80 | }; |
81 | }; | ||||
82 | |||||
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 83 | spl { |
84 | filename = "spl.bin"; | ||||
85 | |||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 86 | mkimage { |
87 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; | ||||
88 | |||||
89 | blob { | ||||
90 | filename = "u-boot-spl-ddr.bin"; | ||||
91 | }; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 92 | }; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 93 | }; |
94 | |||||
95 | itb { | ||||
96 | filename = "u-boot.itb"; | ||||
97 | |||||
98 | fit { | ||||
99 | description = "Configuration to load ATF before U-Boot"; | ||||
Marek Vasut | 6039e0e | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 100 | #ifndef CONFIG_IMX_HAB |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 101 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | 6039e0e | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 102 | #endif |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 103 | #address-cells = <1>; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 104 | |
105 | images { | ||||
106 | uboot { | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 107 | arch = "arm64"; |
108 | compression = "none"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 109 | description = "U-Boot (64-bit)"; |
Simon Glass | 9846390 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 110 | load = <CONFIG_TEXT_BASE>; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 111 | type = "standalone"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 112 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 113 | uboot-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 114 | filename = "u-boot-nodtb.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 115 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 116 | }; |
117 | }; | ||||
118 | |||||
Marek Vasut | 9694c053 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 119 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 120 | atf { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 121 | arch = "arm64"; |
122 | compression = "none"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 123 | description = "ARM Trusted Firmware"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 124 | entry = <0x910000>; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 125 | load = <0x910000>; |
126 | type = "firmware"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 127 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 128 | atf-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 129 | filename = "bl31.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 130 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 131 | }; |
132 | }; | ||||
Marek Vasut | 9694c053 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 133 | #endif |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 134 | |
135 | fdt { | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 136 | compression = "none"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 137 | description = "NAME"; |
138 | type = "flat_dt"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 139 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 140 | uboot-fdt-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 141 | filename = "u-boot.dtb"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 142 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 143 | }; |
144 | }; | ||||
145 | }; | ||||
146 | |||||
147 | configurations { | ||||
148 | default = "conf"; | ||||
149 | |||||
150 | conf { | ||||
151 | description = "NAME"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 152 | fdt = "fdt"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 153 | firmware = "uboot"; |
Marek Vasut | 9694c053 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 154 | #ifndef CONFIG_ARMV8_PSCI |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 155 | loadables = "atf"; |
Marek Vasut | 9694c053 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 156 | #endif |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 157 | }; |
158 | }; | ||||
159 | }; | ||||
160 | }; | ||||
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 161 | |
162 | imx-boot { | ||||
163 | filename = "flash.bin"; | ||||
164 | pad-byte = <0x00>; | ||||
165 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 166 | spl { |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 167 | filename = "spl.bin"; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 168 | offset = <0x0>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 169 | type = "blob-ext"; |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 170 | }; |
171 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 172 | binman_uboot: uboot { |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 173 | filename = "u-boot.itb"; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 174 | offset = <0x57c00>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 175 | type = "blob-ext"; |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 176 | }; |
177 | }; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 178 | }; |