Skip to contentSkip to conversation

arm: dts: k3-binman: Make optee optional as requirement

PATCH Superseded Michael Trimarchi 2 participants 3 messages Feb 25, 2024 – Feb 26, 2024 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: k3-binman: Make optee optional as requirement

Boards can use the ti_spl_template but avoid to define a tee node to be loaded. This is true form board with 512Mb or less memory. We can limit this in configuation removing the tee node

configurations {
	default = "conf-0";

	conf-0 {
		description = "k3-am62_ccm_m3";
		firmware = "atf";
		loadables = "dm", "spl";
		fdt = "fdt-0";
	};
};
---
 arch/arm/dts/k3-binman.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/dts/k3-binman.dtsi +2 -0
index 758c8bf6ea..5ef5af315a 100644
@@ -293,6 +293,7 @@
 						keyfile = "custMpk.pem";
 					};
 					tee: tee-os {
+						optional;
 					};
 				};
 
@@ -360,6 +361,7 @@
 					entry = <0x9e800000>;
 					tee-os {
 						filename = "tee-raw.bin";
+						optional;
 					};
 				};
 
Signature · 1 line
2.40.1
#1 lore raw

Hi Michael

+ Vignesh

Quoted 2 lines · Michael Trimarchi

Boards can use the ti_spl_template but avoid to define a tee node to be loaded. This is true form board with 512Mb or less

s/form board/for boards? I am guessing that is what was meant. I am not really understanding the commit message... does <512MB memory always mean no using OPTEE? (AM62 SIP would be an exception) The commit message is putting out a misleading reason why we don't need OPTEE in some cases, I don't think memory is the primary reason.

Quoted 1 line

memory. We can limit this in configuation removing the tee

s/configuation/configuration

Quoted 31 lines

node

configurations {
	default = "conf-0";

	conf-0 {
		description = "k3-am62_ccm_m3";
		firmware = "atf";
		loadables = "dm", "spl";
		fdt = "fdt-0";
	};
};
---
  arch/arm/dts/k3-binman.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/dts/k3-binman.dtsi +1 -0
index 758c8bf6ea..5ef5af315a 100644
@@ -293,6 +293,7 @@
  						keyfile = "custMpk.pem";
  					};
  					tee: tee-os {
+						optional;
  					};
  				};
 

arch/arm/dts/k3-binman.dtsi line 367

Quoted 7 lines
arch/arm/dts/k3-binman.dtsi +1 -0
@@ -360,6 +361,7 @@
  					entry = <0x9e800000>;
  					tee-os {
  						filename = "tee-raw.bin";
+						optional;
  					};
  				};
 

The patch excluding the commit message LGTM.

Signature · 2 lines
Thanking You
Neha Malcom Francis
#2 lore raw

Hi

Quoted 6 lines · Neha Malcom Francis

Hi Michael

+ Vignesh

On 25/02/24 23:08, Michael Trimarchi wrote:

Quoted 9 lines
Quoted 2 lines

Boards can use the ti_spl_template but avoid to define a tee node to be loaded. This is true form board with 512Mb or less

s/form board/for boards? I am guessing that is what was meant. I am not really understanding the commit message... does <512MB memory always mean no using OPTEE? (AM62 SIP would be an exception) The commit message is putting out a misleading reason why we don't need OPTEE in some cases, I don't think memory is the primary reason.

I will adjust commit message. In general when you have module with 256 Mb of memory you
try to arrange the available memory to put the essential components. Anyway having still not
submitted board I found out that is convenient to use the template but in the same time remove
from my configuration what is not mandatory and let binman to warning and not to fail

Michael

Quoted 48 lines
Quoted 1 line

memory. We can limit this in configuation removing the tee

s/configuation/configuration

Quoted 31 lines

node

configurations {
      default = "conf-0";

      conf-0 {
              description = "k3-am62_ccm_m3";
              firmware = "atf";
              loadables = "dm", "spl";
              fdt = "fdt-0";
      };
};
---
  arch/arm/dts/k3-binman.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/dts/k3-binman.dtsi +1 -0
index 758c8bf6ea..5ef5af315a 100644
@@ -293,6 +293,7 @@
                                              keyfile = "custMpk.pem";
                                      };
                                      tee: tee-os {
+                                             optional;
                                      };
                              };
 

arch/arm/dts/k3-binman.dtsi line 367

Quoted 7 lines
arch/arm/dts/k3-binman.dtsi +1 -0
@@ -360,6 +361,7 @@
                                      entry = <0x9e800000>;
                                      tee-os {
                                              filename = "tee-raw.bin";
+                                             optional;
                                      };
                              };
 

The patch excluding the commit message LGTM.

--
Thanking You
Neha Malcom Francis

Signature · 11 lines
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
[email protected]
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
[email protected]
www.amarulasolutions.com