Skip to content

Commit

Permalink
snippets: sdp: mspi: Add SDP MSPI snippet files
Browse files Browse the repository at this point in the history
Add new snippet files for SDP MSPI.

Signed-off-by: Jakub Zymelka <[email protected]>
  • Loading branch information
jaz1-nordic committed Nov 18, 2024
1 parent bc19a69 commit bb162fb
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snippets/sdp/mspi/app.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_MSPI=y
CONFIG_MBOX=y
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
3 changes: 3 additions & 0 deletions snippets/sdp/mspi/flpr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_MBOX=y
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
15 changes: 15 additions & 0 deletions snippets/sdp/mspi/sdp-mspi-app.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&cpuflpr_vpr {
status = "okay";

sdp_mspi: sdp_mspi@5004c000 {
compatible = "nordic,nrfe-mspi-controller";
#address-cells = <1>;
#size-cells = <0>;
};
};
19 changes: 19 additions & 0 deletions snippets/sdp/mspi/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

name: sdp-mspi

boards:
/.*/cpuapp/:
append:
EXTRA_DTC_OVERLAY_FILE: sdp-mspi-app.overlay
EXTRA_CONF_FILE: app.conf
/.*/cpuflpr/:
append:
EXTRA_CONF_FILE: flpr.conf
/.*/nrf54l15/cpuapp/:
append:
EXTRA_DTC_OVERLAY_FILE: soc/nrf54l15_cpuapp.overlay
94 changes: 94 additions & 0 deletions snippets/sdp/mspi/soc/nrf54l15_cpuapp.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/ {
soc {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;

cpuflpr_code_partition: image@17a000 {
reg = <0x17a000 DT_SIZE_K(12)>;
};

sram_rx: memory@2003c000 {
reg = <0x2003c000 0x0800>;
};

sram_tx: memory@2003c800 {
reg = <0x2003c800 0x0800>;
};
};


cpuflpr_sram_code_data: memory@2003d000 {
compatible = "mmio-sram";
reg = <0x2003d000 DT_SIZE_K(12)>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x2003d000 0x3000>;
};
};

ipc {
ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 16>;
mbox-names = "rx", "tx";
status = "okay";
};
};
};

&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1512)>;
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(244)>;
ranges = <0x0 0x20000000 0x3d000>;
};

&cpuflpr_vpr {
execution-memory = <&cpuflpr_sram_code_data>;
source-memory = <&cpuflpr_code_partition>;
};

&gpio2 {
status = "okay";
};

&cpuapp_vevif_rx {
status = "okay";
};

&cpuapp_vevif_tx {
status = "okay";
};

&pinctrl {
/omit-if-no-ref/ sdp_mspi_default: sdp_mspi_default {
group1 {
psels = <NRF_PSEL(SDP_MSPI_SCK, 2, 1)>,
<NRF_PSEL(SDP_MSPI_DQ0, 2, 2)>,
<NRF_PSEL(SDP_MSPI_DQ1, 2, 4)>,
<NRF_PSEL(SDP_MSPI_DQ2, 2, 3)>,
<NRF_PSEL(SDP_MSPI_DQ3, 2, 0)>;
nordic,drive-mode = <NRF_DRIVE_H0H1>;
};
};
};

&sdp_mspi {
reg = <0x5004c000 0x100>;
clock-frequency = <DT_FREQ_M(48)>;
pinctrl-0 = <&sdp_mspi_default>;
pinctrl-names = "default";
ce-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
status = "okay";
};

0 comments on commit bb162fb

Please sign in to comment.