diff mbox series

[v2,3/3] arm: dts: imx8mn: protect the firmware/optee node with ifdef

Message ID 20230824190144.980883-3-tharvey@gateworks.com
State Accepted
Commit c0887faadeef26c38e3251d7a8e9f2f36c4b580b
Delegated to: Stefano Babic
Headers show
Series [v2,1/3] arm: dts: imx8mm: move firmware/optee node to common imx8mm-u-boot.dtsi | expand

Commit Message

Tim Harvey Aug. 24, 2023, 7:01 p.m. UTC
There is no need to include the firmware/optee node if the optee
driver is not enabled.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
---
v2: added Fabio's rb tag
---
 arch/arm/dts/imx8mn-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Babic Oct. 16, 2023, 9:21 a.m. UTC | #1
> There is no need to include the firmware/optee node if the optee
> driver is not enabled.
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> Reviewed-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx8mn-u-boot.dtsi b/arch/arm/dts/imx8mn-u-boot.dtsi
index 5046b38e4e29..86c9a6cd67f0 100644
--- a/arch/arm/dts/imx8mn-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-u-boot.dtsi
@@ -8,12 +8,14 @@ 
 		multiple-images;
 	};
 
+#ifdef CONFIG_OPTEE
 	firmware {
 		optee {
 			compatible = "linaro,optee-tz";
 			method = "smc";
 		};
 	};
+#endif
 
 	wdt-reboot {
 		compatible = "wdt-reboot";