From 79184d9dde4202cbf4937424c3375f7e48f61792 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Sat, 31 Dec 2022 12:07:33 +0100 Subject: [PATCH] boards: stm32: Fix external storage The stm32l562e_dk and b_u585i_iot02a boards have same external NOR memory. This harmonize both definitions and fix total partition size to correct 64MB. Signed-off-by: Gerson Fernando Budke --- boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi | 3 +-- boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi index d2e3909139e..edaba7003aa 100644 --- a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi +++ b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi @@ -166,8 +166,7 @@ #size-cells = <1>; partition@0 { - label = "nor"; - reg = <0x00000000 DT_SIZE_M(4)>; + reg = <0x00000000 DT_SIZE_M(64)>; }; }; }; diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi index 3856f146b2d..607814c421e 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi @@ -163,7 +163,6 @@ data-rate = ; four-byte-opcodes; status = "okay"; - sfdp-bfp = [ 53 46 44 50 06 01 02 ff 00 06 01 10 30 00 00 ff @@ -190,15 +189,15 @@ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f ef ff ff 21 5c dc ff - ]; + ]; + partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { - label = "nor"; - reg = <0x00000000 DT_SIZE_M(4)>; + reg = <0x00000000 DT_SIZE_M(64)>; }; }; };