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