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 | |||||
13 | &binman { | ||||
14 | u-boot-spl-ddr { | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 15 | align = <4>; |
16 | align-size = <4>; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 17 | filename = "u-boot-spl-ddr.bin"; |
18 | pad-byte = <0xff>; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 19 | |
20 | u-boot-spl { | ||||
21 | align-end = <4>; | ||||
Patrick Wildt | 553216f | 2022-01-13 15:21:47 +0100 | [diff] [blame] | 22 | filename = "u-boot-spl.bin"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 23 | }; |
24 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 25 | 1d-imem { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 26 | filename = "lpddr4_pmu_train_1d_imem.bin"; |
27 | size = <0x8000>; | ||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 28 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 29 | }; |
30 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 31 | 1d-dmem { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 32 | filename = "lpddr4_pmu_train_1d_dmem.bin"; |
33 | size = <0x4000>; | ||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 34 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 35 | }; |
36 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 37 | 2d-imem { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 38 | filename = "lpddr4_pmu_train_2d_imem.bin"; |
39 | size = <0x8000>; | ||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 40 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 41 | }; |
42 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 43 | 2d-dmem { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 44 | filename = "lpddr4_pmu_train_2d_dmem.bin"; |
45 | size = <0x4000>; | ||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 46 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 47 | }; |
48 | }; | ||||
49 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 50 | signed-hdmi { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 51 | filename = "signed_hdmi.bin"; |
52 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 53 | signed-hdmi-imx8m { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 54 | filename = "signed_hdmi_imx8m.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 55 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 56 | }; |
57 | }; | ||||
58 | |||||
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 59 | spl { |
60 | filename = "spl.bin"; | ||||
61 | |||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 62 | mkimage { |
63 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; | ||||
64 | |||||
65 | blob { | ||||
66 | filename = "u-boot-spl-ddr.bin"; | ||||
67 | }; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 68 | }; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 69 | }; |
70 | |||||
71 | itb { | ||||
72 | filename = "u-boot.itb"; | ||||
73 | |||||
74 | fit { | ||||
75 | description = "Configuration to load ATF before U-Boot"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 76 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 77 | #address-cells = <1>; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 78 | |
79 | images { | ||||
80 | uboot { | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 81 | arch = "arm64"; |
82 | compression = "none"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 83 | description = "U-Boot (64-bit)"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 84 | load = <CONFIG_SYS_TEXT_BASE>; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 85 | type = "standalone"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 86 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 87 | uboot-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 88 | filename = "u-boot-nodtb.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 89 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 90 | }; |
91 | }; | ||||
92 | |||||
93 | atf { | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 94 | arch = "arm64"; |
95 | compression = "none"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 96 | description = "ARM Trusted Firmware"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 97 | entry = <0x910000>; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 98 | load = <0x910000>; |
99 | type = "firmware"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 100 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 101 | atf-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 102 | filename = "bl31.bin"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 103 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 104 | }; |
105 | }; | ||||
106 | |||||
107 | fdt { | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 108 | compression = "none"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 109 | description = "NAME"; |
110 | type = "flat_dt"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 111 | |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 112 | uboot-fdt-blob { |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 113 | filename = "u-boot.dtb"; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 114 | type = "blob-ext"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 115 | }; |
116 | }; | ||||
117 | }; | ||||
118 | |||||
119 | configurations { | ||||
120 | default = "conf"; | ||||
121 | |||||
122 | conf { | ||||
123 | description = "NAME"; | ||||
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 124 | fdt = "fdt"; |
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 125 | firmware = "uboot"; |
126 | loadables = "atf"; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 127 | }; |
128 | }; | ||||
129 | }; | ||||
130 | }; | ||||
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 131 | |
132 | imx-boot { | ||||
133 | filename = "flash.bin"; | ||||
134 | pad-byte = <0x00>; | ||||
135 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 136 | spl { |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 137 | filename = "spl.bin"; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 138 | offset = <0x0>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 139 | type = "blob-ext"; |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 140 | }; |
141 | |||||
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 142 | binman_uboot: uboot { |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 143 | filename = "u-boot.itb"; |
Patrick Wildt | 440c7d1 | 2022-01-13 15:21:24 +0100 | [diff] [blame] | 144 | offset = <0x57c00>; |
Patrick Wildt | ea4e938 | 2022-01-13 15:22:41 +0100 | [diff] [blame] | 145 | type = "blob-ext"; |
Patrick Wildt | b05cebb | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 146 | }; |
147 | }; | ||||
Peng Fan | c1ecd03 | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 148 | }; |