Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 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 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 9 | #include "k3-binman.dtsi" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | chosen { |
| 13 | tick-timer = &main_timer0; |
| 14 | }; |
| 15 | |
| 16 | memory@80000000 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 17 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | /* Keep the LEDs on by default to indicate life */ |
| 21 | leds { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 22 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 23 | led-0 { |
| 24 | default-state = "on"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 25 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | led-1 { |
| 29 | default-state = "on"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 30 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | led-2 { |
| 34 | default-state = "on"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 35 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | led-3 { |
| 39 | default-state = "on"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 40 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | led-4 { |
| 44 | default-state = "on"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 45 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 46 | }; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | &cbass_main { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 51 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | &main_timer0 { |
| 55 | clock-frequency = <25000000>; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 56 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 57 | }; |
| 58 | |
| 59 | &dmss { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 60 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 61 | }; |
| 62 | |
| 63 | &secure_proxy_main { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 64 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | &dmsc { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 68 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | &k3_pds { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 72 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 73 | }; |
| 74 | |
| 75 | &k3_clks { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 76 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | &k3_reset { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 80 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 81 | }; |
| 82 | |
| 83 | &dmsc { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 84 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 85 | k3_sysreset: sysreset-controller { |
| 86 | compatible = "ti,sci-sysreset"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 87 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 88 | }; |
| 89 | }; |
| 90 | |
| 91 | &wkup_conf { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 92 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 93 | }; |
| 94 | |
| 95 | &chipid { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 96 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | &main_pmx0 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 100 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | &main_uart0 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 104 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 105 | }; |
| 106 | |
| 107 | &console_pins_default { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 108 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | &cbass_mcu { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 112 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | &cbass_wakeup { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 116 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 117 | }; |
| 118 | |
| 119 | &mcu_pmx0 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 120 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | &main_i2c0 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 124 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | &local_i2c_pins_default { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 128 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | &gpio0_pins_default { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 132 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | &main_gpio0 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 136 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 137 | }; |
| 138 | |
| 139 | &main_gpio1 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 140 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | &sdhci0 { |
| 144 | /* EMMC */ |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 145 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 146 | }; |
| 147 | |
| 148 | &emmc_pins_default { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 149 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 150 | }; |
| 151 | |
| 152 | &sd_pins_default { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 153 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 154 | /* Force to use SDCD card detect pin */ |
| 155 | pinctrl-single,pins = < |
| 156 | AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */ |
| 157 | AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */ |
| 158 | AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */ |
| 159 | AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */ |
| 160 | AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */ |
| 161 | AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */ |
| 162 | AM62X_IOPAD(0x0240, PIN_INPUT, 0) /* (D17) MMC1_SDCD.MMC1_SDCD */ |
| 163 | >; |
| 164 | }; |
| 165 | |
| 166 | &tps65219 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 167 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 168 | }; |
| 169 | |
| 170 | &sdhci1 { |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 171 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 172 | }; |
| 173 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 174 | #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 175 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 176 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 177 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 178 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 179 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
| 180 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 181 | &binman { |
| 182 | ti-dm { |
| 183 | filename = "ti-dm.bin"; |
| 184 | blob-ext { |
| 185 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 186 | }; |
| 187 | }; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 188 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 189 | ti-spl_unsigned { |
| 190 | filename = "tispl.bin_unsigned"; |
| 191 | pad-byte = <0xff>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 192 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 193 | fit { |
| 194 | description = "Configuration to load ATF and SPL"; |
| 195 | #address-cells = <1>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 196 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 197 | images { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 198 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame^] | 199 | atf { |
| 200 | description = "ARM Trusted Firmware"; |
| 201 | type = "firmware"; |
| 202 | arch = "arm64"; |
| 203 | compression = "none"; |
| 204 | os = "arm-trusted-firmware"; |
| 205 | load = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 206 | entry = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 207 | atf-bl31 { |
| 208 | filename = "bl31.bin"; |
| 209 | }; |
| 210 | }; |
| 211 | |
| 212 | tee { |
| 213 | description = "OP-TEE"; |
| 214 | type = "tee"; |
| 215 | arch = "arm64"; |
| 216 | compression = "none"; |
| 217 | os = "tee"; |
| 218 | load = <0x9e800000>; |
| 219 | entry = <0x9e800000>; |
| 220 | tee-os { |
| 221 | filename = "tee-raw.bin"; |
| 222 | }; |
| 223 | }; |
| 224 | |
| 225 | dm { |
| 226 | description = "DM binary"; |
| 227 | type = "firmware"; |
| 228 | arch = "arm32"; |
| 229 | compression = "none"; |
| 230 | os = "DM"; |
| 231 | load = <0x89000000>; |
| 232 | entry = <0x89000000>; |
| 233 | blob-ext { |
| 234 | filename = "ti-dm.bin"; |
| 235 | }; |
| 236 | }; |
| 237 | |
| 238 | spl { |
| 239 | description = "SPL (64-bit)"; |
| 240 | type = "standalone"; |
| 241 | os = "U-Boot"; |
| 242 | arch = "arm64"; |
| 243 | compression = "none"; |
| 244 | load = <CONFIG_SPL_TEXT_BASE>; |
| 245 | entry = <CONFIG_SPL_TEXT_BASE>; |
| 246 | blob { |
| 247 | filename = "spl/u-boot-spl-nodtb.bin"; |
| 248 | }; |
| 249 | }; |
| 250 | |
| 251 | fdt-0 { |
| 252 | description = "k3-am625-beagleplay"; |
| 253 | type = "flat_dt"; |
| 254 | arch = "arm"; |
| 255 | compression = "none"; |
| 256 | spl_am625_bp_dtb_unsigned: blob { |
| 257 | filename = SPL_AM625_BEAGLEPLAY_DTB; |
| 258 | }; |
| 259 | }; |
| 260 | }; |
| 261 | |
| 262 | configurations { |
| 263 | default = "conf-0"; |
| 264 | |
| 265 | conf-0 { |
| 266 | description = "k3-am625-beagleplay"; |
| 267 | firmware = "atf"; |
| 268 | loadables = "tee", "dm", "spl"; |
| 269 | fdt = "fdt-0"; |
| 270 | }; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | u-boot_unsigned { |
| 276 | filename = "u-boot.img_unsigned"; |
| 277 | pad-byte = <0xff>; |
| 278 | |
| 279 | fit { |
| 280 | description = "FIT image with multiple configurations"; |
| 281 | |
| 282 | images { |
| 283 | uboot { |
| 284 | description = "U-Boot for AM625 board"; |
| 285 | type = "firmware"; |
| 286 | os = "u-boot"; |
| 287 | arch = "arm"; |
| 288 | compression = "none"; |
| 289 | load = <CONFIG_TEXT_BASE>; |
| 290 | blob { |
| 291 | filename = UBOOT_NODTB; |
| 292 | }; |
| 293 | hash { |
| 294 | algo = "crc32"; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | fdt-0 { |
| 299 | description = "k3-am625-beagleplay"; |
| 300 | type = "flat_dt"; |
| 301 | arch = "arm"; |
| 302 | compression = "none"; |
| 303 | am625_bp_dtb_unsigned: blob { |
| 304 | filename = AM625_BEAGLEPLAY_DTB; |
| 305 | }; |
| 306 | hash { |
| 307 | algo = "crc32"; |
| 308 | }; |
| 309 | }; |
| 310 | }; |
| 311 | |
| 312 | configurations { |
| 313 | default = "conf-0"; |
| 314 | |
| 315 | conf-0 { |
| 316 | description = "k3-am625-beagleplay"; |
| 317 | firmware = "uboot"; |
| 318 | loadables = "uboot"; |
| 319 | fdt = "fdt-0"; |
| 320 | }; |
| 321 | }; |
| 322 | }; |
| 323 | }; |
| 324 | }; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 325 | #endif |