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 { | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 8 | }; |
9 | |||||
10 | }; | ||||
11 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 12 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 13 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 14 | }; |
15 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 16 | &aips1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 17 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 18 | }; |
19 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 20 | &aips2 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 21 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 22 | }; |
23 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 24 | &aips3 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 25 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 26 | }; |
27 | |||||
Marcel Ziswiler | 5b427d8 | 2022-11-07 22:22:38 +0100 | [diff] [blame] | 28 | &aips4 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 29 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 30 | }; |
31 | |||||
32 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
Peng Fan | bd4beeb | 2022-05-05 15:43:38 +0800 | [diff] [blame] | 34 | }; |
35 | |||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 36 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 37 | filename = "flash.bin"; |
38 | section { | ||||
39 | pad-byte = <0x00>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 40 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 41 | #ifdef CONFIG_IMX_HAB |
42 | nxp-imx8mcst@0 { | ||||
43 | filename = "u-boot-spl-mkimage.signed.bin"; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 44 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 45 | nxp,unlock; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 46 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 47 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 48 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 49 | binman_imx_spl: nxp-imx8mimage { |
50 | filename = "u-boot-spl-mkimage.bin"; | ||||
51 | nxp,boot-from = "sd"; | ||||
52 | nxp,rom-version = <1>; | ||||
53 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; | ||||
54 | args; /* Needed by mkimage etype superclass */ | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 55 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 56 | section { |
57 | align = <4>; | ||||
58 | align-size = <4>; | ||||
59 | filename = "u-boot-spl-ddr.bin"; | ||||
60 | pad-byte = <0xff>; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 61 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 62 | u-boot-spl { |
63 | align-end = <4>; | ||||
64 | filename = "u-boot-spl.bin"; | ||||
65 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 66 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 67 | ddr-1d-imem-fw { |
68 | filename = "lpddr4_pmu_train_1d_imem.bin"; | ||||
69 | align-end = <4>; | ||||
70 | type = "blob-ext"; | ||||
71 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 72 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 73 | ddr-1d-dmem-fw { |
74 | filename = "lpddr4_pmu_train_1d_dmem.bin"; | ||||
75 | align-end = <4>; | ||||
76 | type = "blob-ext"; | ||||
77 | }; | ||||
Patrick Wildt | 3d90672 | 2022-01-08 16:34:17 +0100 | [diff] [blame] | 78 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 79 | ddr-2d-imem-fw { |
80 | filename = "lpddr4_pmu_train_2d_imem.bin"; | ||||
81 | align-end = <4>; | ||||
82 | type = "blob-ext"; | ||||
83 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 84 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 85 | ddr-2d-dmem-fw { |
86 | filename = "lpddr4_pmu_train_2d_dmem.bin"; | ||||
87 | align-end = <4>; | ||||
88 | type = "blob-ext"; | ||||
89 | }; | ||||
90 | |||||
91 | signed-hdmi-imx8m { | ||||
92 | filename = "signed_hdmi_imx8m.bin"; | ||||
93 | type = "blob-ext"; | ||||
94 | }; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 95 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 96 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 97 | #ifdef CONFIG_IMX_HAB |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 98 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 99 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 100 | nxp-imx8mcst@1 { |
101 | filename = "u-boot-fit.signed.bin"; | ||||
102 | nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; | ||||
103 | offset = <0x58000>; | ||||
104 | args; /* Needed by mkimage etype superclass */ | ||||
105 | #endif | ||||
106 | |||||
107 | binman_imx_fit: fit { | ||||
108 | description = "Configuration to load ATF before U-Boot"; | ||||
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 109 | #ifndef CONFIG_IMX_HAB |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 110 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 111 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 112 | #address-cells = <1>; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 113 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 114 | images { |
115 | uboot { | ||||
116 | arch = "arm64"; | ||||
117 | compression = "none"; | ||||
118 | description = "U-Boot (64-bit)"; | ||||
119 | load = <CONFIG_TEXT_BASE>; | ||||
120 | type = "standalone"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 121 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 122 | uboot-blob { |
123 | filename = "u-boot-nodtb.bin"; | ||||
124 | type = "blob-ext"; | ||||
125 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 126 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 127 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 128 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 129 | atf { |
130 | arch = "arm64"; | ||||
131 | compression = "none"; | ||||
132 | description = "ARM Trusted Firmware"; | ||||
133 | entry = <0x910000>; | ||||
134 | load = <0x910000>; | ||||
135 | type = "firmware"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 136 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 137 | atf-blob { |
138 | filename = "bl31.bin"; | ||||
139 | type = "blob-ext"; | ||||
140 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 141 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 142 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 143 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 144 | fdt { |
145 | compression = "none"; | ||||
146 | description = "NAME"; | ||||
147 | type = "flat_dt"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 148 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 149 | uboot-fdt-blob { |
150 | filename = "u-boot.dtb"; | ||||
151 | type = "blob-ext"; | ||||
152 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 153 | }; |
154 | }; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 155 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 156 | configurations { |
157 | default = "conf"; | ||||
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 158 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 159 | conf { |
160 | description = "NAME"; | ||||
161 | fdt = "fdt"; | ||||
162 | firmware = "uboot"; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 163 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 164 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 165 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 166 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 167 | }; |
168 | }; | ||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 169 | #ifdef CONFIG_IMX_HAB |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 170 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 171 | #endif |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 172 | }; |
Peng Fan | 4311f5a | 2021-10-22 10:42:16 +0800 | [diff] [blame] | 173 | }; |