blob: 6330ca93fc748ee84c41884612d160b2ec2bbee2 [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
Nishanth Menon3e6c01a2025-04-25 12:31:12 -050056&main_gpio1 {
57 bootph-all;
58};
59
Robert Nelson8b415f752025-03-03 13:15:15 -060060#if IS_ENABLED(CONFIG_TARGET_J722S_R5_BEAGLEY_AI)
61
62&binman {
63 tiboot3-j722s-hs-evm.bin {
64 filename = "tiboot3-j722s-hs-evm.bin";
65 ti-secure-rom {
66 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
67 <&combined_dm_cfg>, <&sysfw_inner_cert>;
68 combined;
69 dm-data;
70 sysfw-inner-cert;
71 keyfile = "custMpk.pem";
72 sw-rev = <1>;
73 content-sbl = <&u_boot_spl>;
74 content-sysfw = <&ti_fs_enc>;
75 content-sysfw-data = <&combined_tifs_cfg>;
76 content-sysfw-inner-cert = <&sysfw_inner_cert>;
77 content-dm-data = <&combined_dm_cfg>;
78 load = <0x43c00000>;
79 load-sysfw = <0x40000>;
80 load-sysfw-data = <0x67000>;
81 load-dm-data = <0x43c7a800>;
82 };
83
84 u_boot_spl: u-boot-spl {
85 no-expanded;
86 };
87
88 ti_fs_enc: ti-fs-enc.bin {
89 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-enc.bin";
90 type = "blob-ext";
91 optional;
92 };
93
94 combined_tifs_cfg: combined-tifs-cfg.bin {
95 filename = "combined-tifs-cfg.bin";
96 type = "blob-ext";
97 };
98
99 sysfw_inner_cert: sysfw-inner-cert {
100 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-cert.bin";
101 type = "blob-ext";
102 optional;
103 };
104
105 combined_dm_cfg: combined-dm-cfg.bin {
106 filename = "combined-dm-cfg.bin";
107 type = "blob-ext";
108 };
109 };
110};
111
112&binman {
113 tiboot3-j722s-hs-fs-evm.bin {
114 filename = "tiboot3-j722s-hs-fs-evm.bin";
115 symlink = "tiboot3.bin";
116
117 ti-secure-rom {
118 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
119 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
120 combined;
121 dm-data;
122 sysfw-inner-cert;
123 keyfile = "custMpk.pem";
124 sw-rev = <1>;
125 content-sbl = <&u_boot_spl_fs>;
126 content-sysfw = <&ti_fs_enc_fs>;
127 content-sysfw-data = <&combined_tifs_cfg_fs>;
128 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
129 content-dm-data = <&combined_dm_cfg_fs>;
130 load = <0x43c00000>;
131 load-sysfw = <0x40000>;
132 load-sysfw-data = <0x67000>;
133 load-dm-data = <0x43c7a800>;
134 };
135
136 u_boot_spl_fs: u-boot-spl {
137 no-expanded;
138 };
139
140 ti_fs_enc_fs: ti-fs-enc.bin {
141 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-enc.bin";
142 type = "blob-ext";
143 optional;
144 };
145
146 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
147 filename = "combined-tifs-cfg.bin";
148 type = "blob-ext";
149 };
150
151 sysfw_inner_cert_fs: sysfw-inner-cert {
152 filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-cert.bin";
153 type = "blob-ext";
154 optional;
155 };
156
157 combined_dm_cfg_fs: combined-dm-cfg.bin {
158 filename = "combined-dm-cfg.bin";
159 type = "blob-ext";
160 };
161 };
162};
163#endif /* CONFIG_TARGET_J722S_R5_BEAGLEY_AI */
164
165#if IS_ENABLED(CONFIG_TARGET_J722S_A53_BEAGLEY_AI)
166
167#define SPL_BEAGLEY_AI_DTB "spl/dts/ti/k3-am67a-beagley-ai.dtb"
168#define BEAGLEY_AI_DTB "u-boot.dtb"
169
170&binman {
171 ti-dm {
172 filename = "ti-dm.bin";
173
174 blob-ext {
175 filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
176 optional;
177 };
178 };
179
180 ti-spl {
181 insert-template = <&ti_spl_template>;
182
183 fit {
184 images {
185 dm {
186 ti-secure {
187 content = <&dm>;
188 keyfile = "custMpk.pem";
189 };
190
191 dm: ti-dm {
192 filename = "ti-dm.bin";
193 };
194 };
195
196 fdt-0 {
197 description = "k3-am67a-beagley-ai";
198 type = "flat_dt";
199 arch = "arm";
200 compression = "none";
201
202 ti-secure {
203 content = <&spl_beagley_ai_dtb>;
204 keyfile = "custMpk.pem";
205 };
206
207 spl_beagley_ai_dtb: blob-ext {
208 filename = "spl/dts/ti/k3-am67a-beagley-ai.dtb";
209 };
210
211 };
212
213 };
214
215 configurations {
216 default = "conf-0";
217
218 conf-0 {
219 description = "k3-am67a-beagley-ai";
220 firmware = "atf";
221 loadables = "tee", "dm", "spl";
222 fdt = "fdt-0";
223 };
224 };
225 };
226 };
227};
228
229&binman {
230 u-boot {
231 insert-template = <&u_boot_template>;
232
233 fit {
234 images {
235 uboot {
236 description = "U-Boot for BeagleY-AI";
237 };
238
239 fdt-0 {
240 description = "k3-am67a-beagley-ai";
241 type = "flat_dt";
242 arch = "arm";
243 compression = "none";
244
245 ti-secure {
246 content = <&beagley_ai_dtb>;
247 keyfile = "custMpk.pem";
248 };
249
250 beagley_ai_dtb: blob-ext {
251 filename = "u-boot.dtb";
252 };
253
254 hash {
255 algo = "crc32";
256 };
257 };
258 };
259
260 configurations {
261 default = "conf-0";
262
263 conf-0 {
264 description = "k3-k3-am67a-beagley-ai";
265 firmware = "uboot";
266 loadables = "uboot";
267 fdt = "fdt-0";
268 };
269
270 };
271 };
272 };
273};
274#endif /* CONFIG_TARGET_J722S_A53_BEAGLEY_AI */