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 | |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 16 | /* Keep the LEDs on by default to indicate life */ |
| 17 | leds { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 18 | led-0 { |
| 19 | default-state = "on"; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | led-1 { |
| 23 | default-state = "on"; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | led-2 { |
| 27 | default-state = "on"; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | led-3 { |
| 31 | default-state = "on"; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | led-4 { |
| 35 | default-state = "on"; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 36 | }; |
| 37 | }; |
| 38 | }; |
| 39 | |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 40 | &main_timer0 { |
| 41 | clock-frequency = <25000000>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 42 | }; |
| 43 | |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 44 | &sd_pins_default { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 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 | |
Sjoerd Simons | 87b6033 | 2024-05-06 15:38:45 +0100 | [diff] [blame] | 57 | &usbss0 { |
| 58 | bootph-all; |
| 59 | }; |
| 60 | |
| 61 | &usb0 { |
| 62 | dr_mode = "peripheral"; |
| 63 | bootph-all; |
| 64 | }; |
| 65 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 66 | #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 67 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 68 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 69 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 70 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 71 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
| 72 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 73 | &binman { |
| 74 | ti-dm { |
| 75 | filename = "ti-dm.bin"; |
| 76 | blob-ext { |
| 77 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 78 | }; |
| 79 | }; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 80 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 81 | ti-spl_unsigned { |
| 82 | filename = "tispl.bin_unsigned"; |
| 83 | pad-byte = <0xff>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 84 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 85 | fit { |
| 86 | description = "Configuration to load ATF and SPL"; |
| 87 | #address-cells = <1>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 88 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 89 | images { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 90 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 91 | atf { |
| 92 | description = "ARM Trusted Firmware"; |
| 93 | type = "firmware"; |
| 94 | arch = "arm64"; |
| 95 | compression = "none"; |
| 96 | os = "arm-trusted-firmware"; |
| 97 | load = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 98 | entry = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 99 | atf-bl31 { |
| 100 | filename = "bl31.bin"; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | tee { |
| 105 | description = "OP-TEE"; |
| 106 | type = "tee"; |
| 107 | arch = "arm64"; |
| 108 | compression = "none"; |
| 109 | os = "tee"; |
Andrew Davis | 27df860 | 2024-02-14 10:30:05 -0600 | [diff] [blame] | 110 | load = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
| 111 | entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 112 | tee-os { |
| 113 | filename = "tee-raw.bin"; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | dm { |
| 118 | description = "DM binary"; |
| 119 | type = "firmware"; |
| 120 | arch = "arm32"; |
| 121 | compression = "none"; |
| 122 | os = "DM"; |
| 123 | load = <0x89000000>; |
| 124 | entry = <0x89000000>; |
| 125 | blob-ext { |
| 126 | filename = "ti-dm.bin"; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | spl { |
| 131 | description = "SPL (64-bit)"; |
| 132 | type = "standalone"; |
| 133 | os = "U-Boot"; |
| 134 | arch = "arm64"; |
| 135 | compression = "none"; |
| 136 | load = <CONFIG_SPL_TEXT_BASE>; |
| 137 | entry = <CONFIG_SPL_TEXT_BASE>; |
| 138 | blob { |
| 139 | filename = "spl/u-boot-spl-nodtb.bin"; |
| 140 | }; |
| 141 | }; |
| 142 | |
| 143 | fdt-0 { |
| 144 | description = "k3-am625-beagleplay"; |
| 145 | type = "flat_dt"; |
| 146 | arch = "arm"; |
| 147 | compression = "none"; |
| 148 | spl_am625_bp_dtb_unsigned: blob { |
| 149 | filename = SPL_AM625_BEAGLEPLAY_DTB; |
| 150 | }; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | configurations { |
| 155 | default = "conf-0"; |
| 156 | |
| 157 | conf-0 { |
| 158 | description = "k3-am625-beagleplay"; |
| 159 | firmware = "atf"; |
| 160 | loadables = "tee", "dm", "spl"; |
| 161 | fdt = "fdt-0"; |
| 162 | }; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | u-boot_unsigned { |
| 168 | filename = "u-boot.img_unsigned"; |
| 169 | pad-byte = <0xff>; |
| 170 | |
| 171 | fit { |
| 172 | description = "FIT image with multiple configurations"; |
| 173 | |
| 174 | images { |
| 175 | uboot { |
| 176 | description = "U-Boot for AM625 board"; |
| 177 | type = "firmware"; |
| 178 | os = "u-boot"; |
| 179 | arch = "arm"; |
| 180 | compression = "none"; |
| 181 | load = <CONFIG_TEXT_BASE>; |
| 182 | blob { |
| 183 | filename = UBOOT_NODTB; |
| 184 | }; |
| 185 | hash { |
| 186 | algo = "crc32"; |
| 187 | }; |
| 188 | }; |
| 189 | |
| 190 | fdt-0 { |
| 191 | description = "k3-am625-beagleplay"; |
| 192 | type = "flat_dt"; |
| 193 | arch = "arm"; |
| 194 | compression = "none"; |
| 195 | am625_bp_dtb_unsigned: blob { |
| 196 | filename = AM625_BEAGLEPLAY_DTB; |
| 197 | }; |
| 198 | hash { |
| 199 | algo = "crc32"; |
| 200 | }; |
| 201 | }; |
| 202 | }; |
| 203 | |
| 204 | configurations { |
| 205 | default = "conf-0"; |
| 206 | |
| 207 | conf-0 { |
| 208 | description = "k3-am625-beagleplay"; |
| 209 | firmware = "uboot"; |
| 210 | loadables = "uboot"; |
| 211 | fdt = "fdt-0"; |
| 212 | }; |
| 213 | }; |
| 214 | }; |
| 215 | }; |
| 216 | }; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 217 | #endif |
Roger Quadros | 85d018f | 2024-05-13 15:13:55 +0300 | [diff] [blame] | 218 | |
| 219 | &main_bcdma { |
| 220 | reg = <0x00 0x485c0100 0x00 0x100>, |
| 221 | <0x00 0x4c000000 0x00 0x20000>, |
| 222 | <0x00 0x4a820000 0x00 0x20000>, |
| 223 | <0x00 0x4aa40000 0x00 0x20000>, |
| 224 | <0x00 0x4bc00000 0x00 0x100000>, |
| 225 | <0x00 0x48600000 0x00 0x8000>, |
| 226 | <0x00 0x484a4000 0x00 0x2000>, |
| 227 | <0x00 0x484c2000 0x00 0x2000>; |
| 228 | reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt", |
| 229 | "cfg", "tchan", "rchan"; |
| 230 | }; |
| 231 | |
| 232 | &main_pktdma { |
| 233 | reg = <0x00 0x485c0000 0x00 0x100>, |
| 234 | <0x00 0x4a800000 0x00 0x20000>, |
| 235 | <0x00 0x4aa00000 0x00 0x40000>, |
| 236 | <0x00 0x4b800000 0x00 0x400000>, |
| 237 | <0x00 0x485e0000 0x00 0x20000>, |
| 238 | <0x00 0x484a0000 0x00 0x4000>, |
| 239 | <0x00 0x484c0000 0x00 0x2000>, |
| 240 | <0x00 0x48430000 0x00 0x4000>; |
| 241 | reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", "cfg", |
| 242 | "tchan", "rchan", "rflow"; |
| 243 | bootph-all; |
| 244 | }; |
| 245 | |
| 246 | &mdio0_pins_default { |
| 247 | bootph-all; |
| 248 | }; |
| 249 | |
| 250 | &cpsw3g_mdio { |
| 251 | bootph-all; |
| 252 | }; |
| 253 | |
| 254 | &cpsw3g_phy0 { |
| 255 | bootph-all; |
| 256 | }; |
| 257 | |
| 258 | &rgmii1_pins_default { |
| 259 | bootph-all; |
| 260 | }; |
| 261 | |
| 262 | &cpsw3g { |
| 263 | bootph-all; |
| 264 | |
| 265 | ethernet-ports { |
| 266 | bootph-all; |
| 267 | }; |
| 268 | }; |
| 269 | |
| 270 | &phy_gmii_sel { |
| 271 | bootph-all; |
| 272 | }; |
| 273 | |
| 274 | &cpsw_port1 { |
| 275 | bootph-all; |
| 276 | }; |
| 277 | |
| 278 | &cpsw_port2 { |
| 279 | status = "disabled"; |
| 280 | }; |