[PATCH] dts: imx8mm: Add optee entry for binman

Manuel Traut manut at mecka.net
Fri Mar 1 13:00:22 CET 2024


Used to embed the OPTEE OS binary into flash.bin so it can be
detected and loaded by trusted-firmware-arm.

Signed-off-by: Manuel Traut <manuel.traut at mt.com>
---
 arch/arm/dts/imx8mm-u-boot.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/dts/imx8mm-u-boot.dtsi b/arch/arm/dts/imx8mm-u-boot.dtsi
index 06f2f73a03..8ca4515c9f 100644
--- a/arch/arm/dts/imx8mm-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-u-boot.dtsi
@@ -130,6 +130,22 @@
 						type = "atf-bl31";
 					};
 				};
+
+#ifdef CONFIG_OPTEE
+				optee {
+						description = "OP-TEE";
+						type = "firmware";
+						arch = "arm";
+						os = "tee";
+						compression = "none";
+						load = <0xbe000000>;
+						entry = <0xbe000000>;
+
+						blob-ext {
+								filename = "tee.bin";
+						};
+				};
+#endif
 #endif
 
 				binman_fip: fip {
@@ -160,7 +176,11 @@
 					fdt = "fdt-SEQ";
 					firmware = "uboot";
 #ifndef CONFIG_ARMV8_PSCI
+#ifdef CONFIG_OPTEE
+					loadables = "atf", "optee";
+#else
 					loadables = "atf";
+#endif
 #endif
 				};
 			};
-- 
2.43.0



More information about the U-Boot mailing list