blob: 6c52038cdcafe93a38e1a9734005d3fbc86fc865 [file] [log] [blame]
Robert Nelson8b415f752025-03-03 13:15:15 -06001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Common AM67A BeagleY-AI dts file for SPLs
4 *
5 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
6 * Copyright (C) 2024 Robert Nelson, BeagleBoard.org Foundation
7 */
8
9#include "k3-binman.dtsi"
10
11/ {
12 chosen {
13 stdout-path = "serial2:115200n8";
14 tick-timer = &main_timer0;
15 };
16};
17
18&main_pktdma {
19 reg = <0x00 0x485c0000 0x00 0x100>,
20 <0x00 0x4a800000 0x00 0x20000>,
21 <0x00 0x4aa00000 0x00 0x40000>,
22 <0x00 0x4b800000 0x00 0x400000>,
23 <0x00 0x485e0000 0x00 0x20000>,
24 <0x00 0x484a0000 0x00 0x4000>,
25 <0x00 0x484c0000 0x00 0x2000>,
26 <0x00 0x48430000 0x00 0x4000>;
27 reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt",
28 "cfg", "tchan", "rchan", "rflow";
29};
30
31&dmsc {
32 bootph-pre-ram;
33 k3_sysreset: sysreset-controller {
34 compatible = "ti,sci-sysreset";
35 bootph-pre-ram;
36 };
37};
38
39&usbss0 {
40 bootph-pre-ram;
41};
42
43&usb0 {
44 dr_mode = "peripheral";
45 bootph-pre-ram;
46};
47
48&usbss1 {
49 status = "disabled";
50};
51
52&usb1 {
53 status = "disabled";
54};
55
56#if IS_ENABLED(CONFIG_TARGET_J722S_R5_BEAGLEY_AI)
57
58&binman {
59 tiboot3-j722s-hs-evm.bin {
60 filename = "tiboot3-j722s-hs-evm.bin";
61 ti-secure-rom {
62 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
63 <&combined_dm_cfg>, <&sysfw_inner_cert>;
64 combined;
65 dm-data;
66 sysfw-inner-cert;
67 keyfile = "custMpk.pem";
68 sw-rev = <1>;
69 content-sbl = <&u_boot_spl>;
70 content-sysfw = <&ti_fs_enc>;
71 content-sysfw-data = <&combined_tifs_cfg>;
72 content-sysfw-inner-cert = <&sysfw_inner_cert>;
73 content-dm-data = <&combined_dm_cfg>;
74 load = <0x43c00000>;
75 load-sysfw = <0x40000>;
76 load-sysfw-data = <0x67000>;
77 load-dm-data = <0x43c7a800>;
78 };
79
80 u_boot_spl: u-boot-spl {
81 no-expanded;
82 };
83
84 ti_fs_enc: ti-fs-enc.bin {
85 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-enc.bin";
86 type = "blob-ext";
87 optional;
88 };
89
90 combined_tifs_cfg: combined-tifs-cfg.bin {
91 filename = "combined-tifs-cfg.bin";
92 type = "blob-ext";
93 };
94
95 sysfw_inner_cert: sysfw-inner-cert {
96 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-cert.bin";
97 type = "blob-ext";
98 optional;
99 };
100
101 combined_dm_cfg: combined-dm-cfg.bin {
102 filename = "combined-dm-cfg.bin";
103 type = "blob-ext";
104 };
105 };
106};
107
108&binman {
109 tiboot3-j722s-hs-fs-evm.bin {
110 filename = "tiboot3-j722s-hs-fs-evm.bin";
111 symlink = "tiboot3.bin";
112
113 ti-secure-rom {
114 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
115 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
116 combined;
117 dm-data;
118 sysfw-inner-cert;
119 keyfile = "custMpk.pem";
120 sw-rev = <1>;
121 content-sbl = <&u_boot_spl_fs>;
122 content-sysfw = <&ti_fs_enc_fs>;
123 content-sysfw-data = <&combined_tifs_cfg_fs>;
124 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
125 content-dm-data = <&combined_dm_cfg_fs>;
126 load = <0x43c00000>;
127 load-sysfw = <0x40000>;
128 load-sysfw-data = <0x67000>;
129 load-dm-data = <0x43c7a800>;
130 };
131
132 u_boot_spl_fs: u-boot-spl {
133 no-expanded;
134 };
135
136 ti_fs_enc_fs: ti-fs-enc.bin {
137 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-enc.bin";
138 type = "blob-ext";
139 optional;
140 };
141
142 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
143 filename = "combined-tifs-cfg.bin";
144 type = "blob-ext";
145 };
146
147 sysfw_inner_cert_fs: sysfw-inner-cert {
148 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-cert.bin";
149 type = "blob-ext";
150 optional;
151 };
152
153 combined_dm_cfg_fs: combined-dm-cfg.bin {
154 filename = "combined-dm-cfg.bin";
155 type = "blob-ext";
156 };
157 };
158};
159#endif /* CONFIG_TARGET_J722S_R5_BEAGLEY_AI */
160
161#if IS_ENABLED(CONFIG_TARGET_J722S_A53_BEAGLEY_AI)
162
163#define SPL_BEAGLEY_AI_DTB "spl/dts/ti/k3-am67a-beagley-ai.dtb"
164#define BEAGLEY_AI_DTB "u-boot.dtb"
165
166&binman {
167 ti-dm {
168 filename = "ti-dm.bin";
169
170 blob-ext {
171 filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
172 optional;
173 };
174 };
175
176 ti-spl {
177 insert-template = <&ti_spl_template>;
178
179 fit {
180 images {
181 dm {
182 ti-secure {
183 content = <&dm>;
184 keyfile = "custMpk.pem";
185 };
186
187 dm: ti-dm {
188 filename = "ti-dm.bin";
189 };
190 };
191
192 fdt-0 {
193 description = "k3-am67a-beagley-ai";
194 type = "flat_dt";
195 arch = "arm";
196 compression = "none";
197
198 ti-secure {
199 content = <&spl_beagley_ai_dtb>;
200 keyfile = "custMpk.pem";
201 };
202
203 spl_beagley_ai_dtb: blob-ext {
204 filename = "spl/dts/ti/k3-am67a-beagley-ai.dtb";
205 };
206
207 };
208
209 };
210
211 configurations {
212 default = "conf-0";
213
214 conf-0 {
215 description = "k3-am67a-beagley-ai";
216 firmware = "atf";
217 loadables = "tee", "dm", "spl";
218 fdt = "fdt-0";
219 };
220 };
221 };
222 };
223};
224
225&binman {
226 u-boot {
227 insert-template = <&u_boot_template>;
228
229 fit {
230 images {
231 uboot {
232 description = "U-Boot for BeagleY-AI";
233 };
234
235 fdt-0 {
236 description = "k3-am67a-beagley-ai";
237 type = "flat_dt";
238 arch = "arm";
239 compression = "none";
240
241 ti-secure {
242 content = <&beagley_ai_dtb>;
243 keyfile = "custMpk.pem";
244 };
245
246 beagley_ai_dtb: blob-ext {
247 filename = "u-boot.dtb";
248 };
249
250 hash {
251 algo = "crc32";
252 };
253 };
254 };
255
256 configurations {
257 default = "conf-0";
258
259 conf-0 {
260 description = "k3-k3-am67a-beagley-ai";
261 firmware = "uboot";
262 loadables = "uboot";
263 fdt = "fdt-0";
264 };
265
266 };
267 };
268 };
269};
270#endif /* CONFIG_TARGET_J722S_A53_BEAGLEY_AI */