]>
Commit | Line | Data |
---|---|---|
45b0b5e5 RN |
1 | // 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 | ||
b25c2d71 | 9 | #include "k3-binman.dtsi" |
45b0b5e5 RN |
10 | |
11 | / { | |
12 | chosen { | |
13 | tick-timer = &main_timer0; | |
14 | }; | |
15 | ||
45b0b5e5 RN |
16 | /* Keep the LEDs on by default to indicate life */ |
17 | leds { | |
45b0b5e5 RN |
18 | led-0 { |
19 | default-state = "on"; | |
45b0b5e5 RN |
20 | }; |
21 | ||
22 | led-1 { | |
23 | default-state = "on"; | |
45b0b5e5 RN |
24 | }; |
25 | ||
26 | led-2 { | |
27 | default-state = "on"; | |
45b0b5e5 RN |
28 | }; |
29 | ||
30 | led-3 { | |
31 | default-state = "on"; | |
45b0b5e5 RN |
32 | }; |
33 | ||
34 | led-4 { | |
35 | default-state = "on"; | |
45b0b5e5 RN |
36 | }; |
37 | }; | |
38 | }; | |
39 | ||
45b0b5e5 RN |
40 | &main_timer0 { |
41 | clock-frequency = <25000000>; | |
45b0b5e5 RN |
42 | }; |
43 | ||
45b0b5e5 | 44 | &sd_pins_default { |
45b0b5e5 RN |
45 | /* 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 | ||
b25c2d71 | 57 | #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY |
45b0b5e5 | 58 | |
b25c2d71 | 59 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
45b0b5e5 | 60 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
b25c2d71 | 61 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
45b0b5e5 RN |
62 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
63 | ||
b25c2d71 NM |
64 | &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 | }; | |
45b0b5e5 | 71 | |
b25c2d71 NM |
72 | ti-spl_unsigned { |
73 | filename = "tispl.bin_unsigned"; | |
74 | pad-byte = <0xff>; | |
75 | ||
76 | fit { | |
77 | description = "Configuration to load ATF and SPL"; | |
78 | #address-cells = <1>; | |
79 | ||
80 | images { | |
81 | ||
82 | 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"; | |
55668394 AD |
101 | load = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
102 | entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; | |
b25c2d71 NM |
103 | 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 | }; | |
45b0b5e5 | 157 | |
b25c2d71 NM |
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 | }; | |
45b0b5e5 | 207 | }; |
45b0b5e5 | 208 | #endif |