-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snippets: emulated-gpio: add icbmsg backend for eGPIO
Add icbmsg as possible backend for eGPIO. Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
- Loading branch information
1 parent
a2a7797
commit 7323ad8
Showing
4 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
snippets/emulated-gpio/icbmsg/boards/nrf54l15dk_nrf54l15_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_GPIO_NRFE_EGPIO_BACKEND_ICBMSG=y |
75 changes: 75 additions & 0 deletions
75
snippets/emulated-gpio/icbmsg/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* 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@165000 { | ||
/* FLPR core code partition */ | ||
reg = <0x165000 DT_SIZE_K(96)>; | ||
}; | ||
|
||
sram_rx: memory@20018000 { | ||
reg = <0x20018000 0x0800>; | ||
}; | ||
|
||
sram_tx: memory@20020000 { | ||
reg = <0x20020000 0x0800>; | ||
}; | ||
}; | ||
|
||
|
||
cpuflpr_sram_code_data: memory@20028000 { | ||
compatible = "mmio-sram"; | ||
reg = <0x20028000 DT_SIZE_K(96)>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x0 0x20028000 0x18000>; | ||
}; | ||
}; | ||
|
||
ipc { | ||
ipc0: ipc0 { | ||
compatible = "zephyr,ipc-icbmsg"; | ||
tx-region = <&sram_tx>; | ||
rx-region = <&sram_rx>; | ||
tx-blocks = <16>; | ||
rx-blocks = <18>; | ||
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 21>; | ||
mbox-names = "rx", "tx"; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
&cpuapp_sram { | ||
reg = <0x20000000 DT_SIZE_K(160)>; | ||
ranges = <0x0 0x20000000 0x28000>; | ||
}; | ||
|
||
&cpuflpr_vpr { | ||
execution-memory = <&cpuflpr_sram_code_data>; | ||
source-memory = <&cpuflpr_code_partition>; | ||
}; | ||
|
||
&gpio2 { | ||
status = "disabled"; | ||
}; | ||
|
||
&cpuapp_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
status = "okay"; | ||
}; | ||
|
||
&egpio { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&cpuflpr_vpr { | ||
status = "okay"; | ||
|
||
egpio: gpio { | ||
compatible = "nordic,nrf-egpio"; | ||
gpio-controller; | ||
#gpio-cells = <0x2>; | ||
ngpios = <0x10>; | ||
status = "disabled"; | ||
port = <0x2>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
name: emulated-gpio-icbmsg | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: emulated-gpio.overlay | ||
|
||
boards: | ||
nrf54l15dk/nrf54l15/cpuapp: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay | ||
EXTRA_CONF_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.conf |