Robert Nelson | 8b415f75 | 2025-03-03 13:15:15 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Common AM67A BeagleY-AI dts file for SPLs |
| 4 | * |
| 5 | * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * Copyright (C) 2024 Robert Nelson, BeagleBoard.org Foundation |
| 7 | */ |
| 8 | |
| 9 | #include "k3-binman.dtsi" |
| 10 | |
| 11 | / { |
| 12 | chosen { |
| 13 | stdout-path = "serial2:115200n8"; |
| 14 | tick-timer = &main_timer0; |
| 15 | }; |
| 16 | }; |
| 17 | |
| 18 | &main_pktdma { |
| 19 | reg = <0x00 0x485c0000 0x00 0x100>, |
| 20 | <0x00 0x4a800000 0x00 0x20000>, |
| 21 | <0x00 0x4aa00000 0x00 0x40000>, |
| 22 | <0x00 0x4b800000 0x00 0x400000>, |
| 23 | <0x00 0x485e0000 0x00 0x20000>, |
| 24 | <0x00 0x484a0000 0x00 0x4000>, |
| 25 | <0x00 0x484c0000 0x00 0x2000>, |
| 26 | <0x00 0x48430000 0x00 0x4000>; |
| 27 | reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", |
| 28 | "cfg", "tchan", "rchan", "rflow"; |
| 29 | }; |
| 30 | |
| 31 | &dmsc { |
| 32 | bootph-pre-ram; |
| 33 | k3_sysreset: sysreset-controller { |
| 34 | compatible = "ti,sci-sysreset"; |
| 35 | bootph-pre-ram; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &usbss0 { |
| 40 | bootph-pre-ram; |
| 41 | }; |
| 42 | |
| 43 | &usb0 { |
| 44 | dr_mode = "peripheral"; |
| 45 | bootph-pre-ram; |
| 46 | }; |
| 47 | |
| 48 | &usbss1 { |
| 49 | status = "disabled"; |
| 50 | }; |
| 51 | |
| 52 | &usb1 { |
| 53 | status = "disabled"; |
| 54 | }; |
| 55 | |
Nishanth Menon | 3e6c01a | 2025-04-25 12:31:12 -0500 | [diff] [blame] | 56 | &main_gpio1 { |
| 57 | bootph-all; |
| 58 | }; |
| 59 | |
Robert Nelson | 8b415f75 | 2025-03-03 13:15:15 -0600 | [diff] [blame] | 60 | #if IS_ENABLED(CONFIG_TARGET_J722S_R5_BEAGLEY_AI) |
| 61 | |
| 62 | &binman { |
| 63 | tiboot3-j722s-hs-evm.bin { |
| 64 | filename = "tiboot3-j722s-hs-evm.bin"; |
| 65 | ti-secure-rom { |
| 66 | content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, |
| 67 | <&combined_dm_cfg>, <&sysfw_inner_cert>; |
| 68 | combined; |
| 69 | dm-data; |
| 70 | sysfw-inner-cert; |
| 71 | keyfile = "custMpk.pem"; |
| 72 | sw-rev = <1>; |
| 73 | content-sbl = <&u_boot_spl>; |
| 74 | content-sysfw = <&ti_fs_enc>; |
| 75 | content-sysfw-data = <&combined_tifs_cfg>; |
| 76 | content-sysfw-inner-cert = <&sysfw_inner_cert>; |
| 77 | content-dm-data = <&combined_dm_cfg>; |
| 78 | load = <0x43c00000>; |
| 79 | load-sysfw = <0x40000>; |
| 80 | load-sysfw-data = <0x67000>; |
| 81 | load-dm-data = <0x43c7a800>; |
| 82 | }; |
| 83 | |
| 84 | u_boot_spl: u-boot-spl { |
| 85 | no-expanded; |
| 86 | }; |
| 87 | |
| 88 | ti_fs_enc: ti-fs-enc.bin { |
| 89 | filename = "ti-sysfw/ti-fs-firmware-j722s-hs-enc.bin"; |
| 90 | type = "blob-ext"; |
| 91 | optional; |
| 92 | }; |
| 93 | |
| 94 | combined_tifs_cfg: combined-tifs-cfg.bin { |
| 95 | filename = "combined-tifs-cfg.bin"; |
| 96 | type = "blob-ext"; |
| 97 | }; |
| 98 | |
| 99 | sysfw_inner_cert: sysfw-inner-cert { |
| 100 | filename = "ti-sysfw/ti-fs-firmware-j722s-hs-cert.bin"; |
| 101 | type = "blob-ext"; |
| 102 | optional; |
| 103 | }; |
| 104 | |
| 105 | combined_dm_cfg: combined-dm-cfg.bin { |
| 106 | filename = "combined-dm-cfg.bin"; |
| 107 | type = "blob-ext"; |
| 108 | }; |
| 109 | }; |
| 110 | }; |
| 111 | |
| 112 | &binman { |
| 113 | tiboot3-j722s-hs-fs-evm.bin { |
| 114 | filename = "tiboot3-j722s-hs-fs-evm.bin"; |
| 115 | symlink = "tiboot3.bin"; |
| 116 | |
| 117 | ti-secure-rom { |
| 118 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 119 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 120 | combined; |
| 121 | dm-data; |
| 122 | sysfw-inner-cert; |
| 123 | keyfile = "custMpk.pem"; |
| 124 | sw-rev = <1>; |
| 125 | content-sbl = <&u_boot_spl_fs>; |
| 126 | content-sysfw = <&ti_fs_enc_fs>; |
| 127 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 128 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 129 | content-dm-data = <&combined_dm_cfg_fs>; |
| 130 | load = <0x43c00000>; |
| 131 | load-sysfw = <0x40000>; |
| 132 | load-sysfw-data = <0x67000>; |
| 133 | load-dm-data = <0x43c7a800>; |
| 134 | }; |
| 135 | |
| 136 | u_boot_spl_fs: u-boot-spl { |
| 137 | no-expanded; |
| 138 | }; |
| 139 | |
| 140 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 141 | filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-enc.bin"; |
| 142 | type = "blob-ext"; |
| 143 | optional; |
| 144 | }; |
| 145 | |
| 146 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 147 | filename = "combined-tifs-cfg.bin"; |
| 148 | type = "blob-ext"; |
| 149 | }; |
| 150 | |
| 151 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 152 | filename = "ti-sysfw/ti-fs-firmware-j722s-hs-fs-cert.bin"; |
| 153 | type = "blob-ext"; |
| 154 | optional; |
| 155 | }; |
| 156 | |
| 157 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 158 | filename = "combined-dm-cfg.bin"; |
| 159 | type = "blob-ext"; |
| 160 | }; |
| 161 | }; |
| 162 | }; |
| 163 | #endif /* CONFIG_TARGET_J722S_R5_BEAGLEY_AI */ |
| 164 | |
| 165 | #if IS_ENABLED(CONFIG_TARGET_J722S_A53_BEAGLEY_AI) |
| 166 | |
| 167 | #define SPL_BEAGLEY_AI_DTB "spl/dts/ti/k3-am67a-beagley-ai.dtb" |
| 168 | #define BEAGLEY_AI_DTB "u-boot.dtb" |
| 169 | |
| 170 | &binman { |
Robert Nelson | 8b415f75 | 2025-03-03 13:15:15 -0600 | [diff] [blame] | 171 | ti-spl { |
| 172 | insert-template = <&ti_spl_template>; |
| 173 | |
| 174 | fit { |
| 175 | images { |
| 176 | dm { |
| 177 | ti-secure { |
| 178 | content = <&dm>; |
| 179 | keyfile = "custMpk.pem"; |
| 180 | }; |
| 181 | |
| 182 | dm: ti-dm { |
Andrew Davis | 7ed4a85 | 2025-04-25 17:54:03 -0500 | [diff] [blame] | 183 | filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 184 | optional; |
Robert Nelson | 8b415f75 | 2025-03-03 13:15:15 -0600 | [diff] [blame] | 185 | }; |
| 186 | }; |
| 187 | |
| 188 | fdt-0 { |
| 189 | description = "k3-am67a-beagley-ai"; |
| 190 | type = "flat_dt"; |
| 191 | arch = "arm"; |
| 192 | compression = "none"; |
| 193 | |
| 194 | ti-secure { |
| 195 | content = <&spl_beagley_ai_dtb>; |
| 196 | keyfile = "custMpk.pem"; |
| 197 | }; |
| 198 | |
| 199 | spl_beagley_ai_dtb: blob-ext { |
| 200 | filename = "spl/dts/ti/k3-am67a-beagley-ai.dtb"; |
| 201 | }; |
| 202 | |
| 203 | }; |
| 204 | |
| 205 | }; |
| 206 | |
| 207 | configurations { |
| 208 | default = "conf-0"; |
| 209 | |
| 210 | conf-0 { |
| 211 | description = "k3-am67a-beagley-ai"; |
| 212 | firmware = "atf"; |
| 213 | loadables = "tee", "dm", "spl"; |
| 214 | fdt = "fdt-0"; |
| 215 | }; |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| 219 | }; |
| 220 | |
| 221 | &binman { |
| 222 | u-boot { |
| 223 | insert-template = <&u_boot_template>; |
| 224 | |
| 225 | fit { |
| 226 | images { |
| 227 | uboot { |
| 228 | description = "U-Boot for BeagleY-AI"; |
| 229 | }; |
| 230 | |
| 231 | fdt-0 { |
| 232 | description = "k3-am67a-beagley-ai"; |
| 233 | type = "flat_dt"; |
| 234 | arch = "arm"; |
| 235 | compression = "none"; |
| 236 | |
| 237 | ti-secure { |
| 238 | content = <&beagley_ai_dtb>; |
| 239 | keyfile = "custMpk.pem"; |
| 240 | }; |
| 241 | |
| 242 | beagley_ai_dtb: blob-ext { |
| 243 | filename = "u-boot.dtb"; |
| 244 | }; |
| 245 | |
| 246 | hash { |
| 247 | algo = "crc32"; |
| 248 | }; |
| 249 | }; |
| 250 | }; |
| 251 | |
| 252 | configurations { |
| 253 | default = "conf-0"; |
| 254 | |
| 255 | conf-0 { |
| 256 | description = "k3-k3-am67a-beagley-ai"; |
| 257 | firmware = "uboot"; |
| 258 | loadables = "uboot"; |
| 259 | fdt = "fdt-0"; |
| 260 | }; |
| 261 | |
| 262 | }; |
| 263 | }; |
| 264 | }; |
| 265 | }; |
| 266 | #endif /* CONFIG_TARGET_J722S_A53_BEAGLEY_AI */ |