Peng Fan | 4311f5a | 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 | |||||
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 13 | &{/soc@0} { |
14 | u-boot,dm-spl; | ||||
15 | }; | ||||
16 | |||||
17 | &{/soc@0/bus@30000000} { | ||||
18 | u-boot,dm-spl; | ||||
19 | }; | ||||
20 | |||||
21 | &{/soc@0/bus@30400000} { | ||||
22 | u-boot,dm-spl; | ||||
23 | }; | ||||
24 | |||||
25 | &{/soc@0/bus@30800000} { | ||||
26 | u-boot,dm-spl; | ||||
27 | }; | ||||
28 | |||||
29 | &{/soc@0/bus@32c00000} { | ||||
30 | u-boot,dm-spl; | ||||
31 | }; | ||||
32 | |||||
33 | &iomuxc { | ||||
34 | u-boot,dm-spl; | ||||
35 | }; | ||||
36 | |||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 37 | &binman { |
38 | u-boot-spl-ddr { | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 39 | align = <4>; |
40 | align-size = <4>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 41 | filename = "u-boot-spl-ddr.bin"; |
42 | pad-byte = <0xff>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 43 | |
44 | u-boot-spl { | ||||
45 | align-end = <4>; | ||||
Patrick Wildt | 4cbc3b6 | 2022-01-13 15:21:47 +0100 | [diff] [blame] | 46 | filename = "u-boot-spl.bin"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 47 | }; |
48 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 49 | 1d-imem { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 50 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
51 | size = <0x8000>; | ||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 52 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 53 | }; |
54 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 55 | 1d-dmem { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 56 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
57 | size = <0x4000>; | ||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 58 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 59 | }; |
60 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 61 | 2d-imem { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 62 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
63 | size = <0x8000>; | ||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 64 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 65 | }; |
66 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 67 | 2d-dmem { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 68 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
69 | size = <0x4000>; | ||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 70 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 71 | }; |
72 | }; | ||||
73 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 74 | signed-hdmi { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 75 | filename = "signed_hdmi.bin"; |
76 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 77 | signed-hdmi-imx8m { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 78 | filename = "signed_hdmi_imx8m.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 79 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 80 | }; |
81 | }; | ||||
82 | |||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 83 | spl { |
84 | filename = "spl.bin"; | ||||
85 | |||||
Peng Fan | 4311f5a | 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 | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 92 | }; |
Peng Fan | 4311f5a | 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"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 100 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 101 | #address-cells = <1>; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 102 | |
103 | images { | ||||
104 | uboot { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 105 | arch = "arm64"; |
106 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 107 | description = "U-Boot (64-bit)"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 108 | load = <CONFIG_SYS_TEXT_BASE>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 109 | type = "standalone"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 110 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 111 | uboot-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 112 | filename = "u-boot-nodtb.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 113 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 114 | }; |
115 | }; | ||||
116 | |||||
117 | atf { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 118 | arch = "arm64"; |
119 | compression = "none"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 120 | description = "ARM Trusted Firmware"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 121 | entry = <0x910000>; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 122 | load = <0x910000>; |
123 | type = "firmware"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 124 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 125 | atf-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 126 | filename = "bl31.bin"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 127 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 128 | }; |
129 | }; | ||||
130 | |||||
131 | fdt { | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 132 | compression = "none"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 133 | description = "NAME"; |
134 | type = "flat_dt"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 135 | |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 136 | uboot-fdt-blob { |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 137 | filename = "u-boot.dtb"; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 138 | type = "blob-ext"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 139 | }; |
140 | }; | ||||
141 | }; | ||||
142 | |||||
143 | configurations { | ||||
144 | default = "conf"; | ||||
145 | |||||
146 | conf { | ||||
147 | description = "NAME"; | ||||
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 148 | fdt = "fdt"; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 149 | firmware = "uboot"; |
150 | loadables = "atf"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 151 | }; |
152 | }; | ||||
153 | }; | ||||
154 | }; | ||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 155 | |
156 | imx-boot { | ||||
157 | filename = "flash.bin"; | ||||
158 | pad-byte = <0x00>; | ||||
159 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 160 | spl { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 161 | filename = "spl.bin"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 162 | offset = <0x0>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 163 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 164 | }; |
165 | |||||
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 166 | binman_uboot: uboot { |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 167 | filename = "u-boot.itb"; |
Patrick Wildt | 3d5ce4e | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 168 | offset = <0x57c00>; |
Patrick Wildt | e532199 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 169 | type = "blob-ext"; |
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 170 | }; |
171 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 172 | }; |