forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: mbox: Update mbox sample to work with nRF54L15
Update mbox sample configuration to work with production board and SoC. Signed-off-by: Karol Lasończyk <[email protected]>
- Loading branch information
1 parent
7b9b00c
commit 070b1a4
Showing
9 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
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
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
20 changes: 20 additions & 0 deletions
20
samples/drivers/mbox/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,20 @@ | ||
/* | ||
* Copyright 2024 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuapp_vevif_rx 20>, <&cpuapp_vevif_tx 21>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuapp_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
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
24 changes: 24 additions & 0 deletions
24
samples/drivers/mbox/remote/boards/nrf54l15dk_nrf54l15_cpuflpr.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,24 @@ | ||
/* | ||
* Copyright 2024 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&cpuflpr_vevif_rx 21>, <&cpuflpr_vevif_tx 20>; | ||
mbox-names = "rx", "tx"; | ||
}; | ||
}; | ||
|
||
&cpuflpr_vevif_rx { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuflpr_vevif_tx { | ||
status = "okay"; | ||
}; | ||
|
||
&uart30 { | ||
/delete-property/ hw-flow-control; | ||
}; |
29 changes: 29 additions & 0 deletions
29
snippets/nordic-flpr-xip/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,29 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
soc { | ||
reserved-memory { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
cpuflpr_code_partition: image@165000 { | ||
/* FLPR core code partition */ | ||
reg = <0x165000 DT_SIZE_K(96)>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart30 { | ||
status = "reserved"; | ||
}; | ||
|
||
&cpuflpr_vpr { | ||
execution-memory = <&cpuflpr_code_partition>; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
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
43 changes: 43 additions & 0 deletions
43
snippets/nordic-flpr/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,43 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
soc { | ||
reserved-memory { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
cpuflpr_code_partition: image@165000 { | ||
/* FLPR core code partition */ | ||
reg = <0x165000 DT_SIZE_K(96)>; | ||
}; | ||
}; | ||
|
||
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>; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart30 { | ||
status = "reserved"; | ||
}; | ||
|
||
&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>; | ||
}; | ||
|
||
&cpuapp_vevif_tx { | ||
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