arm: dts: imx8mm: move firmware/optee node to common imx8mm-u-boot.dtsi
authorTim Harvey <tharvey@gateworks.com>
Thu, 24 Aug 2023 19:01:42 +0000 (12:01 -0700)
committerStefano Babic <sbabic@denx.de>
Mon, 16 Oct 2023 06:46:01 +0000 (08:46 +0200)
Move the firmware/optee node to the common imx8mm-u-boot.dtsi and
protect it with an ifdef CONFIG_OPTEE as it is a meaningless node
without the optee driver enabled.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
arch/arm/dts/imx8mm-cl-iot-gate-optee-u-boot.dtsi
arch/arm/dts/imx8mm-cl-iot-gate-u-boot.dtsi
arch/arm/dts/imx8mm-evk-u-boot.dtsi
arch/arm/dts/imx8mm-kontron-bl-common-u-boot.dtsi
arch/arm/dts/imx8mm-phg-u-boot.dtsi
arch/arm/dts/imx8mm-u-boot.dtsi
arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi

index d93e1cb..c4327d3 100644 (file)
@@ -6,13 +6,6 @@
 #include "imx8mm-u-boot.dtsi"
 
 / {
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
-
        wdt-reboot {
                compatible = "wdt-reboot";
                bootph-pre-ram;
index 1878c4e..219504f 100644 (file)
@@ -6,13 +6,6 @@
 #include "imx8mm-u-boot.dtsi"
 
 / {
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
-
        wdt-reboot {
                compatible = "wdt-reboot";
                bootph-pre-ram;
index 13688ec..155670d 100644 (file)
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
-
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
 };
 
 &aips4 {
index 65dfd33..1ad9d49 100644 (file)
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
-
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
 };
 
 &crypto {
index 3ced97c..c9e0b44 100644 (file)
                wdt = <&wdog1>;
                bootph-pre-ram;
        };
-
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
 };
 
 &aips4 {
index 6085128..f7eb29c 100644 (file)
@@ -7,6 +7,15 @@
        binman: binman {
                multiple-images;
        };
+
+#ifdef CONFIG_OPTEE
+       firmware {
+               optee {
+                       compatible = "linaro,optee-tz";
+                       method = "smc";
+               };
+       };
+#endif
 };
 
 &soc {
index b06ce3f..8efa4dd 100644 (file)
@@ -6,13 +6,6 @@
 #include "imx8mm-u-boot.dtsi"
 
 / {
-       firmware {
-               optee {
-                       compatible = "linaro,optee-tz";
-                       method = "smc";
-               };
-       };
-
        wdt-reboot {
                compatible = "wdt-reboot";
                bootph-pre-ram;