Skip to content

Commit 6866703

Browse files
nordic-bamirlubos
authored andcommitted
[nrf fromtree] tests: drivers: flash: Add MSPI flash test in single I/O mode
Test external MSPI flash in single I/O mode Signed-off-by: Bartosz Miller <[email protected]> (cherry picked from commit b78be6b)
1 parent a07f73b commit 6866703

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
9+
/delete-node/ exmif_default;
10+
/delete-node/ exmif_sleep;
11+
12+
exmif_default: exmif_default {
13+
group1 {
14+
psels = <NRF_PSEL(EXMIF_CK, 6, 0)>,
15+
<NRF_PSEL(EXMIF_RWDS, 6, 2)>,
16+
<NRF_PSEL(EXMIF_DQ0, 6, 7)>,
17+
<NRF_PSEL(EXMIF_DQ1, 6, 5)>,
18+
<NRF_PSEL(EXMIF_DQ2, 6, 10)>,
19+
<NRF_PSEL(EXMIF_DQ3, 6, 9)>,
20+
<NRF_PSEL(EXMIF_DQ4, 6, 11)>,
21+
<NRF_PSEL(EXMIF_DQ5, 6, 8)>,
22+
<NRF_PSEL(EXMIF_DQ6, 6, 6)>,
23+
<NRF_PSEL(EXMIF_DQ7, 6, 4)>;
24+
nordic,drive-mode = <NRF_DRIVE_H0H1>;
25+
};
26+
};
27+
28+
exmif_sleep: exmif_sleep {
29+
group1 {
30+
low-power-enable;
31+
psels = <NRF_PSEL(EXMIF_CK, 6, 0)>,
32+
<NRF_PSEL(EXMIF_RWDS, 6, 2)>,
33+
<NRF_PSEL(EXMIF_DQ0, 6, 7)>,
34+
<NRF_PSEL(EXMIF_DQ1, 6, 5)>,
35+
<NRF_PSEL(EXMIF_DQ2, 6, 10)>,
36+
<NRF_PSEL(EXMIF_DQ3, 6, 9)>,
37+
<NRF_PSEL(EXMIF_DQ4, 6, 11)>,
38+
<NRF_PSEL(EXMIF_DQ5, 6, 8)>,
39+
<NRF_PSEL(EXMIF_DQ6, 6, 6)>,
40+
<NRF_PSEL(EXMIF_DQ7, 6, 4)>;
41+
};
42+
};
43+
44+
};
45+
46+
&gpio6 {
47+
status = "okay";
48+
};
49+
50+
&exmif {
51+
status = "okay";
52+
pinctrl-0 = <&exmif_default>;
53+
pinctrl-1 = <&exmif_sleep>;
54+
pinctrl-names = "default", "sleep";
55+
ce-gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
56+
};
57+
58+
&mx25uw63 {
59+
status = "okay";
60+
mspi-max-frequency = <DT_FREQ_M(50)>;
61+
mspi-io-mode = "MSPI_IO_MODE_SINGLE";
62+
};

tests/drivers/flash/common/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,8 @@ tests:
151151
extra_args:
152152
- DTC_OVERLAY_FILE="./boards/${BOARD}_ospi_b_nor.overlay"
153153
- CONF_FILE="./prj.conf ./boards/${BOARD}_ospi_b_nor.conf"
154+
drivers.flash.common.mspi_single_io:
155+
platform_allow:
156+
- nrf54h20dk/nrf54h20/cpuapp
157+
extra_args:
158+
- EXTRA_DTC_OVERLAY_FILE=boards/mx25uw63_single_io.overlay

0 commit comments

Comments
 (0)