Skip to content

Commit 80e6885

Browse files
committed
snippets: sdp: mspi: Add SDP MSPI snippet files
Add new snippet files for SDP MSPI. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent b807b06 commit 80e6885

File tree

4 files changed

+140
-0
lines changed

4 files changed

+140
-0
lines changed

snippets/sdp/mspi/app.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_MSPI=y
2+
CONFIG_MBOX=y
3+
CONFIG_IPC_SERVICE=y
4+
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&cpuflpr_vpr {
8+
status = "okay";
9+
10+
sdp_mspi: sdp_mspi {
11+
compatible = "nordic,nrfe-mspi-controller";
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
};
15+
};

snippets/sdp/mspi/snippet.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
name: sdp-mspi
8+
9+
boards:
10+
/.*/cpuapp/:
11+
append:
12+
EXTRA_DTC_OVERLAY_FILE: sdp-mspi-app.overlay
13+
EXTRA_CONF_FILE: app.conf
14+
/.*/nrf54l15/cpuapp/:
15+
append:
16+
EXTRA_DTC_OVERLAY_FILE: soc/nrf54l15_cpuapp.overlay
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
soc {
9+
reserved-memory {
10+
#address-cells = <1>;
11+
#size-cells = <1>;
12+
13+
cpuflpr_code_partition: image@17a000 {
14+
reg = <0x17a000 DT_SIZE_K(12)>;
15+
};
16+
17+
sram_rx: memory@2003c000 {
18+
reg = <0x2003c000 0x0800>;
19+
};
20+
21+
sram_tx: memory@2003c800 {
22+
reg = <0x2003c800 0x0800>;
23+
};
24+
};
25+
26+
27+
cpuflpr_sram_code_data: memory@2003d000 {
28+
compatible = "mmio-sram";
29+
reg = <0x2003d000 DT_SIZE_K(12)>;
30+
#address-cells = <1>;
31+
#size-cells = <1>;
32+
ranges = <0x0 0x2003d000 0x3000>;
33+
};
34+
};
35+
36+
ipc {
37+
ipc0: ipc0 {
38+
compatible = "zephyr,ipc-icmsg";
39+
tx-region = <&sram_tx>;
40+
rx-region = <&sram_rx>;
41+
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 16>;
42+
mbox-names = "rx", "tx";
43+
status = "okay";
44+
};
45+
};
46+
};
47+
48+
&cpuapp_rram {
49+
reg = <0x0 DT_SIZE_K(1512)>;
50+
};
51+
52+
&cpuapp_sram {
53+
reg = <0x20000000 DT_SIZE_K(244)>;
54+
ranges = <0x0 0x20000000 0x3d000>;
55+
};
56+
57+
&cpuflpr_vpr {
58+
execution-memory = <&cpuflpr_sram_code_data>;
59+
source-memory = <&cpuflpr_code_partition>;
60+
};
61+
62+
&gpio2 {
63+
status = "okay";
64+
};
65+
66+
&cpuapp_vevif_rx {
67+
status = "okay";
68+
};
69+
70+
&cpuapp_vevif_tx {
71+
status = "okay";
72+
};
73+
74+
&pinctrl {
75+
/omit-if-no-ref/ sdp_mspi_default: sdp_mspi_default {
76+
group1 {
77+
psels = <NRF_PSEL(SDP_MSPI_SCK, 2, 1)>,
78+
<NRF_PSEL(SDP_MSPI_DQ0, 2, 2)>,
79+
<NRF_PSEL(SDP_MSPI_DQ1, 2, 4)>,
80+
<NRF_PSEL(SDP_MSPI_DQ2, 2, 3)>,
81+
<NRF_PSEL(SDP_MSPI_DQ3, 2, 0)>,
82+
<NRF_PSEL(SDP_MSPI_CS0, 2, 5)>;
83+
nordic,drive-mode = <NRF_DRIVE_E0E1>;
84+
};
85+
};
86+
/omit-if-no-ref/ sdp_mspi_sleep: sdp_mspi_sleep {
87+
group1 {
88+
psels = <NRF_PSEL(SDP_MSPI_SCK, 2, 1)>,
89+
<NRF_PSEL(SDP_MSPI_DQ0, 2, 2)>,
90+
<NRF_PSEL(SDP_MSPI_DQ1, 2, 4)>,
91+
<NRF_PSEL(SDP_MSPI_DQ2, 2, 3)>,
92+
<NRF_PSEL(SDP_MSPI_DQ3, 2, 0)>,
93+
<NRF_PSEL(SDP_MSPI_CS0, 2, 5)>;
94+
low-power-enable;
95+
};
96+
};
97+
};
98+
99+
&sdp_mspi {
100+
clock-frequency = <DT_FREQ_M(48)>;
101+
pinctrl-0 = <&sdp_mspi_default>;
102+
pinctrl-1 = <&sdp_mspi_sleep>;
103+
pinctrl-names = "default", "sleep";
104+
status = "okay";
105+
};

0 commit comments

Comments
 (0)