The FWU metadata structure is accessed through the driver model
interface. On the stm32mp157c dk2 and ev1 boards, the FWU metadata is
stored on the uSD card. Add the fwu-mdata node on the u-boot specifc
dtsi file for accessing the metadata structure.

Signed-off-by: Sughosh Ganu <sughosh.g...@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delau...@foss.st.com>
Acked-by: Ilias Apalodimas <ilias.apalodi...@linaro.org>
Acked-by: Etienne Carriere <etienne.carri...@linaro.org>
---
Changes since V14: None

 arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi | 7 +++++++
 arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi 
b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
index 06ef3a4095..24f86209db 100644
--- a/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
@@ -4,3 +4,10 @@
  */
 
 #include "stm32mp157a-dk1-u-boot.dtsi"
+
+/ {
+       fwu-mdata {
+               compatible = "u-boot,fwu-mdata-gpt";
+               fwu-mdata-store = <&sdmmc1>;
+       };
+};
diff --git a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi 
b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
index ec60486f41..7bf08bec6d 100644
--- a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
@@ -14,6 +14,11 @@
                spi0 = &qspi;
                usb0 = &usbotg_hs;
        };
+
+       fwu-mdata {
+               compatible = "u-boot,fwu-mdata-gpt";
+               fwu-mdata-store = <&sdmmc1>;
+       };
 };
 
 &flash0 {
-- 
2.34.1

Reply via email to