-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Introduce the nrf54lm20bsim simulated target #92390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aescolar
wants to merge
5
commits into
zephyrproject-rtos:main
Choose a base branch
from
aescolar:nrf54lm20bsim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
32b9952
soc: Add SOC_COMPATIBLE_NRF54LM20* options
aescolar 233206e
boards nrf_bsim: Add a new nrf54lm20bsim target
aescolar 194cf6b
tests drivers counter: Enable for nrf54lm20bsim_nrf54lm20_cpuapp
aescolar 4f7515b
soc/nordic/nrf54l: Set SOC_COMPATIBLE for 54L CPUAPP targets
aescolar ccac78b
tests/drivers/uart/: Add overlays for the nrf54lm20bsim
aescolar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,5 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_NRF54LM20BSIM | ||
select SOC_POSIX |
This file contains hidden or 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 hidden or 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
144 changes: 144 additions & 0 deletions
144
boards/native/nrf_bsim/nrf54lm20bsim_nrf54lm20a_cpuapp.dts
This file contains hidden or 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,144 @@ | ||
/* | ||
* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <mem.h> | ||
#include <arm/nordic/nrf54lm20a_enga_cpuapp.dtsi> | ||
#include <../boards/nordic/nrf54lm20dk/nrf54lm20dk_nrf54lm20a-pinctrl.dtsi> | ||
|
||
/ { | ||
model = "Nordic NRF54LM20 BSIM NRF54LM20A Application MCU"; | ||
compatible = "bsim,nrf54lm20-bsim-nrf54lm20a-cpuapp", "bsim,nrf54"; | ||
|
||
chosen { | ||
zephyr,console = &uart20; | ||
zephyr,entropy = &rng; | ||
zephyr,bt-c2h-uart = &uart20; | ||
zephyr,flash-controller = &rram_controller; | ||
zephyr,flash = &cpuapp_rram; | ||
}; | ||
|
||
/delete-node/ cpus; | ||
/delete-node/ sw-pwm; | ||
|
||
soc { | ||
/delete-node/ memory@20000000; | ||
/delete-node/ memory@20067c00; | ||
|
||
peripheral@50000000 { | ||
/delete-node/ vpr@4c000; | ||
/delete-node/ interrupt-controller@f0000000; | ||
/delete-node/spi@4d000; | ||
/delete-node/usbhs@5a000; | ||
/delete-node/i2c@c6000; | ||
/delete-node/spi@c6000; | ||
/delete-node/i2c@c7000; | ||
/delete-node/spi@c7000; | ||
/delete-node/i2c@c8000; | ||
/delete-node/spi@c8000; | ||
/delete-node/pdm@d0000; | ||
/delete-node/pdm@d1000; | ||
/delete-node/pwm@d2000; | ||
/delete-node/pwm@d3000; | ||
/delete-node/pwm@d4000; | ||
/delete-node/adc@d5000; | ||
/delete-node/nfct@d6000; | ||
/delete-node/qdec@e0000; | ||
/delete-node/qdec@e1000; | ||
/delete-node/tdm@e8000; | ||
/delete-node/i2c@ed000; | ||
/delete-node/spi@ed000; | ||
/delete-node/i2c@ee000; | ||
/delete-node/spi@ee000; | ||
/delete-node/i2c@104000; | ||
/delete-node/spi@104000; | ||
/delete-node/comparator@106000; | ||
/delete-node/watchdog@108000; | ||
/delete-node/watchdog@109000; | ||
/delete-node/regulator@120000; | ||
}; | ||
}; | ||
|
||
rng: rng { | ||
status = "okay"; | ||
compatible = "nordic,nrf-cracen-ctrdrbg"; | ||
}; | ||
|
||
psa_rng: psa-rng { | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
&grtc { | ||
owned-channels = <0 1 2 3 4 5 6 7 8 9 10 11>; | ||
/* Channels 7-11 reserved for Zero Latency IRQs, 3-4 for FLPR */ | ||
child-owned-channels = <3 4 7 8 9 10 11>; | ||
status = "okay"; | ||
}; | ||
|
||
&cpuapp_rram { | ||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
storage_partition: partition@0 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and 87, fix all instances in whole PR |
||
label = "storage"; | ||
reg = <0x0 DT_SIZE_K(500)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart20 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart20_default>; | ||
pinctrl-1 = <&uart20_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&uart30 { | ||
current-speed = <115200>; | ||
pinctrl-0 = <&uart30_default>; | ||
pinctrl-1 = <&uart30_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio1 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio2 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote20 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote30 { | ||
status = "okay"; | ||
}; | ||
|
||
&temp { | ||
status = "okay"; | ||
}; | ||
|
||
&radio { | ||
status = "okay"; | ||
/* These features are not yet supported by the RADIO model */ | ||
/delete-property/ dfe-supported; | ||
/delete-property/ cs-supported; | ||
}; | ||
|
||
&clock { | ||
status = "okay"; | ||
}; |
17 changes: 17 additions & 0 deletions
17
boards/native/nrf_bsim/nrf54lm20bsim_nrf54lm20a_cpuapp.yaml
This file contains hidden or 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 @@ | ||
identifier: nrf54lm20bsim/nrf54lm20a/cpuapp | ||
name: NRF54LM20 BabbleSim - Application Core target | ||
type: native | ||
arch: posix | ||
simulation: | ||
- name: native | ||
env: | ||
- BSIM_OUT_PATH | ||
toolchain: | ||
- zephyr | ||
supported: | ||
- counter | ||
- gpio | ||
testing: | ||
ignore_tags: | ||
- modem | ||
- bsim_skip_CI |
8 changes: 8 additions & 0 deletions
8
boards/native/nrf_bsim/nrf54lm20bsim_nrf54lm20a_cpuapp_defconfig
This file contains hidden or 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,8 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
|
||
CONFIG_CONSOLE=y | ||
CONFIG_NO_OPTIMIZATIONS=y | ||
|
||
# Start SYSCOUNTER on driver init | ||
CONFIG_NRF_GRTC_START_SYSCOUNTER=y |
This file contains hidden or 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 hidden or 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 hidden or 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
3 changes: 3 additions & 0 deletions
3
tests/drivers/counter/counter_basic_api/boards/nrf54lm20bsim_nrf54lm20a_cpuapp.overlay
This file contains hidden or 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,3 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
#include "nrf54lm20dk_nrf54lm20_common.dtsi" |
3 changes: 3 additions & 0 deletions
3
tests/drivers/uart/uart_async_api/boards/nrf54lm20bsim_nrf54lm20a_cpuapp.overlay
This file contains hidden or 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,3 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
#include "nrf54lm20dk_nrf54lm20a_cpuapp.overlay" |
7 changes: 7 additions & 0 deletions
7
tests/drivers/uart/uart_mix_fifo_poll/boards/nrf54lm20bsim_nrf54lm20a_cpuapp.overlay
This file contains hidden or 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 ASA | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "nrf54lm20dk_nrf54lm20a_cpuapp.overlay" |
This file contains hidden or 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
3 changes: 3 additions & 0 deletions
3
tests/drivers/uart/uart_pm/boards/nrf54lm20bsim_nrf54lm20a_cpuapp.overlay
This file contains hidden or 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,3 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
#include "nrf54lm20dk_nrf54lm20a_cpuapp.overlay" |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline on line 31