arm64: dts: imx8mm-u-boot.dtsi: imx8mp-u-boot.dtsi: use atf-bl31 type
[platform/kernel/u-boot.git] / arch / arm / dts / imx8mp-u-boot.dtsi
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
13 &{/soc@0} {
14         u-boot,dm-pre-reloc;
15         u-boot,dm-spl;
16 };
17
18 &clk {
19         u-boot,dm-spl;
20         u-boot,dm-pre-reloc;
21         /delete-property/ assigned-clocks;
22         /delete-property/ assigned-clock-parents;
23         /delete-property/ assigned-clock-rates;
24 };
25
26 &osc_32k {
27         u-boot,dm-spl;
28         u-boot,dm-pre-reloc;
29 };
30
31 &osc_24m {
32         u-boot,dm-spl;
33         u-boot,dm-pre-reloc;
34 };
35
36 &aips1 {
37         u-boot,dm-spl;
38         u-boot,dm-pre-reloc;
39 };
40
41 &aips2 {
42         u-boot,dm-spl;
43 };
44
45 &aips3 {
46         u-boot,dm-spl;
47 };
48
49 &iomuxc {
50         u-boot,dm-spl;
51 };
52
53 &binman {
54          u-boot-spl-ddr {
55                 filename = "u-boot-spl-ddr.bin";
56                 pad-byte = <0xff>;
57                 align-size = <4>;
58                 align = <4>;
59
60                 u-boot-spl {
61                         align-end = <4>;
62                 };
63
64                 blob_1: blob-ext@1 {
65                         filename = "lpddr4_pmu_train_1d_imem_202006.bin";
66                         size = <0x8000>;
67                 };
68
69                 blob_2: blob-ext@2 {
70                         filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
71                         size = <0x4000>;
72                 };
73
74                 blob_3: blob-ext@3 {
75                         filename = "lpddr4_pmu_train_2d_imem_202006.bin";
76                         size = <0x8000>;
77                 };
78
79                 blob_4: blob-ext@4 {
80                         filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
81                         size = <0x4000>;
82                 };
83         };
84
85         spl {
86                 filename = "spl.bin";
87
88                 mkimage {
89                         args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000";
90
91                         blob {
92                                 filename = "u-boot-spl-ddr.bin";
93                         };
94                 };
95         };
96
97         itb {
98                 filename = "u-boot.itb";
99
100                 fit {
101                         description = "Configuration to load ATF before U-Boot";
102                         #address-cells = <1>;
103                         fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
104
105                         images {
106                                 uboot {
107                                         description = "U-Boot (64-bit)";
108                                         type = "standalone";
109                                         arch = "arm64";
110                                         compression = "none";
111                                         load = <CONFIG_SYS_TEXT_BASE>;
112
113                                         uboot_blob: blob-ext {
114                                                 filename = "u-boot-nodtb.bin";
115                                         };
116                                 };
117
118                                 atf {
119                                         description = "ARM Trusted Firmware";
120                                         type = "firmware";
121                                         arch = "arm64";
122                                         compression = "none";
123                                         load = <0x970000>;
124                                         entry = <0x970000>;
125
126                                         atf_blob: atf-blob {
127                                                 filename = "bl31.bin";
128                                                 type = "atf-bl31";
129                                         };
130                                 };
131
132                                 fdt {
133                                         description = "NAME";
134                                         type = "flat_dt";
135                                         compression = "none";
136
137                                         uboot_fdt_blob: blob-ext {
138                                                 filename = "u-boot.dtb";
139                                         };
140                                 };
141                         };
142
143                         configurations {
144                                 default = "conf";
145
146                                 conf {
147                                         description = "NAME";
148                                         firmware = "uboot";
149                                         loadables = "atf";
150                                         fdt = "fdt";
151                                 };
152                         };
153                 };
154         };
155
156         imx-boot {
157                 filename = "flash.bin";
158                 pad-byte = <0x00>;
159
160                 spl: blob-ext@1 {
161                         filename = "spl.bin";
162                         offset = <0x0>;
163                 };
164
165                 uboot: blob-ext@2 {
166                         filename = "u-boot.itb";
167                         offset = <0x58000>;
168                 };
169         };
170 };