Skip to content

Commit 1970b8f

Browse files
committed
snippets: sdp: mspi: add nRF54L15 DK external flash
Add nRF54L15 DK external flash as a MSPI device. Signed-off-by: Magdalena Pastula <[email protected]>
1 parent 9f94311 commit 1970b8f

File tree

2 files changed

+49
-15
lines changed

2 files changed

+49
-15
lines changed

snippets/sdp/mspi/app.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ CONFIG_MSPI=y
22
CONFIG_MBOX=y
33
CONFIG_IPC_SERVICE=y
44
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
5+
CONFIG_CONSOLE=y
6+
CONFIG_UART_CONSOLE=y
7+
CONFIG_STDOUT_CONSOLE=y
8+
CONFIG_PRINTK=y
9+
CONFIG_EARLY_CONSOLE=y
10+
11+
# additional compiler flags
12+
CONFIG_COMPILER_OPT="-fshort-enums"

snippets/sdp/mspi/soc/nrf54l15_cpuapp.overlay

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,31 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
7+
/ {
88
soc {
99
reserved-memory {
1010
#address-cells = <1>;
1111
#size-cells = <1>;
1212

13-
cpuflpr_code_partition: image@17a000 {
14-
reg = <0x17a000 DT_SIZE_K(12)>;
13+
cpuflpr_code_partition: image@178000 {
14+
reg = <0x178000 DT_SIZE_K(20)>;
1515
};
1616

17-
sram_rx: memory@2003c000 {
18-
reg = <0x2003c000 0x0800>;
17+
sram_rx: memory@2003a000 {
18+
reg = <0x2003a000 0x0800>;
1919
};
2020

21-
sram_tx: memory@2003c800 {
22-
reg = <0x2003c800 0x0800>;
21+
sram_tx: memory@2003a800 {
22+
reg = <0x2003a800 0x0800>;
2323
};
2424
};
2525

26-
27-
cpuflpr_sram_code_data: memory@2003d000 {
26+
cpuflpr_sram_code_data: memory@2003b000 {
2827
compatible = "mmio-sram";
29-
reg = <0x2003d000 DT_SIZE_K(12)>;
28+
reg = <0x2003b000 DT_SIZE_K(20)>;
3029
#address-cells = <1>;
3130
#size-cells = <1>;
32-
ranges = <0x0 0x2003d000 0x3000>;
31+
ranges = <0x0 0x2003b000 0x5000>;
3332
};
3433
};
3534

@@ -46,12 +45,12 @@
4645
};
4746

4847
&cpuapp_rram {
49-
reg = <0x0 DT_SIZE_K(1512)>;
48+
reg = <0x0 DT_SIZE_K(1504)>;
5049
};
5150

5251
&cpuapp_sram {
53-
reg = <0x20000000 DT_SIZE_K(244)>;
54-
ranges = <0x0 0x20000000 0x3d000>;
52+
reg = <0x20000000 DT_SIZE_K(232)>;
53+
ranges = <0x0 0x20000000 0x3a000>;
5554
};
5655

5756
&cpuflpr_vpr {
@@ -80,7 +79,7 @@
8079
<NRF_PSEL(SDP_MSPI_DQ2, 2, 3)>,
8180
<NRF_PSEL(SDP_MSPI_DQ3, 2, 0)>,
8281
<NRF_PSEL(SDP_MSPI_CS0, 2, 5)>;
83-
nordic,drive-mode = <NRF_DRIVE_E0E1>;
82+
nordic,drive-mode = <NRF_DRIVE_S0S1>;
8483
};
8584
};
8685
/omit-if-no-ref/ sdp_mspi_sleep: sdp_mspi_sleep {
@@ -96,10 +95,37 @@
9695
};
9796
};
9897

98+
/delete-node/ &mx25r64;
99+
99100
&sdp_mspi {
100101
clock-frequency = <DT_FREQ_M(48)>;
101102
pinctrl-0 = <&sdp_mspi_default>;
102103
pinctrl-1 = <&sdp_mspi_sleep>;
103104
pinctrl-names = "default", "sleep";
104105
status = "okay";
106+
mx25r64: mx25r6435f@0 {
107+
compatible = "jedec,mspi-nor", "zephyr,mspi-emul-device";
108+
status = "okay";
109+
reg = <0>;
110+
jedec-id = [c2 28 17];
111+
sfdp-bfp = [
112+
e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb
113+
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
114+
10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 48 44
115+
30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
116+
];
117+
size = <67108864>;
118+
has-dpd;
119+
t-enter-dpd = <10000>;
120+
t-exit-dpd = <35000>;
121+
reset-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
122+
123+
mspi-max-frequency = <DT_FREQ_M(1)>;
124+
mspi-io-mode = "MSPI_IO_MODE_SINGLE";
125+
mspi-data-rate = "MSPI_DATA_RATE_SINGLE";
126+
mspi-hardware-ce-num = <0>;
127+
mspi-cpp-mode = "MSPI_CPP_MODE_0";
128+
mspi-endian = "MSPI_BIG_ENDIAN";
129+
mspi-ce-polarity = "MSPI_CE_ACTIVE_LOW";
130+
};
105131
};

0 commit comments

Comments
 (0)