blob: f1666f1ef760128f4520273d3596a06303fb75a8 [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 {
Robert Nelson8b415f752025-03-03 13:15:15 -0600167 ti-spl {
168 insert-template = <&ti_spl_template>;
169
170 fit {
171 images {
172 dm {
173 ti-secure {
174 content = <&dm>;
175 keyfile = "custMpk.pem";
176 };
177
178 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500179 filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
180 optional;
Robert Nelson8b415f752025-03-03 13:15:15 -0600181 };
182 };
183
184 fdt-0 {
185 description = "k3-am67a-beagley-ai";
186 type = "flat_dt";
187 arch = "arm";
188 compression = "none";
189
190 ti-secure {
191 content = <&spl_beagley_ai_dtb>;
192 keyfile = "custMpk.pem";
193 };
194
195 spl_beagley_ai_dtb: blob-ext {
196 filename = "spl/dts/ti/k3-am67a-beagley-ai.dtb";
197 };
198
199 };
200
201 };
202
203 configurations {
204 default = "conf-0";
205
206 conf-0 {
207 description = "k3-am67a-beagley-ai";
208 firmware = "atf";
209 loadables = "tee", "dm", "spl";
210 fdt = "fdt-0";
211 };
212 };
213 };
214 };
215};
216
217&binman {
218 u-boot {
219 insert-template = <&u_boot_template>;
220
221 fit {
222 images {
223 uboot {
224 description = "U-Boot for BeagleY-AI";
225 };
226
227 fdt-0 {
228 description = "k3-am67a-beagley-ai";
229 type = "flat_dt";
230 arch = "arm";
231 compression = "none";
232
233 ti-secure {
234 content = <&beagley_ai_dtb>;
235 keyfile = "custMpk.pem";
236 };
237
238 beagley_ai_dtb: blob-ext {
239 filename = "u-boot.dtb";
240 };
241
242 hash {
243 algo = "crc32";
244 };
245 };
246 };
247
248 configurations {
249 default = "conf-0";
250
251 conf-0 {
252 description = "k3-k3-am67a-beagley-ai";
253 firmware = "uboot";
254 loadables = "uboot";
255 fdt = "fdt-0";
256 };
257
258 };
259 };
260 };
261};
262#endif /* CONFIG_TARGET_J722S_A53_BEAGLEY_AI */