From e8889cb56ad324d5372cfe41f2fa018b8b95520d Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Thu, 23 Nov 2023 15:18:03 +0530 Subject: [PATCH] arm: dts: k3: binman: am62p: add support for signing FSSTUB images Add support for signing, detection and loading of FSSTUB images for for HSSE and HSFS AM62P devices. Based on the binman code for AM625 with updates to the filenames and load address. Signed-off-by: Dhruva Gole Acked-by: Vishal Mahaveer --- arch/arm/dts/k3-am62p-sk-binman.dtsi | 96 +++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am62p-sk-binman.dtsi b/arch/arm/dts/k3-am62p-sk-binman.dtsi index a3cb541d94..1c30ed8680 100644 --- a/arch/arm/dts/k3-am62p-sk-binman.dtsi +++ b/arch/arm/dts/k3-am62p-sk-binman.dtsi @@ -116,6 +116,44 @@ }; }; + 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-am62px-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + fsstub_hs_enc: fsstub-hs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62px-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-am62px-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + fsstub_fs_enc: fsstub-fs-enc.bin { + filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + + }; + ti-spl { filename = "tispl.bin"; pad-byte = <0xff>; @@ -158,6 +196,32 @@ }; }; + 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"; + }; + }; + dm { description = "DM binary"; type = "firmware"; @@ -215,7 +279,8 @@ conf-0 { description = "k3-am62px-sk"; firmware = "atf"; - loadables = "tee", "dm", "spl"; + loadables = "tee", "fsstub-hs", "fsstub-fs", + "dm", "spl"; fdt = "fdt-0"; }; }; @@ -320,6 +385,32 @@ }; }; + 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"; + }; + }; + dm { description = "DM binary"; type = "firmware"; @@ -363,7 +454,8 @@ conf-0 { description = "k3-am62px-sk"; firmware = "atf"; - loadables = "tee", "dm", "spl"; + loadables = "tee", "fsstub-hs", "fsstub-fs", + "dm", "spl"; fdt = "fdt-0"; }; };