From 43d7c74e786cad9dd17f96c91b742d0144e3a84b Mon Sep 17 00:00:00 2001 From: Vibhore Vardhan Date: Mon, 6 Nov 2023 18:35:25 +0530 Subject: [PATCH] arm: dts: k3: binman: am62a: add support for signing FSSTUB images Add support for signing, detection and loading of FSSTUB images for for HSSE, HSFS and GP AM62a devices. Based on the binman code for AM625 with updates to the filenames and load address. Signed-off-by: Vibhore Vardhan Reviewed-by: Dhruva Gole Tested-by: Vishal Mahaveer --- arch/arm/dts/k3-am62a-sk-binman.dtsi | 140 ++++++++++++++++++++++++++- 1 file changed, 138 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am62a-sk-binman.dtsi b/arch/arm/dts/k3-am62a-sk-binman.dtsi index eb1f7a929f..2523e08984 100644 --- a/arch/arm/dts/k3-am62a-sk-binman.dtsi +++ b/arch/arm/dts/k3-am62a-sk-binman.dtsi @@ -157,6 +157,62 @@ filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; }; }; + + fsstub-hs { + filename = "fsstub.bin_hs"; + ti-secure-rom { + content = <&fsstub_hs_cert>; + core = "secure"; + load = <0x60000>; + sw-rev = ; + keyfile = "custMpk.pem"; + countersign; + fsstub; + }; + fsstub_hs_cert: fsstub-hs-cert.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + fsstub_hs_enc: fsstub-hs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + + fsstub-fs { + filename = "fsstub.bin_fs"; + fsstub_fs_cert: fsstub-fs-cert.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + fsstub_fs_enc: fsstub-fs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + + }; + + fsstub-gp { + filename = "fsstub.bin_gp"; + ti-secure-rom { + content = <&fsstub_gp>; + core = "secure"; + load = <0x60000>; + sw-rev = ; + keyfile = "ti-degenerate-key.pem"; + fsstub; + }; + fsstub_gp: fsstub-gp.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + ti-spl { filename = "tispl.bin"; pad-byte = <0xff>; @@ -199,6 +255,45 @@ }; }; + fsstub-hs { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-hs"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_hs"; + }; + }; + + fsstub-fs { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-fs"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_fs"; + }; + }; + + fsstub-gp { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-gp"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_gp"; + }; + }; + dm { description = "DM binary"; type = "firmware"; @@ -256,7 +351,8 @@ conf-0 { description = "k3-am62a7-sk"; firmware = "atf"; - loadables = "tee", "dm", "spl"; + loadables = "tee", "fsstub-hs", "fsstub-fs", + "fsstub-gp", "dm", "spl"; fdt = "fdt-0"; }; }; @@ -361,6 +457,45 @@ }; }; + fsstub-hs { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-hs"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_hs"; + }; + }; + + fsstub-fs { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-fs"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_fs"; + }; + }; + + fsstub-gp { + description = "FSSTUB"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "fsstub-gp"; + load = <0x9ca00000>; + entry = <0x9ca00000>; + blob-ext { + filename = "fsstub.bin_gp"; + }; + }; + dm { description = "DM binary"; type = "firmware"; @@ -404,7 +539,8 @@ conf-0 { description = "k3-am62a7-sk"; firmware = "atf"; - loadables = "tee", "dm", "spl"; + loadables = "tee", "fsstub-hs", "fsstub-fs", + "fsstub-gp", "dm", "spl"; fdt = "fdt-0"; }; };