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