Merge https://gitlab.denx.de/u-boot/custodians/u-boot-pmic
[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                         fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
103                         fit,fdt-list = "of-list";
104                         #address-cells = <1>;
105
106                         images {
107                                 uboot {
108                                         description = "U-Boot (64-bit)";
109                                         type = "standalone";
110                                         arch = "arm64";
111                                         compression = "none";
112                                         load = <CONFIG_SYS_TEXT_BASE>;
113
114                                         uboot_blob: blob-ext {
115                                                 filename = "u-boot-nodtb.bin";
116                                         };
117                                 };
118
119                                 atf {
120                                         description = "ARM Trusted Firmware";
121                                         type = "firmware";
122                                         arch = "arm64";
123                                         compression = "none";
124                                         load = <0x970000>;
125                                         entry = <0x970000>;
126
127                                         atf_blob: atf-blob {
128                                                 filename = "bl31.bin";
129                                                 type = "atf-bl31";
130                                         };
131                                 };
132
133                                 @fdt-SEQ {
134                                         description = "NAME";
135                                         type = "flat_dt";
136                                         compression = "none";
137
138                                         uboot_fdt_blob: blob-ext {
139                                                 filename = "u-boot.dtb";
140                                         };
141                                 };
142                         };
143
144                         configurations {
145                                 default = "@config-DEFAULT-SEQ";
146
147                                 @config-SEQ {
148                                         description = "NAME";
149                                         fdt = "fdt-SEQ";
150                                         firmware = "uboot";
151                                         loadables = "atf";
152                                 };
153                         };
154                 };
155         };
156
157         imx-boot {
158                 filename = "flash.bin";
159                 pad-byte = <0x00>;
160
161                 spl: blob-ext@1 {
162                         filename = "spl.bin";
163                         offset = <0x0>;
164                 };
165
166                 uboot: blob-ext@2 {
167                         filename = "u-boot.itb";
168                         offset = <0x58000>;
169                 };
170         };
171 };