tests: drivers: flash RDP testing on stm32h7

Add the configuration to run the testcase
with READOUT_PROTECTION (RDP) on stm32h7 disco kits

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-09-02 13:50:30 +02:00 committed by Benjamin Cabé
commit df86315a41
7 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_FLASH_STM32_QSPI=n

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 4KiB of flash for storage_partition. */
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 DT_SIZE_K(4)>;
};
};
};

View file

@ -0,0 +1 @@
CONFIG_FLASH_STM32_QSPI=n

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
/delete-node/ &storage_partition;
&quadspi {
status = "disabled";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 4KiB of flash for storage_partition. */
storage_partition: partition@1f000 {
label = "storage";
reg = <0x0001f000 DT_SIZE_K(4)>;
};
};
};

View file

@ -0,0 +1 @@
CONFIG_FLASH_STM32_QSPI=n

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 4KiB of flash for storage_partition. */
storage_partition: partition@1f000 {
label = "storage";
reg = <0x0001f000 DT_SIZE_K(4)>;
};
};
};

View file

@ -42,3 +42,12 @@ tests:
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
filter: dt_compat_enabled("st,stm32f7-flash-controller") and
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
drivers.flash.stm32.h7:
platform_allow:
- stm32h735g_disco
- stm32h750b_dk
- stm32h745i_disco/stm32h745xx/m7
extra_configs:
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
filter: dt_compat_enabled("st,stm32h7-flash-controller") and
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")