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 <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2025-05-13 14:06:39 +02:00 committed by Benjamin Cabé
parent 6e34acc4e2
commit 97855afc23
2 changed files with 40 additions and 0 deletions

View File

@ -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)>;
};
};
};

View File

@ -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)>;
};
};
};