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:
parent
3696ee06e5
commit
df86315a41
7 changed files with 75 additions and 0 deletions
1
tests/drivers/flash/stm32/boards/stm32h735g_disco.conf
Normal file
1
tests/drivers/flash/stm32/boards/stm32h735g_disco.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_FLASH_STM32_QSPI=n
|
19
tests/drivers/flash/stm32/boards/stm32h735g_disco.overlay
Normal file
19
tests/drivers/flash/stm32/boards/stm32h735g_disco.overlay
Normal 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)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_FLASH_STM32_QSPI=n
|
|
@ -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)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
1
tests/drivers/flash/stm32/boards/stm32h750b_dk.conf
Normal file
1
tests/drivers/flash/stm32/boards/stm32h750b_dk.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_FLASH_STM32_QSPI=n
|
19
tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay
Normal file
19
tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay
Normal 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)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -42,3 +42,12 @@ tests:
|
||||||
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
|
- CONFIG_FLASH_STM32_READOUT_PROTECTION=y
|
||||||
filter: dt_compat_enabled("st,stm32f7-flash-controller") and
|
filter: dt_compat_enabled("st,stm32f7-flash-controller") and
|
||||||
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions")
|
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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue