From 97855afc2311966ff798bd64083442189cf64b97 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Tue, 13 May 2025 14:06:39 +0200 Subject: [PATCH] tests: drivers: flash common testing in non SPI-NOR Set an overlay to build tests/drivers/flash/common/ drivers.flash.common.disable_spi_nor when the SPI NOR exists but test does not use it Signed-off-by: Francois Ramu --- .../flash/common/boards/fk7b0m1_vbt6.overlay | 20 +++++++++++++++++++ .../common/boards/mini_stm32h7b0.overlay | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay create mode 100644 tests/drivers/flash/common/boards/mini_stm32h7b0.overlay diff --git a/tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay b/tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay new file mode 100644 index 00000000000..6373e977575 --- /dev/null +++ b/tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2025 STMicroelectronics + * SPDX-License-Identifier: Apache-2.0 + */ + +/delete-node/ &storage_partition; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* Set last blocks of the code flash as storage partition */ + storage_partition: partition@1e0000 { + label = "storage"; + reg = <0x1e000 DT_SIZE_K(8)>; + }; + }; +}; diff --git a/tests/drivers/flash/common/boards/mini_stm32h7b0.overlay b/tests/drivers/flash/common/boards/mini_stm32h7b0.overlay new file mode 100644 index 00000000000..a9aec960bfa --- /dev/null +++ b/tests/drivers/flash/common/boards/mini_stm32h7b0.overlay @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2025 STMicroelectronics + * SPDX-License-Identifier: Apache-2.0 + */ + +/delete-node/ &storage_partition; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* Set 2 last blocks of the code flash as storage partition */ + storage_partition: partition@1e000 { + label = "storage"; + reg = <0x1e000 DT_SIZE_K(8)>; + }; + }; +};