From ba644c3d643fb2c51b4eb2bc1be5b38af43c559c Mon Sep 17 00:00:00 2001 From: Krishna Mohan Dani Date: Tue, 27 Jul 2021 15:08:36 +0530 Subject: [PATCH] boards/arm: stm32l562e_dk: Enabling flash support in device tree This commit enables flash support in stm32l562e_dk platform in device tree. Signed-off-by: Krishna Mohan Dani --- boards/arm/stm32l562e_dk/stm32l562e_dk.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk.dts b/boards/arm/stm32l562e_dk/stm32l562e_dk.dts index 9d312e4cf7a..8bb987504f4 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk.dts +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk.dts @@ -52,3 +52,17 @@ &aes { status = "okay"; }; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* 2KB at the end of 512KB flash is set for storage */ + storage_partition: partition@7f800 { + label = "storage"; + reg = <0x0007f800 0x00000800>; + }; + }; +};