diff --git a/tests/drivers/flash/stm32/boards/stm32h735g_disco.conf b/tests/drivers/flash/stm32/boards/stm32h735g_disco.conf new file mode 100644 index 00000000000..450fdb4f6ac --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h735g_disco.conf @@ -0,0 +1 @@ +CONFIG_FLASH_STM32_QSPI=n diff --git a/tests/drivers/flash/stm32/boards/stm32h735g_disco.overlay b/tests/drivers/flash/stm32/boards/stm32h735g_disco.overlay new file mode 100644 index 00000000000..2534926bd51 --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h735g_disco.overlay @@ -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)>; + }; + }; +}; diff --git a/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.conf b/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.conf new file mode 100644 index 00000000000..450fdb4f6ac --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.conf @@ -0,0 +1 @@ +CONFIG_FLASH_STM32_QSPI=n diff --git a/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.overlay b/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.overlay new file mode 100644 index 00000000000..647b8f96fcd --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.overlay @@ -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)>; + }; + }; +}; diff --git a/tests/drivers/flash/stm32/boards/stm32h750b_dk.conf b/tests/drivers/flash/stm32/boards/stm32h750b_dk.conf new file mode 100644 index 00000000000..450fdb4f6ac --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h750b_dk.conf @@ -0,0 +1 @@ +CONFIG_FLASH_STM32_QSPI=n diff --git a/tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay b/tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay new file mode 100644 index 00000000000..ad7464fb622 --- /dev/null +++ b/tests/drivers/flash/stm32/boards/stm32h750b_dk.overlay @@ -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)>; + }; + }; +}; diff --git a/tests/drivers/flash/stm32/testcase.yaml b/tests/drivers/flash/stm32/testcase.yaml index 275c8aad726..9a5605ac3f6 100644 --- a/tests/drivers/flash/stm32/testcase.yaml +++ b/tests/drivers/flash/stm32/testcase.yaml @@ -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")