blob: 770282d2b984941149729e1064af3a1e4626340c [file] [log] [blame]
Jagan Teki73d51182021-04-26 18:23:46 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com>
4 */
5
Marcel Ziswilerd56d1172021-10-23 01:15:13 +02006/ {
7 binman: binman {
8 multiple-images;
9 };
10};
11
Jagan Teki73d51182021-04-26 18:23:46 +053012&{/soc@0} {
13 u-boot,dm-pre-reloc;
14 u-boot,dm-spl;
15};
16
17&aips1 {
Jagan Teki73d51182021-04-26 18:23:46 +053018 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020019 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +053020};
21
22&aips2 {
23 u-boot,dm-spl;
24};
25
26&aips3 {
27 u-boot,dm-spl;
28};
29
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020030&binman {
31 u-boot-spl-ddr {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020032 align = <4>;
33 align-size = <4>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020034 filename = "u-boot-spl-ddr.bin";
35 pad-byte = <0xff>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020036
37 u-boot-spl {
38 align-end = <4>;
39 };
40
41 blob_1: blob-ext@1 {
42 filename = "lpddr4_pmu_train_1d_imem.bin";
43 size = <0x8000>;
44 };
45
46 blob_2: blob-ext@2 {
47 filename = "lpddr4_pmu_train_1d_dmem.bin";
48 size = <0x4000>;
49 };
50
51 blob_3: blob-ext@3 {
52 filename = "lpddr4_pmu_train_2d_imem.bin";
53 size = <0x8000>;
54 };
55
56 blob_4: blob-ext@4 {
57 filename = "lpddr4_pmu_train_2d_dmem.bin";
58 size = <0x4000>;
59 };
60 };
61
62 spl {
63 filename = "spl.bin";
64
65 mkimage {
66 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
67
68 blob {
69 filename = "u-boot-spl-ddr.bin";
70 };
71 };
72 };
73
74 itb {
75 filename = "u-boot.itb";
76
77 fit {
78 description = "Configuration to load ATF before U-Boot";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020079 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
80 fit,fdt-list = "of-list";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020081 #address-cells = <1>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020082
83 images {
84 uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020085 arch = "arm64";
86 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020087 description = "U-Boot (64-bit)";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020088 load = <CONFIG_SYS_TEXT_BASE>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020089 type = "standalone";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020090
91 uboot_blob: blob-ext {
92 filename = "u-boot-nodtb.bin";
93 };
94 };
95
96 atf {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020097 arch = "arm64";
98 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020099 description = "ARM Trusted Firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200100 entry = <0x920000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200101 load = <0x920000>;
102 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200103
104 atf_blob: blob-ext {
105 filename = "bl31.bin";
106 };
107 };
108
109 binman_fip: fip {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200110 arch = "arm64";
111 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200112 description = "Trusted Firmware FIP";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200113 load = <0x40310000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200114 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200115 };
116
117 @fdt-SEQ {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200118 compression = "none";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200119 description = "NAME";
120 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200121
122 uboot_fdt_blob: blob-ext {
123 filename = "u-boot.dtb";
124 };
125 };
126 };
127
128 configurations {
129 default = "@config-DEFAULT-SEQ";
130
131 binman_configuration: @config-SEQ {
132 description = "NAME";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200133 fdt = "fdt-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200134 firmware = "uboot";
135 loadables = "atf";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200136 };
137 };
138 };
139 };
140
141 imx-boot {
142 filename = "flash.bin";
143 pad-byte = <0x00>;
144
145 spl: blob-ext@1 {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200146 filename = "spl.bin";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200147 offset = <0x0>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200148 };
149
150 binman_uboot: blob-ext@2 {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200151 filename = "u-boot.itb";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200152 offset = <0x57c00>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200153 };
154 };
155};
156
Jagan Teki73d51182021-04-26 18:23:46 +0530157&clk {
Jagan Teki73d51182021-04-26 18:23:46 +0530158 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200159 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +0530160 /delete-property/ assigned-clocks;
161 /delete-property/ assigned-clock-parents;
162 /delete-property/ assigned-clock-rates;
163};
164
165&iomuxc {
166 u-boot,dm-spl;
167};
168
169&osc_24m {
Jagan Teki73d51182021-04-26 18:23:46 +0530170 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200171 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +0530172};