blob: cca0f44b7d8dfe76cb8111eee0a6efae2f2db1e7 [file] [log] [blame]
Robert Nelson0c24aad2023-08-25 13:03:03 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * https://beagleboard.org/play
4 *
5 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
6 * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation
7 */
8
Nishanth Menona23cc142023-11-04 03:01:33 -05009#include "k3-binman.dtsi"
Robert Nelson0c24aad2023-08-25 13:03:03 -050010
11/ {
12 chosen {
13 tick-timer = &main_timer0;
14 };
15
Robert Nelson0c24aad2023-08-25 13:03:03 -050016 /* Keep the LEDs on by default to indicate life */
17 leds {
Robert Nelson0c24aad2023-08-25 13:03:03 -050018 led-0 {
19 default-state = "on";
Robert Nelson0c24aad2023-08-25 13:03:03 -050020 };
21
22 led-1 {
23 default-state = "on";
Robert Nelson0c24aad2023-08-25 13:03:03 -050024 };
25
26 led-2 {
27 default-state = "on";
Robert Nelson0c24aad2023-08-25 13:03:03 -050028 };
29
30 led-3 {
31 default-state = "on";
Robert Nelson0c24aad2023-08-25 13:03:03 -050032 };
33
34 led-4 {
35 default-state = "on";
Robert Nelson0c24aad2023-08-25 13:03:03 -050036 };
37 };
38};
39
Robert Nelson0c24aad2023-08-25 13:03:03 -050040&main_timer0 {
41 clock-frequency = <25000000>;
Robert Nelson0c24aad2023-08-25 13:03:03 -050042};
43
44&dmsc {
Robert Nelson0c24aad2023-08-25 13:03:03 -050045 k3_sysreset: sysreset-controller {
46 compatible = "ti,sci-sysreset";
Nishanth Menonc45d4d02023-10-02 10:00:53 -050047 bootph-all;
Robert Nelson0c24aad2023-08-25 13:03:03 -050048 };
49};
50
Robert Nelson0c24aad2023-08-25 13:03:03 -050051&sd_pins_default {
Robert Nelson0c24aad2023-08-25 13:03:03 -050052 /* Force to use SDCD card detect pin */
53 pinctrl-single,pins = <
54 AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
55 AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
56 AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
57 AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
58 AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
59 AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
60 AM62X_IOPAD(0x0240, PIN_INPUT, 0) /* (D17) MMC1_SDCD.MMC1_SDCD */
61 >;
62};
63
Nishanth Menona23cc142023-11-04 03:01:33 -050064#ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY
Robert Nelson0c24aad2023-08-25 13:03:03 -050065
Nishanth Menona23cc142023-11-04 03:01:33 -050066#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
Robert Nelson0c24aad2023-08-25 13:03:03 -050067#define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb"
Nishanth Menona23cc142023-11-04 03:01:33 -050068#define UBOOT_NODTB "u-boot-nodtb.bin"
Robert Nelson0c24aad2023-08-25 13:03:03 -050069#define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb"
70
Nishanth Menona23cc142023-11-04 03:01:33 -050071&binman {
72 ti-dm {
73 filename = "ti-dm.bin";
74 blob-ext {
75 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
76 };
77 };
Robert Nelson0c24aad2023-08-25 13:03:03 -050078
Nishanth Menona23cc142023-11-04 03:01:33 -050079 ti-spl_unsigned {
80 filename = "tispl.bin_unsigned";
81 pad-byte = <0xff>;
Robert Nelson0c24aad2023-08-25 13:03:03 -050082
Nishanth Menona23cc142023-11-04 03:01:33 -050083 fit {
84 description = "Configuration to load ATF and SPL";
85 #address-cells = <1>;
Robert Nelson0c24aad2023-08-25 13:03:03 -050086
Nishanth Menona23cc142023-11-04 03:01:33 -050087 images {
Robert Nelson0c24aad2023-08-25 13:03:03 -050088
Nishanth Menona23cc142023-11-04 03:01:33 -050089 atf {
90 description = "ARM Trusted Firmware";
91 type = "firmware";
92 arch = "arm64";
93 compression = "none";
94 os = "arm-trusted-firmware";
95 load = <CONFIG_K3_ATF_LOAD_ADDR>;
96 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
97 atf-bl31 {
98 filename = "bl31.bin";
99 };
100 };
101
102 tee {
103 description = "OP-TEE";
104 type = "tee";
105 arch = "arm64";
106 compression = "none";
107 os = "tee";
Andrew Davis27df8602024-02-14 10:30:05 -0600108 load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
109 entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
Nishanth Menona23cc142023-11-04 03:01:33 -0500110 tee-os {
111 filename = "tee-raw.bin";
112 };
113 };
114
115 dm {
116 description = "DM binary";
117 type = "firmware";
118 arch = "arm32";
119 compression = "none";
120 os = "DM";
121 load = <0x89000000>;
122 entry = <0x89000000>;
123 blob-ext {
124 filename = "ti-dm.bin";
125 };
126 };
127
128 spl {
129 description = "SPL (64-bit)";
130 type = "standalone";
131 os = "U-Boot";
132 arch = "arm64";
133 compression = "none";
134 load = <CONFIG_SPL_TEXT_BASE>;
135 entry = <CONFIG_SPL_TEXT_BASE>;
136 blob {
137 filename = "spl/u-boot-spl-nodtb.bin";
138 };
139 };
140
141 fdt-0 {
142 description = "k3-am625-beagleplay";
143 type = "flat_dt";
144 arch = "arm";
145 compression = "none";
146 spl_am625_bp_dtb_unsigned: blob {
147 filename = SPL_AM625_BEAGLEPLAY_DTB;
148 };
149 };
150 };
151
152 configurations {
153 default = "conf-0";
154
155 conf-0 {
156 description = "k3-am625-beagleplay";
157 firmware = "atf";
158 loadables = "tee", "dm", "spl";
159 fdt = "fdt-0";
160 };
161 };
162 };
163 };
164
165 u-boot_unsigned {
166 filename = "u-boot.img_unsigned";
167 pad-byte = <0xff>;
168
169 fit {
170 description = "FIT image with multiple configurations";
171
172 images {
173 uboot {
174 description = "U-Boot for AM625 board";
175 type = "firmware";
176 os = "u-boot";
177 arch = "arm";
178 compression = "none";
179 load = <CONFIG_TEXT_BASE>;
180 blob {
181 filename = UBOOT_NODTB;
182 };
183 hash {
184 algo = "crc32";
185 };
186 };
187
188 fdt-0 {
189 description = "k3-am625-beagleplay";
190 type = "flat_dt";
191 arch = "arm";
192 compression = "none";
193 am625_bp_dtb_unsigned: blob {
194 filename = AM625_BEAGLEPLAY_DTB;
195 };
196 hash {
197 algo = "crc32";
198 };
199 };
200 };
201
202 configurations {
203 default = "conf-0";
204
205 conf-0 {
206 description = "k3-am625-beagleplay";
207 firmware = "uboot";
208 loadables = "uboot";
209 fdt = "fdt-0";
210 };
211 };
212 };
213 };
214};
Robert Nelson0c24aad2023-08-25 13:03:03 -0500215#endif