summaryrefslogtreecommitdiff
path: root/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-07-26 11:21:35 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2021-08-16 09:34:27 +0200
commitf91783edf22468beb4f0d3b139a4ff343a8057ab (patch)
treee9dd2efe0040113c8bdcf3bb71fcacd6e6f19861 /arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
parent6de57b41ddeddf6a01a61ea14614a90aba0bcd92 (diff)
arm: stm32mp: handle the OP-TEE nodes in DT with FIP support
With FIP support in TF-A (when CONFIG_STM32MP15x_STM32IMAGE is not activated), the DT nodes needed by OP-TEE are added by OP-TEE firmware in U-Boot device tree, present in FIP. These nodes are only required in trusted boot, when TF-A load the file u-boot.stm32, including the U-Boot device tree with STM32IMAGE header, in this case OP-TEE can't update the U-Boot device tree. Moreover in trusted boot mode with FIP, as the OP-TEE nodes are present in U-Boot device tree only when needed the function stm32_fdt_disable_optee can be removed. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi')
-rw-r--r--arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
index fc6066aab2..b23dae3be4 100644
--- a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
@@ -20,6 +20,8 @@
st,stm32prog-gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
+#ifdef CONFIG_STM32MP15x_STM32IMAGE
+ /* only needed for boot with TF-A, witout FIP support */
firmware {
optee {
compatible = "linaro,optee-tz";
@@ -33,6 +35,7 @@
no-map;
};
};
+#endif
led {
red {