diff options
| author | Tom Rini <[email protected]> | 2026-08-28 08:52:48 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-08-28 08:52:48 -0600 |
| commit | 87a5773d45e06cc70d1434a4ffc18635a40c3e3e (patch) | |
| tree | aea9e7c27a7484be86c65fc61ec98acd6d53ebf3 | |
| parent | b8d9223a454374681bf7d0d4384bb101be92110d (diff) | |
| parent | d200bb9b318c2d660163b545300b795b43f450b5 (diff) | |
Merge patch series "Refactor binman nodes for boot binaries for TI AM625 into templates"next
Anshul Dalal <[email protected]> says:
This patch series seeks to help in reuse by moving currently duplicated
entries for tiboot3.bin and tispl.bin into a generic SoC wide DTSI
(k3-am625-binman.dtsi).
This dtsi in-turn gets included by all AM625 based boards which can
insert the templates from k3-am625-binman.dtsi.
The newly added templates are as follows:
tiboot3_am625_hs
tiboot3_am625_hs_fs
tiboot3_am625_gp
ti_falcon_am625
ti_spl_unsigned_am625
ti_spl_am625
The series has been boot tested on beagleplay and AM62x EVM but the
following affected boards have only been build tested:
- phycore_am62x
- verdin-am62
To verify no regressions, I compared the final 'u-boot.dtb.out' for both
the R5 and A53 build using dtx_diff script from linux source.
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 94 | ||||
| -rw-r--r-- | arch/arm/dts/k3-am625-binman.dtsi | 362 | ||||
| -rw-r--r-- | arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 357 | ||||
| -rw-r--r-- | arch/arm/dts/k3-am625-r5-beagleplay.dts | 33 | ||||
| -rw-r--r-- | arch/arm/dts/k3-am625-sk-binman.dtsi | 430 | ||||
| -rw-r--r-- | arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi | 301 |
6 files changed, 418 insertions, 1159 deletions
diff --git a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi index cd13b5c3cd1..2a0b19173c0 100644 --- a/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +++ b/arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi @@ -6,7 +6,7 @@ * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation */ -#include "k3-binman.dtsi" +#include "k3-am625-binman.dtsi" / { /* Keep the LEDs on by default to indicate life */ @@ -63,99 +63,11 @@ #define AM625_BEAGLEPLAY_DTB "dts/upstream/src/arm64/ti/k3-am625-beagleplay.dtb" &binman { - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - ti-spl_unsigned { - filename = "tispl.bin_unsigned"; + insert-template = <&ti_spl_unsigned_am625_template>; symlink = "tispl.bin"; - pad-byte = <0xff>; - fit { - description = "Configuration to load ATF and SPL"; - #address-cells = <1>; - images { - - atf { - description = "ARM Trusted Firmware"; - type = "firmware"; - arch = "arm64"; - compression = "none"; - os = "arm-trusted-firmware"; - load = <CONFIG_K3_ATF_LOAD_ADDR>; - entry = <CONFIG_K3_ATF_LOAD_ADDR>; - atf-bl31 { - filename = "bl31.bin"; - }; - }; - - tee { - description = "OP-TEE"; - type = "tee"; - arch = "arm64"; - compression = "none"; - os = "tee"; - load = <CONFIG_K3_OPTEE_LOAD_ADDR>; - entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; - tee-os { - filename = "tee-raw.bin"; - }; - }; - - tifsstub-gp { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - description = "DM binary"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "DM"; - load = <0x89000000>; - entry = <0x89000000>; - ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - - spl { - description = "SPL (64-bit)"; - type = "standalone"; - os = "U-Boot"; - arch = "arm64"; - compression = "none"; - load = <CONFIG_SPL_TEXT_BASE>; - entry = <CONFIG_SPL_TEXT_BASE>; - blob { - filename = "spl/u-boot-spl-nodtb.bin"; - }; - }; - fdt-0 { description = "k3-am625-beagleplay"; type = "flat_dt"; @@ -166,10 +78,8 @@ }; }; }; - configurations { default = "conf-0"; - conf-0 { description = "k3-am625-beagleplay"; firmware = "atf"; diff --git a/arch/arm/dts/k3-am625-binman.dtsi b/arch/arm/dts/k3-am625-binman.dtsi new file mode 100644 index 00000000000..78ea422b85d --- /dev/null +++ b/arch/arm/dts/k3-am625-binman.dtsi @@ -0,0 +1,362 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2026 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include "k3-binman.dtsi" + +&binman { + tiboot3_am625_hs_template: template-tiboot3-hs { + ti-secure-rom { + content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, + <&combined_dm_cfg>, <&sysfw_inner_cert>; + combined; + dm-data; + sysfw-inner-cert; + keyfile = "custMpk.pem"; + sw-rev = <1>; + content-sbl = <&u_boot_spl>; + content-sysfw = <&ti_fs_enc>; + content-sysfw-data = <&combined_tifs_cfg>; + content-sysfw-inner-cert = <&sysfw_inner_cert>; + content-dm-data = <&combined_dm_cfg>; + load = <CONFIG_SPL_TEXT_BASE>; + load-sysfw = <0x40000>; + load-sysfw-data = <0x67000>; + load-dm-data = <0x43c3a800>; + }; + u_boot_spl: u-boot-spl { + no-expanded; + }; + ti_fs_enc: ti-fs-enc.bin { + filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; + type = "blob-ext"; + }; + combined_tifs_cfg: combined-tifs-cfg.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + sysfw_inner_cert: sysfw-inner-cert { + filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; + type = "blob-ext"; + }; + combined_dm_cfg: combined-dm-cfg.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + }; + + tiboot3_am625_hs_fs_template: template-tiboot3-hs-fs { + ti-secure-rom { + content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, + <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; + combined; + dm-data; + sysfw-inner-cert; + keyfile = "custMpk.pem"; + sw-rev = <1>; + content-sbl = <&u_boot_spl_fs>; + content-sysfw = <&ti_fs_enc_fs>; + content-sysfw-data = <&combined_tifs_cfg_fs>; + content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; + content-dm-data = <&combined_dm_cfg_fs>; + load = <CONFIG_SPL_TEXT_BASE>; + load-sysfw = <0x40000>; + load-sysfw-data = <0x67000>; + load-dm-data = <0x43c3a800>; + }; + u_boot_spl_fs: u-boot-spl { + no-expanded; + }; + ti_fs_enc_fs: ti-fs-enc.bin { + filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; + type = "blob-ext"; + }; + combined_tifs_cfg_fs: combined-tifs-cfg.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + sysfw_inner_cert_fs: sysfw-inner-cert { + filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; + type = "blob-ext"; + }; + combined_dm_cfg_fs: combined-dm-cfg.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + }; + + tiboot3_am625_gp_template: template-tiboot3-gp { + ti-secure-rom { + content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, + <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; + combined; + dm-data; + keyfile = "ti-degenerate-key.pem"; + sw-rev = <1>; + content-sbl = <&u_boot_spl_unsigned>; + content-sysfw = <&ti_fs_gp>; + content-sysfw-data = <&combined_tifs_cfg_gp>; + content-dm-data = <&combined_dm_cfg_gp>; + load = <CONFIG_SPL_TEXT_BASE>; + load-sysfw = <0x40000>; + load-sysfw-data = <0x67000>; + load-dm-data = <0x43c3a800>; + }; + u_boot_spl_unsigned: u-boot-spl { + no-expanded; + }; + ti_fs_gp: ti-fs-gp.bin { + filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; + type = "blob-ext"; + }; + combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { + filename = "combined-tifs-cfg.bin"; + type = "blob-ext"; + }; + combined_dm_cfg_gp: combined-dm-cfg-gp.bin { + filename = "combined-dm-cfg.bin"; + type = "blob-ext"; + }; + }; +}; + +#ifdef CONFIG_ARM64 + +&binman { + tifsstub-hs { + filename = "tifsstub.bin_hs"; + ti-secure-rom { + content = <&tifsstub_hs_cert>; + core = "secure"; + load = <0x40000>; + sw-rev = <CONFIG_K3_X509_SWRV>; + keyfile = "custMpk.pem"; + countersign; + tifsstub; + }; + tifsstub_hs_cert: tifsstub-hs-cert.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + tifsstub_hs_enc: tifsstub-hs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + + tifsstub-fs { + filename = "tifsstub.bin_fs"; + tifsstub_fs_cert: tifsstub-fs-cert.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + tifsstub_fs_enc: tifsstub-fs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + + tifsstub-gp { + filename = "tifsstub.bin_gp"; + ti-secure-rom { + content = <&tifsstub_gp>; + core = "secure"; + load = <0x60000>; + sw-rev = <CONFIG_K3_X509_SWRV>; + keyfile = "ti-degenerate-key.pem"; + tifsstub; + }; + tifsstub_gp: tifsstub-gp.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + + ti_falcon_am625_template: template-ti-falcon { + insert-template = <&ti_falcon_template>; + fit { + images { + tifsstub-hs { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-hs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_hs"; + }; + }; + tifsstub-fs { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-fs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_fs"; + }; + }; + tifsstub-gp { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-gp"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_gp"; + }; + }; + dm { + ti-secure { + content = <&dm_falcon>; + keyfile = "custMpk.pem"; + }; + dm_falcon: ti-dm { + filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + }; + }; + }; + + ti_spl_am625_template: template-ti-spl { + insert-template = <&ti_spl_template>; + fit { + images { + atf { + ti-secure { + auth-in-place = <0xa02>; + firewall-1-0 { + insert-template = <&firewall_bg_3>; + id = <1>; + region = <0>; + }; + firewall-1-1 { + insert-template = <&firewall_armv8_atf_fg>; + id = <1>; + region = <1>; + }; + }; + }; + tee { + ti-secure { + auth-in-place = <0xa02>; + firewall-1-2 { + insert-template = <&firewall_armv8_optee_fg>; + id = <1>; + region = <2>; + }; + }; + }; + tifsstub-hs { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-hs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_hs"; + }; + }; + tifsstub-fs { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-fs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_fs"; + }; + }; + tifsstub-gp { + description = "TIFSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-gp"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_gp"; + }; + }; + dm { + ti-secure { + content = <&dm>; + keyfile = "custMpk.pem"; + }; + dm: ti-dm { + filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + }; + }; + }; + + ti_spl_unsigned_am625_template: template-ti-spl_unsigned { + insert-template = <&ti_spl_unsigned_template>; + fit { + images { + tifsstub-hs { + description = "tifsstub"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-hs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_hs"; + }; + }; + tifsstub-fs { + description = "tifsstub"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-fs"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_fs"; + }; + }; + tifsstub-gp { + description = "tifsstub"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "tifsstub-gp"; + load = <0x9dc00000>; + entry = <0x9dc00000>; + blob-ext { + filename = "tifsstub.bin_gp"; + }; + }; + dm { + ti-dm { + filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + }; + }; + }; +}; + +#endif diff --git a/arch/arm/dts/k3-am625-phycore-som-binman.dtsi b/arch/arm/dts/k3-am625-phycore-som-binman.dtsi index d0eaa7dd992..ab8cc942564 100644 --- a/arch/arm/dts/k3-am625-phycore-som-binman.dtsi +++ b/arch/arm/dts/k3-am625-phycore-som-binman.dtsi @@ -6,7 +6,7 @@ * Author: Wadim Egorov <[email protected]> */ -#include "k3-binman.dtsi" +#include "k3-am625-binman.dtsi" #ifdef CONFIG_TARGET_PHYCORE_AM62X_R5 @@ -17,124 +17,16 @@ &binman { tiboot3-am62x-hs-phycore-som.bin { filename = "tiboot3-am62x-hs-phycore-som.bin"; - ti-secure-rom { - content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, - <&combined_dm_cfg>, <&sysfw_inner_cert>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl>; - content-sysfw = <&ti_fs_enc>; - content-sysfw-data = <&combined_tifs_cfg>; - content-sysfw-inner-cert = <&sysfw_inner_cert>; - content-dm-data = <&combined_dm_cfg>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl: u-boot-spl { - no-expanded; - }; - ti_fs_enc: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_template>; }; -}; - -&binman { tiboot3-am62x-hs-fs-phycore-som.bin { filename = "tiboot3-am62x-hs-fs-phycore-som.bin"; symlink = "tiboot3.bin"; - ti-secure-rom { - content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, - <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl_fs>; - content-sysfw = <&ti_fs_enc_fs>; - content-sysfw-data = <&combined_tifs_cfg_fs>; - content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; - content-dm-data = <&combined_dm_cfg_fs>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl_fs: u-boot-spl { - no-expanded; - }; - ti_fs_enc_fs: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_fs: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert_fs: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_fs: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_fs_template>; }; -}; - -&binman { tiboot3-am62x-gp-phycore-som.bin { filename = "tiboot3-am62x-gp-phycore-som.bin"; - ti-secure-rom { - content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, - <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; - combined; - dm-data; - content-sbl = <&u_boot_spl_unsigned>; - load = <CONFIG_SPL_TEXT_BASE>; - content-sysfw = <&ti_fs_gp>; - load-sysfw = <0x40000>; - content-sysfw-data = <&combined_tifs_cfg_gp>; - load-sysfw-data = <0x67000>; - content-dm-data = <&combined_dm_cfg_gp>; - load-dm-data = <0x43c3a800>; - sw-rev = <1>; - keyfile = "ti-degenerate-key.pem"; - }; - u_boot_spl_unsigned: u-boot-spl { - no-expanded; - }; - ti_fs_gp: ti-fs-gp.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_gp: combined-dm-cfg-gp.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_gp_template>; }; }; @@ -158,146 +50,10 @@ #define AM625_PHYBOARD_LYRA_DTB "u-boot.dtb" &binman { - tifsstub-hs { - filename = "tifsstub.bin_hs"; - ti-secure-rom { - content = <&tifsstub_hs_cert>; - core = "secure"; - load = <0x40000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "custMpk.pem"; - countersign; - tifsstub; - }; - tifsstub_hs_cert: tifsstub-hs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_hs_enc: tifsstub-hs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - }; - - tifsstub-fs { - filename = "tifsstub.bin_fs"; - tifsstub_fs_cert: tifsstub-fs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_fs_enc: tifsstub-fs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - - }; - - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - - ti-spl { - insert-template = <&ti_spl_template>; - + insert-template = <&ti_spl_am625_template>; fit { - images { - atf { - ti-secure { - auth-in-place = <0xa02>; - - firewall-1-0 { - insert-template = <&firewall_bg_3>; - id = <1>; - region = <0>; - }; - - firewall-1-1 { - insert-template = <&firewall_armv8_atf_fg>; - id = <1>; - region = <1>; - }; - }; - }; - - tee { - ti-secure { - auth-in-place = <0xa02>; - - firewall-1-2 { - insert-template = <&firewall_armv8_optee_fg>; - id = <1>; - region = <2>; - }; - }; - }; - - tifsstub-hs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - - tifsstub-fs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - - tifsstub-gp { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - dm { - ti-secure { - content = <&dm>; - keyfile = "custMpk.pem"; - }; - dm: ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - fdt-0 { description = "k3-am625-phyboard-lyra-rdk"; type = "flat_dt"; @@ -446,111 +202,10 @@ }; &binman { - tifsstub-hs { - filename = "tifsstub.bin_hs"; - ti-secure-rom { - content = <&tifsstub_hs_cert>; - core = "secure"; - load = <0x40000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "custMpk.pem"; - countersign; - tifsstub; - }; - tifsstub_hs_cert: tifsstub-hs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_hs_enc: tifsstub-hs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - }; - - tifsstub-fs { - filename = "tifsstub.bin_fs"; - tifsstub_fs_cert: tifsstub-fs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_fs_enc: tifsstub-fs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - - }; - - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - ti-spl_unsigned { - insert-template = <&ti_spl_unsigned_template>; - + insert-template = <&ti_spl_unsigned_am625_template>; fit { images { - tifsstub-hs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - - tifsstub-fs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - - tifsstub-gp { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - fdt-0 { description = "k3-am625-phyboard-lyra-rdk"; type = "flat_dt"; diff --git a/arch/arm/dts/k3-am625-r5-beagleplay.dts b/arch/arm/dts/k3-am625-r5-beagleplay.dts index fb0b83b83f1..0e8c74c0291 100644 --- a/arch/arm/dts/k3-am625-r5-beagleplay.dts +++ b/arch/arm/dts/k3-am625-r5-beagleplay.dts @@ -33,38 +33,7 @@ tiboot3-am62x-gp-evm.bin { filename = "tiboot3-am62x-gp-evm.bin"; symlink = "tiboot3.bin"; - ti-secure-rom { - content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, - <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; - combined; - dm-data; - content-sbl = <&u_boot_spl_unsigned>; - load = <0x43c00000>; - content-sysfw = <&ti_fs_gp>; - load-sysfw = <0x40000>; - content-sysfw-data = <&combined_tifs_cfg_gp>; - load-sysfw-data = <0x67000>; - content-dm-data = <&combined_dm_cfg_gp>; - load-dm-data = <0x43c3a800>; - sw-rev = <1>; - keyfile = "ti-degenerate-key.pem"; - }; - u_boot_spl_unsigned: u-boot-spl { - no-expanded; - }; - ti_fs_gp: ti-fs-gp.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_gp: combined-dm-cfg-gp.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; - + insert-template = <&tiboot3_am625_gp_template>; }; }; diff --git a/arch/arm/dts/k3-am625-sk-binman.dtsi b/arch/arm/dts/k3-am625-sk-binman.dtsi index 1717621a850..08edf7f3251 100644 --- a/arch/arm/dts/k3-am625-sk-binman.dtsi +++ b/arch/arm/dts/k3-am625-sk-binman.dtsi @@ -3,7 +3,7 @@ * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ */ -#include "k3-binman.dtsi" +#include "k3-am625-binman.dtsi" #ifdef CONFIG_TARGET_AM625_R5_EVM @@ -14,125 +14,16 @@ &binman { tiboot3-am62x-hs-evm.bin { filename = "tiboot3-am62x-hs-evm.bin"; - ti-secure-rom { - content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, - <&combined_dm_cfg>, <&sysfw_inner_cert>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl>; - content-sysfw = <&ti_fs_enc>; - content-sysfw-data = <&combined_tifs_cfg>; - content-sysfw-inner-cert = <&sysfw_inner_cert>; - content-dm-data = <&combined_dm_cfg>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl: u-boot-spl { - no-expanded; - }; - ti_fs_enc: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_template>; }; -}; - -&binman { tiboot3-am62x-hs-fs-evm.bin { filename = "tiboot3-am62x-hs-fs-evm.bin"; symlink = "tiboot3.bin"; - ti-secure-rom { - content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, - <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl_fs>; - content-sysfw = <&ti_fs_enc_fs>; - content-sysfw-data = <&combined_tifs_cfg_fs>; - content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; - content-dm-data = <&combined_dm_cfg_fs>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl_fs: u-boot-spl { - no-expanded; - }; - ti_fs_enc_fs: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_fs: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert_fs: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_fs: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_fs_template>; }; -}; - -&binman { tiboot3-am62x-gp-evm.bin { filename = "tiboot3-am62x-gp-evm.bin"; - ti-secure-rom { - content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, - <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; - combined; - dm-data; - content-sbl = <&u_boot_spl_unsigned>; - load = <CONFIG_SPL_TEXT_BASE>; - content-sysfw = <&ti_fs_gp>; - load-sysfw = <0x40000>; - content-sysfw-data = <&combined_tifs_cfg_gp>; - load-sysfw-data = <0x67000>; - content-dm-data = <&combined_dm_cfg_gp>; - load-dm-data = <0x43c3a800>; - sw-rev = <1>; - keyfile = "ti-degenerate-key.pem"; - }; - u_boot_spl_unsigned: u-boot-spl { - no-expanded; - }; - ti_fs_gp: ti-fs-gp.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_gp: combined-dm-cfg-gp.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; - + insert-template = <&tiboot3_am625_gp_template>; }; }; @@ -155,113 +46,9 @@ #define AM625_SK_DTB "u-boot.dtb" &binman { - tifsstub-hs { - filename = "tifsstub.bin_hs"; - ti-secure-rom { - content = <&tifsstub_hs_cert>; - core = "secure"; - load = <0x40000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "custMpk.pem"; - countersign; - tifsstub; - }; - tifsstub_hs_cert: tifsstub-hs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_hs_enc: tifsstub-hs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - }; - - tifsstub-fs { - filename = "tifsstub.bin_fs"; - tifsstub_fs_cert: tifsstub-fs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_fs_enc: tifsstub-fs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - - }; - - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - ti-falcon { - insert-template = <&ti_falcon_template>; - + insert-template = <&ti_falcon_am625_template>; fit { - images { - tifsstub-hs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - tifsstub-fs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - tifsstub-gp { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - dm { - ti-secure { - content = <&dm_falcon>; - keyfile = "custMpk.pem"; - }; - dm_falcon: ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - }; - configurations { default = "conf-hs-fs"; conf-hs-fs { @@ -284,109 +71,63 @@ }; ti-spl { - insert-template = <&ti_spl_template>; - + insert-template = <&ti_spl_am625_template>; fit { images { - atf { - ti-secure { - auth-in-place = <0xa02>; - - firewall-1-0 { - insert-template = <&firewall_bg_3>; - id = <1>; - region = <0>; - }; - - firewall-1-1 { - insert-template = <&firewall_armv8_atf_fg>; - id = <1>; - region = <1>; - }; - }; - }; - - tee { + fdt-0 { + description = "k3-am625-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; ti-secure { - auth-in-place = <0xa02>; - - firewall-1-2 { - insert-template = <&firewall_armv8_optee_fg>; - id = <1>; - region = <2>; - }; + content = <&spl_am625_sk_dtb>; + keyfile = "custMpk.pem"; }; - }; - - tifsstub-hs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; + spl_am625_sk_dtb: blob-ext { + filename = SPL_AM625_SK_DTB; }; }; - - tifsstub-fs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; + }; + configurations { + default = "conf-hs-fs"; + conf-hs-fs { + description = "k3-am625-sk-hs-fs"; + firmware = "atf"; + loadables = "tee", "tifsstub-fs", "dm", "spl"; + fdt = "fdt-0"; }; - - tifsstub-gp { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; + conf-hs-se { + description = "k3-am625-sk-hs-se"; + firmware = "atf"; + loadables = "tee", "tifsstub-hs", "dm", "spl"; + fdt = "fdt-0"; }; - - dm { - ti-secure { - content = <&dm>; - keyfile = "custMpk.pem"; - }; - dm: ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; + conf-gp { + description = "k3-am625-sk-gp"; + firmware = "atf"; + loadables = "tee", "tifsstub-gp", "dm", "spl"; + fdt = "fdt-0"; }; + }; + }; + }; + ti-spl_unsigned { + insert-template = <&ti_spl_unsigned_am625_template>; + fit { + images { fdt-0 { description = "k3-am625-sk"; type = "flat_dt"; arch = "arm"; compression = "none"; - ti-secure { - content = <&spl_am625_sk_dtb>; - keyfile = "custMpk.pem"; - }; - spl_am625_sk_dtb: blob-ext { + spl_am625_sk_dtb_unsigned: blob { filename = SPL_AM625_SK_DTB; }; - }; - }; - configurations { default = "conf-hs-fs"; - conf-hs-fs { description = "k3-am625-sk-hs-fs"; firmware = "atf"; @@ -454,95 +195,6 @@ }; &binman { - ti-spl_unsigned { - insert-template = <&ti_spl_unsigned_template>; - - fit { - images { - - tifsstub-hs { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - - tifsstub-fs { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - - tifsstub-gp { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - - fdt-0 { - description = "k3-am625-sk"; - type = "flat_dt"; - arch = "arm"; - compression = "none"; - spl_am625_sk_dtb_unsigned: blob { - filename = SPL_AM625_SK_DTB; - }; - }; - }; - - configurations { - default = "conf-hs-fs"; - - conf-hs-fs { - description = "k3-am625-sk-hs-fs"; - firmware = "atf"; - loadables = "tee", "tifsstub-fs", "dm", "spl"; - fdt = "fdt-0"; - }; - conf-hs-se { - description = "k3-am625-sk-hs-se"; - firmware = "atf"; - loadables = "tee", "tifsstub-hs", "dm", "spl"; - fdt = "fdt-0"; - }; - conf-gp { - description = "k3-am625-sk-gp"; - firmware = "atf"; - loadables = "tee", "tifsstub-gp", "dm", "spl"; - fdt = "fdt-0"; - }; - }; - }; - }; -}; - -&binman { u-boot_unsigned { insert-template = <&u_boot_unsigned_template>; diff --git a/arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi b/arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi index 35b7f8b256e..527b04936fc 100644 --- a/arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +++ b/arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi @@ -3,7 +3,7 @@ * Copyright 2023 Toradex */ -#include "k3-binman.dtsi" +#include "k3-am625-binman.dtsi" #ifdef CONFIG_TARGET_VERDIN_AM62_R5 @@ -14,124 +14,16 @@ &binman { tiboot3-am62x-hs-verdin.bin { filename = "tiboot3-am62x-hs-verdin.bin"; - ti-secure-rom { - content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, - <&combined_dm_cfg>, <&sysfw_inner_cert>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl>; - content-sysfw = <&ti_fs_enc>; - content-sysfw-data = <&combined_tifs_cfg>; - content-sysfw-inner-cert = <&sysfw_inner_cert>; - content-dm-data = <&combined_dm_cfg>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl: u-boot-spl { - no-expanded; - }; - ti_fs_enc: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_template>; }; -}; - -&binman { tiboot3-am62x-hs-fs-verdin.bin { filename = "tiboot3-am62x-hs-fs-verdin.bin"; symlink = "tiboot3.bin"; - ti-secure-rom { - content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, - <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; - combined; - dm-data; - sysfw-inner-cert; - keyfile = "custMpk.pem"; - sw-rev = <1>; - content-sbl = <&u_boot_spl_fs>; - content-sysfw = <&ti_fs_enc_fs>; - content-sysfw-data = <&combined_tifs_cfg_fs>; - content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; - content-dm-data = <&combined_dm_cfg_fs>; - load = <CONFIG_SPL_TEXT_BASE>; - load-sysfw = <0x40000>; - load-sysfw-data = <0x67000>; - load-dm-data = <0x43c3a800>; - }; - u_boot_spl_fs: u-boot-spl { - no-expanded; - }; - ti_fs_enc_fs: ti-fs-enc.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_fs: combined-tifs-cfg.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - sysfw_inner_cert_fs: sysfw-inner-cert { - filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_fs: combined-dm-cfg.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_hs_fs_template>; }; -}; - -&binman { tiboot3-am62x-gp-verdin.bin { filename = "tiboot3-am62x-gp-verdin.bin"; - ti-secure-rom { - content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, - <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; - combined; - dm-data; - content-sbl = <&u_boot_spl_unsigned>; - load = <CONFIG_SPL_TEXT_BASE>; - content-sysfw = <&ti_fs_gp>; - load-sysfw = <0x40000>; - content-sysfw-data = <&combined_tifs_cfg_gp>; - load-sysfw-data = <0x67000>; - content-dm-data = <&combined_dm_cfg_gp>; - load-dm-data = <0x43c3a800>; - sw-rev = <1>; - keyfile = "ti-degenerate-key.pem"; - }; - u_boot_spl_unsigned: u-boot-spl { - no-expanded; - }; - ti_fs_gp: ti-fs-gp.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_gp: combined-dm-cfg-gp.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; + insert-template = <&tiboot3_am625_gp_template>; }; }; @@ -143,146 +35,10 @@ #define VERDIN_AM62_DTB "u-boot.dtb" &binman { - tifsstub-hs { - filename = "tifsstub.bin_hs"; - ti-secure-rom { - content = <&tifsstub_hs_cert>; - core = "secure"; - load = <0x40000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "custMpk.pem"; - countersign; - tifsstub; - }; - tifsstub_hs_cert: tifsstub-hs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_hs_enc: tifsstub-hs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - }; - - tifsstub-fs { - filename = "tifsstub.bin_fs"; - tifsstub_fs_cert: tifsstub-fs-cert.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; - type = "blob-ext"; - optional; - }; - tifsstub_fs_enc: tifsstub-fs-enc.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; - type = "blob-ext"; - optional; - }; - - }; - - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - ti-spl { - insert-template = <&ti_spl_template>; - + insert-template = <&ti_spl_am625_template>; fit { - images { - atf { - ti-secure { - auth-in-place = <0xa02>; - - firewall-1-0 { - insert-template = <&firewall_bg_3>; - id = <1>; - region = <0>; - }; - - firewall-1-1 { - insert-template = <&firewall_armv8_atf_fg>; - id = <1>; - region = <1>; - }; - }; - }; - - tee { - ti-secure { - auth-in-place = <0xa02>; - - firewall-1-2 { - insert-template = <&firewall_armv8_optee_fg>; - id = <1>; - region = <2>; - }; - }; - }; - - tifsstub-hs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - - tifsstub-fs { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - - tifsstub-gp { - description = "TIFSSTUB"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - ti-secure { - content = <&dm>; - keyfile = "custMpk.pem"; - }; - dm: ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - fdt-0 { description = "k3-am625-verdin-wifi-dev"; type = "flat_dt"; @@ -368,55 +124,10 @@ &binman { ti-spl_unsigned { - insert-template = <&ti_spl_unsigned_template>; + insert-template = <&ti_spl_unsigned_am625_template>; fit { images { - tifsstub-hs { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-hs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_hs"; - }; - }; - - tifsstub-fs { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-fs"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_fs"; - }; - }; - - tifsstub-gp { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - fdt-0 { description = "k3-am625-verdin-wifi-dev"; type = "flat_dt"; |
