Skip to content

Commit 97855af

Browse files
FRASTMkartben
authored andcommitted
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>
1 parent 6e34acc commit 97855af

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set last blocks of the code flash as storage partition */
15+
storage_partition: partition@1e0000 {
16+
label = "storage";
17+
reg = <0x1e000 DT_SIZE_K(8)>;
18+
};
19+
};
20+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@1e000 {
16+
label = "storage";
17+
reg = <0x1e000 DT_SIZE_K(8)>;
18+
};
19+
};
20+
};

0 commit comments

Comments
 (0)