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 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 57 | #ifdef CONFIG_TARGET_AM625_A53_BEAGLEPLAY |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 58 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 59 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 60 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 61 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 62 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
| 63 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 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 | }; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 71 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 72 | ti-spl_unsigned { |
| 73 | filename = "tispl.bin_unsigned"; |
| 74 | pad-byte = <0xff>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 75 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 76 | fit { |
| 77 | description = "Configuration to load ATF and SPL"; |
| 78 | #address-cells = <1>; |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 79 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 80 | images { |
Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 81 | |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 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"; |
Andrew Davis | 27df860 | 2024-02-14 10:30:05 -0600 | [diff] [blame] | 101 | load = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
| 102 | entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; |
Nishanth Menon | a23cc14 | 2023-11-04 03:01:33 -0500 | [diff] [blame] | 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 | }; |
| 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 Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 208 | #endif |