Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | /* | ||||
3 | * Copyright (C) 2021 PHYTEC Messtechnik GmbH | ||||
4 | * Author: Teresa Remmet <t.remmet@phytec.de> | ||||
5 | */ | ||||
6 | |||||
7 | / { | ||||
8 | binman: binman { | ||||
9 | multiple-images; | ||||
10 | }; | ||||
11 | }; | ||||
12 | |||||
Marcel Ziswiler | cdfde79 | 2022-11-07 22:22:39 +0100 | [diff] [blame] | 13 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 14 | bootph-all; |
15 | bootph-pre-ram; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 16 | }; |
17 | |||||
18 | &clk { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 19 | bootph-pre-ram; |
20 | bootph-all; | ||||
Ye Li | f93d54d | 2021-08-17 14:32:04 +0800 | [diff] [blame] | 21 | /delete-property/ assigned-clocks; |
22 | /delete-property/ assigned-clock-parents; | ||||
23 | /delete-property/ assigned-clock-rates; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 24 | }; |
25 | |||||
26 | &osc_32k { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 27 | bootph-pre-ram; |
28 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 29 | }; |
30 | |||||
31 | &osc_24m { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-pre-ram; |
33 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 34 | }; |
35 | |||||
36 | &aips1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
38 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 39 | }; |
40 | |||||
41 | &aips2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 42 | bootph-pre-ram; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 43 | }; |
44 | |||||
45 | &aips3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-pre-ram; |
Adam Ford | 0a357f9 | 2023-05-30 17:45:58 -0500 | [diff] [blame] | 47 | spba-bus@30800000 { |
48 | bootph-pre-ram; | ||||
49 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 50 | }; |
51 | |||||
52 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 53 | bootph-pre-ram; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 54 | }; |
55 | |||||
56 | &binman { | ||||
57 | u-boot-spl-ddr { | ||||
58 | filename = "u-boot-spl-ddr.bin"; | ||||
59 | pad-byte = <0xff>; | ||||
60 | align-size = <4>; | ||||
61 | align = <4>; | ||||
62 | |||||
63 | u-boot-spl { | ||||
64 | align-end = <4>; | ||||
65 | }; | ||||
66 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 67 | ddr-1d-imem-fw { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 68 | filename = "lpddr4_pmu_train_1d_imem_202006.bin"; |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 69 | type = "blob-ext"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 70 | align-end = <4>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 71 | }; |
72 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 73 | ddr-1d-dmem-fw { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 74 | filename = "lpddr4_pmu_train_1d_dmem_202006.bin"; |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 75 | type = "blob-ext"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 76 | align-end = <4>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 77 | }; |
78 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 79 | ddr-2d-imem-fw { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 80 | filename = "lpddr4_pmu_train_2d_imem_202006.bin"; |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 81 | type = "blob-ext"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 82 | align-end = <4>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 83 | }; |
84 | |||||
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 85 | ddr-2d-dmem-fw { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 86 | filename = "lpddr4_pmu_train_2d_dmem_202006.bin"; |
Peng Fan | 5db610f4 | 2022-07-26 16:41:20 +0800 | [diff] [blame] | 87 | type = "blob-ext"; |
Peng Fan | 6881157 | 2022-07-26 16:41:22 +0800 | [diff] [blame] | 88 | align-end = <4>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 89 | }; |
90 | }; | ||||
91 | |||||
Teresa Remmet | 1d05e8e | 2021-08-26 10:54:09 +0200 | [diff] [blame] | 92 | spl { |
93 | filename = "spl.bin"; | ||||
94 | |||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 95 | mkimage { |
96 | args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000"; | ||||
97 | |||||
98 | blob { | ||||
99 | filename = "u-boot-spl-ddr.bin"; | ||||
100 | }; | ||||
101 | }; | ||||
102 | }; | ||||
103 | |||||
104 | itb { | ||||
105 | filename = "u-boot.itb"; | ||||
106 | |||||
107 | 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 |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 110 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 111 | #endif |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 112 | fit,fdt-list = "of-list"; |
113 | #address-cells = <1>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 114 | |
115 | images { | ||||
116 | uboot { | ||||
117 | description = "U-Boot (64-bit)"; | ||||
118 | type = "standalone"; | ||||
119 | arch = "arm64"; | ||||
120 | compression = "none"; | ||||
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 121 | load = <CONFIG_TEXT_BASE>; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 122 | |
123 | uboot_blob: blob-ext { | ||||
124 | filename = "u-boot-nodtb.bin"; | ||||
125 | }; | ||||
126 | }; | ||||
127 | |||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 128 | #ifndef CONFIG_ARMV8_PSCI |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 129 | atf { |
130 | description = "ARM Trusted Firmware"; | ||||
131 | type = "firmware"; | ||||
132 | arch = "arm64"; | ||||
133 | compression = "none"; | ||||
134 | load = <0x970000>; | ||||
135 | entry = <0x970000>; | ||||
136 | |||||
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 137 | atf_blob: atf-blob { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 138 | filename = "bl31.bin"; |
Marcel Ziswiler | d87d2f1 | 2022-04-08 10:06:56 +0200 | [diff] [blame] | 139 | type = "atf-bl31"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 140 | }; |
141 | }; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 142 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 143 | |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 144 | @fdt-SEQ { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 145 | description = "NAME"; |
146 | type = "flat_dt"; | ||||
147 | compression = "none"; | ||||
148 | |||||
Simon Glass | ceea784 | 2023-08-23 19:18:01 -0600 | [diff] [blame] | 149 | blob-ext { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 150 | filename = "u-boot.dtb"; |
151 | }; | ||||
152 | }; | ||||
153 | }; | ||||
154 | |||||
155 | configurations { | ||||
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 156 | default = "@config-DEFAULT-SEQ"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 157 | |
Simon Glass | ceea784 | 2023-08-23 19:18:01 -0600 | [diff] [blame] | 158 | @config-SEQ { |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 159 | description = "NAME"; |
Tim Harvey | 6504874 | 2022-04-15 13:41:54 -0700 | [diff] [blame] | 160 | fdt = "fdt-SEQ"; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 161 | firmware = "uboot"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 162 | #ifndef CONFIG_ARMV8_PSCI |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 163 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 164 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 165 | }; |
166 | }; | ||||
167 | }; | ||||
168 | }; | ||||
Teresa Remmet | 1d05e8e | 2021-08-26 10:54:09 +0200 | [diff] [blame] | 169 | |
170 | imx-boot { | ||||
171 | filename = "flash.bin"; | ||||
172 | pad-byte = <0x00>; | ||||
173 | |||||
174 | spl: blob-ext@1 { | ||||
175 | filename = "spl.bin"; | ||||
176 | offset = <0x0>; | ||||
177 | }; | ||||
178 | |||||
179 | uboot: blob-ext@2 { | ||||
180 | filename = "u-boot.itb"; | ||||
181 | offset = <0x58000>; | ||||
182 | }; | ||||
183 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 184 | }; |