arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi
authorTim Harvey <tharvey@gateworks.com>
Thu, 24 Aug 2023 19:03:56 +0000 (12:03 -0700)
committerStefano Babic <sbabic@denx.de>
Mon, 16 Oct 2023 06:46:01 +0000 (08:46 +0200)
Move the crypto and sec_jr* nodes from board-specific
u-boot.dtsi files into the common files. Additionally protect the
nodes with ifdef CONFIG_FSL_CAAM as they don't serve any purpose if
that is not enabled.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
arch/arm/dts/imx8mm-evk-u-boot.dtsi
arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi
arch/arm/dts/imx8mm-u-boot.dtsi
arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
arch/arm/dts/imx8mn-u-boot.dtsi
arch/arm/dts/imx8mp-beacon-kit-u-boot.dtsi
arch/arm/dts/imx8mp-evk-u-boot.dtsi
arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2-u-boot.dtsi
arch/arm/dts/imx8mp-u-boot.dtsi
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi

index 155670d..9a5b079 100644 (file)
        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;
 };
index 1ad9d49..ae542fd 100644 (file)
        };
 };
 
-&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;
index f7eb29c..06f2f73 100644 (file)
 #endif
 };
 
+#ifdef CONFIG_FSL_CAAM
+&crypto {
+       bootph-pre-ram;
+};
+#endif
+
 &soc {
        bootph-all;
        bootph-pre-ram;
        bootph-pre-ram;
 };
 
+#ifdef CONFIG_FSL_CAAM
+&sec_jr0 {
+       bootph-pre-ram;
+};
+
+&sec_jr1 {
+       bootph-pre-ram;
+};
+
+&sec_jr2 {
+       bootph-pre-ram;
+};
+#endif
+
 &spba1 {
        bootph-all;
        bootph-pre-ram;
index 315714f..c31f3de 100644 (file)
        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;
 };
index 5e07055..96b1a1b 100644 (file)
        /delete-property/ assigned-clock-rates;
 };
 
+#ifdef CONFIG_FSL_CAAM
+&crypto {
+       bootph-pre-ram;
+};
+#endif
+
 &iomuxc {
        bootph-pre-ram;
 };
        bootph-all;
 };
 
+#ifdef CONFIG_FSL_CAAM
+&sec_jr0 {
+       bootph-pre-ram;
+};
+
+&sec_jr1 {
+       bootph-pre-ram;
+};
+
+&sec_jr2 {
+       bootph-pre-ram;
+};
+#endif
+
 &spba1 {
        bootph-pre-ram;
 };
index c69f7c9..393fd8e 100644 (file)
        bootph-pre-ram;
 };
 
-&crypto {
-       bootph-pre-ram;
-};
-
 &eqos {
        /delete-property/ assigned-clocks;
        /delete-property/ assigned-clock-parents;
        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";
 };
index 17965c5..6d9b229 100644 (file)
        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;
 };
index fe20938..cf2a87a 100644 (file)
        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;
 };
index 694dea1..4b1a916 100644 (file)
 #endif
 };
 
+#ifdef CONFIG_FSL_CAAM
+&crypto {
+       bootph-pre-ram;
+};
+#endif
+
 &soc {
        bootph-all;
        bootph-pre-ram;
        bootph-pre-ram;
 };
 
+#ifdef CONFIG_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";
index fc87d3f..2a1aa19 100644 (file)
 
 };
 
-&crypto {
-       bootph-pre-ram;
-};
-
 &gpio1 {
        bootph-pre-ram;
 };
        bootph-pre-ram;
 };
 
-&sec_jr0 {
-       bootph-pre-ram;
-};
-
-&sec_jr1 {
-       bootph-pre-ram;
-};
-
-&sec_jr2 {
-       bootph-pre-ram;
-};
-
 &uart3 {
        bootph-pre-ram;
 };