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 | |
| 44 | &dmsc { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 45 | k3_sysreset: sysreset-controller { |
| 46 | compatible = "ti,sci-sysreset"; |
Nishanth Menon | c45d4d0 | 2023-10-02 10:00:53 -0500 | [diff] [blame] | 47 | bootph-all; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 48 | }; |
| 49 | }; |
| 50 | |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 51 | &sd_pins_default { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 52 | /* 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 Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 64 | #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 65 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 66 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 67 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 68 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 69 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
| 70 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 71 | &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 Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 78 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 79 | ti-spl_unsigned { |
| 80 | filename = "tispl.bin_unsigned"; |
| 81 | pad-byte = <0xff>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 82 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 83 | fit { |
| 84 | description = "Configuration to load ATF and SPL"; |
| 85 | #address-cells = <1>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 86 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 87 | images { |
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 | 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 Davis | 27df860 | 2024-02-14 10:30:05 -0600 | [diff] [blame^] | 108 | load = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
| 109 | entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 110 | 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 Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 215 | #endif |