Skip to contentSkip to conversation

arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

PATCH Superseded Tim Harvey 4 participants 4 messages Jun 22, 2023 – Jul 11, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

Move the crypto and sec_jr* nodes from board-specific u-boot.dtsi files into the common files. Additionally protect the nodes with ifdef FSL_CAAM as they don't serve any purpose if that is not enabled.

---
 arch/arm/dts/imx8mm-evk-u-boot.dtsi           | 16 ---------------
 .../dts/imx8mm-kontron-bl-common-u-boot.dtsi  | 16 ---------------
 arch/arm/dts/imx8mm-u-boot.dtsi               | 20 +++++++++++++++++++
 arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi      | 16 ---------------
 arch/arm/dts/imx8mn-u-boot.dtsi               | 20 +++++++++++++++++++
 arch/arm/dts/imx8mp-beacon-kit-u-boot.dtsi    | 16 ---------------
 arch/arm/dts/imx8mp-evk-u-boot.dtsi           | 16 ---------------
 .../imx8mp-icore-mx8mp-edimm2.2-u-boot.dtsi   | 16 ---------------
 arch/arm/dts/imx8mp-u-boot.dtsi               | 20 +++++++++++++++++++
 .../dts/imx8mp-verdin-wifi-dev-u-boot.dtsi    | 16 ---------------
 10 files changed, 60 insertions(+), 112 deletions(-)
arch/arm/dts/imx8mm-evk-u-boot.dtsi +0 -16
index 155670da18d1..9a5b0795133b 100644
@@ -65,22 +65,6 @@
 	bootph-pre-ram;
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &usbmisc1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi +0 -16
index 1ad9d49a1118..ae542fdcffad 100644
@@ -18,22 +18,6 @@
 	};
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &i2c1 {
 	bootph-pre-ram;
 	bootph-all;
arch/arm/dts/imx8mm-u-boot.dtsi +20 -0
index 61f907a4743b..303a43e63527 100644
@@ -18,6 +18,12 @@
 #endif
 };
 
+#ifdef FSL_CAAM
+&crypto {
+	bootph-pre-ram;
+};
+#endif
+
 &soc {
 	bootph-all;
 	bootph-pre-ram;
@@ -235,6 +241,20 @@
 	bootph-pre-ram;
 };
 
+#ifdef FSL_CAAM
+&sec_jr0 {
+	bootph-pre-ram;
+};
+
+&sec_jr1 {
+	bootph-pre-ram;
+};
+
+&sec_jr2 {
+	bootph-pre-ram;
+};
+#endif
+
 &spba1 {
 	bootph-all;
 	bootph-pre-ram;
arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi +0 -16
index 315714f39848..c31f3dec3de4 100644
@@ -57,22 +57,6 @@
 	bootph-pre-ram;
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &usdhc1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mn-u-boot.dtsi +20 -0
index 15cec4ffab44..77b3097d5f52 100644
@@ -54,6 +54,12 @@
 	/delete-property/ assigned-clock-rates;
 };
 
+#ifdef FSL_CAAM
+&crypto {
+	bootph-pre-ram;
+};
+#endif
+
 &iomuxc {
 	bootph-pre-ram;
 };
@@ -63,6 +69,20 @@
 	bootph-all;
 };
 
+#ifdef FSL_CAMM
+&sec_jr0 {
+	bootph-pre-ram;
+};
+
+&sec_jr1 {
+	bootph-pre-ram;
+};
+
+&sec_jr2 {
+	bootph-pre-ram;
+};
+#endif
+
 &spba1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mp-beacon-kit-u-boot.dtsi +0 -16
index bb0f9bd0c8d3..82e90d743d08 100644
@@ -21,10 +21,6 @@
 	bootph-pre-ram;
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
 &eqos {
 	/delete-property/ assigned-clocks;
 	/delete-property/ assigned-clock-parents;
@@ -131,18 +127,6 @@
 	u-boot,off-on-delay-us = <20000>;
 };
 
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &tpm {
 	compatible = "tcg,tpm_tis-spi";
 };
arch/arm/dts/imx8mp-evk-u-boot.dtsi +0 -16
index 17965c58ba10..6d9b229989ac 100644
@@ -65,22 +65,6 @@
 	bootph-pre-ram;
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &i2c1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2-u-boot.dtsi +0 -16
index fe20938af536..cf2a87a9b903 100644
@@ -62,22 +62,6 @@
 	bootph-pre-ram;
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &i2c1 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8mp-u-boot.dtsi +20 -0
index b46fc7eeed0d..1ba6b769341f 100644
@@ -19,6 +19,12 @@
 #endif
 };
 
+#ifdef FSL_CAAM
+&crypto {
+	bootph-pre-ram;
+};
+#endif
+
 &soc {
 	bootph-all;
 	bootph-pre-ram;
@@ -59,6 +65,20 @@
 	bootph-pre-ram;
 };
 
+#ifdef FSL_CAAM
+&sec_jr0 {
+	bootph-pre-ram;
+};
+
+&sec_jr1 {
+	bootph-pre-ram;
+};
+
+&sec_jr2 {
+	bootph-pre-ram;
+};
+#endif
+
 &binman {
 	 u-boot-spl-ddr {
 		filename = "u-boot-spl-ddr.bin";
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi +0 -16
index a985645ff8c3..0ea194ba152c 100644
@@ -28,10 +28,6 @@
 
 };
 
-&crypto {
-	bootph-pre-ram;
-};
-
 &gpio1 {
 	bootph-pre-ram;
 };
@@ -132,18 +128,6 @@
 	bootph-pre-ram;
 };
 
-&sec_jr0 {
-	bootph-pre-ram;
-};
-
-&sec_jr1 {
-	bootph-pre-ram;
-};
-
-&sec_jr2 {
-	bootph-pre-ram;
-};
-
 &uart3 {
 	bootph-pre-ram;
 };
Signature · 1 line
2.25.1
#3 lore raw

PATCH 1/1 arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

In reply to Tim Harvey
Quoted 7 lines

Move the crypto and sec_jr* nodes from board-specific u-boot.dtsi files into the common files. Additionally protect the nodes with ifdef FSL_CAAM as they don't serve any purpose if that is not enabled.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================