boards: arm: stm32 u585 disco kit set flash partition

Enables the flash controller node for the stm32u585 disco kit
with an arbitrary definition of the board partitions
to fill the 1MB bank1 of the flash memory,
for the secure and non-secure targets.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2022-02-04 12:24:45 +01:00 committed by Marti Bolivar
commit 03231fba95
2 changed files with 39 additions and 3 deletions

View file

@ -16,6 +16,7 @@
zephyr,shell-uart = &usart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};
aliases {
@ -24,3 +25,38 @@
sw0 = &user_button;
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/*
* Following flash partition is dedicated to the use of b_u585i_iot02a
* with TZEN=0 (so w/o TFM).
* Set the partitions with first MB to make use of the whole Bank1
*/
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 0x68000>;
};
slot1_partition: partition@78000 {
label = "image-1";
reg = <0x00078000 0x68000>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 0x10000>;
};
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 0x10000>;
};
};
};

View file

@ -51,16 +51,16 @@
};
/* Non-secure image primary slot */
slot1_partition: partition@74000 {
label = "image-1";
label = "image-1-nonsecure";
reg = <0x00074000 0x00080000>;
};
/*
* The flash starting at 0xEA000 and ending at
* 0xEB000 is reserved for the application.
*/
storage_partition: partition@EA000 {
storage_partition: partition@ea000 {
label = "storage";
reg = <0x000EA000 0x00001000>;
reg = <0x000ea000 0x00001000>;
};
};
};