blob: fb2032068d1c6cd761e82a3a3a51c4963df16acf [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
Robert Nelson0c24aad2023-08-25 13:03:03 -050044&sd_pins_default {
Robert Nelson0c24aad2023-08-25 13:03:03 -050045 /* Force to use SDCD card detect pin */
46 pinctrl-single,pins = <
47 AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
48 AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
49 AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
50 AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
51 AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
52 AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
53 AM62X_IOPAD(0x0240, PIN_INPUT, 0) /* (D17) MMC1_SDCD.MMC1_SDCD */
54 >;
55};
56
Nishanth Menona23cc142023-11-04 03:01:33 -050057#ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY
Robert Nelson0c24aad2023-08-25 13:03:03 -050058
Nishanth Menona23cc142023-11-04 03:01:33 -050059#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
Robert Nelson0c24aad2023-08-25 13:03:03 -050060#define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb"
Nishanth Menona23cc142023-11-04 03:01:33 -050061#define UBOOT_NODTB "u-boot-nodtb.bin"
Robert Nelson0c24aad2023-08-25 13:03:03 -050062#define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb"
63
Nishanth Menona23cc142023-11-04 03:01:33 -050064&binman {
65 ti-dm {
66 filename = "ti-dm.bin";
67 blob-ext {
68 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
69 };
70 };
Robert Nelson0c24aad2023-08-25 13:03:03 -050071
Nishanth Menona23cc142023-11-04 03:01:33 -050072 ti-spl_unsigned {
73 filename = "tispl.bin_unsigned";
74 pad-byte = <0xff>;
Robert Nelson0c24aad2023-08-25 13:03:03 -050075
Nishanth Menona23cc142023-11-04 03:01:33 -050076 fit {
77 description = "Configuration to load ATF and SPL";
78 #address-cells = <1>;
Robert Nelson0c24aad2023-08-25 13:03:03 -050079
Nishanth Menona23cc142023-11-04 03:01:33 -050080 images {
Robert Nelson0c24aad2023-08-25 13:03:03 -050081
Nishanth Menona23cc142023-11-04 03:01:33 -050082 atf {
83 description = "ARM Trusted Firmware";
84 type = "firmware";
85 arch = "arm64";
86 compression = "none";
87 os = "arm-trusted-firmware";
88 load = <CONFIG_K3_ATF_LOAD_ADDR>;
89 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
90 atf-bl31 {
91 filename = "bl31.bin";
92 };
93 };
94
95 tee {
96 description = "OP-TEE";
97 type = "tee";
98 arch = "arm64";
99 compression = "none";
100 os = "tee";
Andrew Davis27df8602024-02-14 10:30:05 -0600101 load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
102 entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
Nishanth Menona23cc142023-11-04 03:01:33 -0500103 tee-os {
104 filename = "tee-raw.bin";
105 };
106 };
107
108 dm {
109 description = "DM binary";
110 type = "firmware";
111 arch = "arm32";
112 compression = "none";
113 os = "DM";
114 load = <0x89000000>;
115 entry = <0x89000000>;
116 blob-ext {
117 filename = "ti-dm.bin";
118 };
119 };
120
121 spl {
122 description = "SPL (64-bit)";
123 type = "standalone";
124 os = "U-Boot";
125 arch = "arm64";
126 compression = "none";
127 load = <CONFIG_SPL_TEXT_BASE>;
128 entry = <CONFIG_SPL_TEXT_BASE>;
129 blob {
130 filename = "spl/u-boot-spl-nodtb.bin";
131 };
132 };
133
134 fdt-0 {
135 description = "k3-am625-beagleplay";
136 type = "flat_dt";
137 arch = "arm";
138 compression = "none";
139 spl_am625_bp_dtb_unsigned: blob {
140 filename = SPL_AM625_BEAGLEPLAY_DTB;
141 };
142 };
143 };
144
145 configurations {
146 default = "conf-0";
147
148 conf-0 {
149 description = "k3-am625-beagleplay";
150 firmware = "atf";
151 loadables = "tee", "dm", "spl";
152 fdt = "fdt-0";
153 };
154 };
155 };
156 };
157
158 u-boot_unsigned {
159 filename = "u-boot.img_unsigned";
160 pad-byte = <0xff>;
161
162 fit {
163 description = "FIT image with multiple configurations";
164
165 images {
166 uboot {
167 description = "U-Boot for AM625 board";
168 type = "firmware";
169 os = "u-boot";
170 arch = "arm";
171 compression = "none";
172 load = <CONFIG_TEXT_BASE>;
173 blob {
174 filename = UBOOT_NODTB;
175 };
176 hash {
177 algo = "crc32";
178 };
179 };
180
181 fdt-0 {
182 description = "k3-am625-beagleplay";
183 type = "flat_dt";
184 arch = "arm";
185 compression = "none";
186 am625_bp_dtb_unsigned: blob {
187 filename = AM625_BEAGLEPLAY_DTB;
188 };
189 hash {
190 algo = "crc32";
191 };
192 };
193 };
194
195 configurations {
196 default = "conf-0";
197
198 conf-0 {
199 description = "k3-am625-beagleplay";
200 firmware = "uboot";
201 loadables = "uboot";
202 fdt = "fdt-0";
203 };
204 };
205 };
206 };
207};
Robert Nelson0c24aad2023-08-25 13:03:03 -0500208#endif