-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add support for nRF54LM20A/ns #24449
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
degjorva
wants to merge
4
commits into
nrfconnect:main
Choose a base branch
from
degjorva:lm20-tfm-final
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
4 commits
Select commit
Hold shift + click to select a range
fa9bfb2
modules: trusted-firmware-m: Add support for TF-m to nRF54LM20a
degjorva ecbc964
samples: tfm: add support for nRF54LM20A/ns to tfm samples
degjorva f4b0c18
samples: crypto: add support for nRF54LM20A/ns to samples
degjorva aafe446
scripts: quarantine_zephyr: Disable unsupported kernel test
degjorva 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
Some comments aren't visible on the classic Files Changed page.
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
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
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
44 changes: 44 additions & 0 deletions
44
modules/trusted-firmware-m/tfm_boards/nrf54lm20a_cpuapp/CMakeLists.txt
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,44 @@ | ||
# | ||
# Copyright (c) 2025, Nordic Semiconductor ASA. | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
set(NRF_BOARD_SELECTED True) | ||
|
||
add_subdirectory(${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/common/nrf54lm20a | ||
nrf54lm20a) | ||
|
||
add_subdirectory(.. tfm_board) | ||
|
||
target_include_directories(platform_s | ||
PUBLIC | ||
${ZEPHYR_NRF_MODULE_DIR}/subsys/nrf_security/src/drivers/cracen/cracenpsa/include | ||
) | ||
|
||
target_sources(platform_s | ||
PRIVATE | ||
${ZEPHYR_BASE}/soc/nordic/nrf54l/soc.c | ||
) | ||
|
||
target_include_directories(platform_s | ||
PRIVATE | ||
${ZEPHYR_BASE}/modules/cmsis/ | ||
${ZEPHYR_BASE}/soc/nordic/nrf54l | ||
${ZEPHYR_BASE}/soc/nordic/common | ||
) | ||
|
||
install(FILES ${CMAKE_CURRENT_LIST_DIR}/ns/cpuarch_ns.cmake | ||
DESTINATION ${INSTALL_PLATFORM_NS_DIR} | ||
RENAME cpuarch.cmake) | ||
|
||
install(FILES config.cmake | ||
DESTINATION ${INSTALL_PLATFORM_NS_DIR}) | ||
|
||
install(FILES ../common/config.cmake | ||
DESTINATION ${INSTALL_PLATFORM_NS_DIR}/../common/) | ||
|
||
install(DIRECTORY | ||
${Trusted\ Firmware\ M_SOURCE_DIR}/platform/ext/target/nordic_nrf/nrf54lm20dk_nrf54lm20a_cpuapp/tests | ||
DESTINATION ${INSTALL_PLATFORM_NS_DIR} | ||
) |
23 changes: 23 additions & 0 deletions
23
modules/trusted-firmware-m/tfm_boards/nrf54lm20a_cpuapp/config.cmake
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,23 @@ | ||
#------------------------------------------------------------------------------- | ||
# Copyright (c) 2025, Nordic Semiconductor ASA. | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
#------------------------------------------------------------------------------- | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/../common/config.cmake) | ||
|
||
set(NRF_SOC_VARIANT nrf54lm20a CACHE STRING "nRF SoC Variant") | ||
|
||
include(${PLATFORM_PATH}/common/${NRF_SOC_VARIANT}/config.cmake) | ||
|
||
# Override PS_CRYPTO_KDF_ALG | ||
set(PS_CRYPTO_KDF_ALG PSA_ALG_SP800_108_COUNTER_CMAC CACHE STRING "KDF Algorithm to use") | ||
|
||
# attest_hal.c includes bl_storage.h, which needs CONFIG_NRFX_RRAMC to be defined. | ||
# This is because bl_storage is a lib intended to be run from either the bootloader (Zephyr) or from TF-M. | ||
# This is independent from the NS image's CONFIG_NRFX_RRAMC, which must be disabled, so we can not inherit | ||
# this from app Kconfig. | ||
if(TFM_PARTITION_INITIAL_ATTESTATION) | ||
add_compile_definitions(CONFIG_NRFX_RRAMC) | ||
endif() |
10 changes: 10 additions & 0 deletions
10
modules/trusted-firmware-m/tfm_boards/nrf54lm20a_cpuapp/cpuarch.cmake
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,10 @@ | ||
# | ||
# Copyright (c) 2025, Nordic Semiconductor ASA. | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
set(PLATFORM_PATH platform/ext/target/nordic_nrf) | ||
|
||
include(${PLATFORM_PATH}/common/nrf54lm20a/cpuarch.cmake) | ||
add_compile_definitions(__NRF_TFM__) |
10 changes: 10 additions & 0 deletions
10
modules/trusted-firmware-m/tfm_boards/nrf54lm20a_cpuapp/ns/cpuarch_ns.cmake
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,10 @@ | ||
# | ||
# Copyright (c) 2025, Nordic Semiconductor ASA. | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
set(PLATFORM_DIR ${CMAKE_CURRENT_LIST_DIR}) | ||
set(PLATFORM_PATH ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/common/nrf54lm20a/cpuarch.cmake) |
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -68,5 +69,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
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 |
---|---|---|
|
@@ -73,6 +73,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -89,6 +90,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
sample.aes_gcm.cracen.crypto_service: | ||
|
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -69,5 +70,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -69,6 +70,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
sample.ecdh.cracen.crypto_service: | ||
|
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 |
---|---|---|
|
@@ -69,6 +69,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -85,6 +86,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
sample.ecdsa.cracen.crypto_service: | ||
|
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -68,5 +69,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
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 |
---|---|---|
|
@@ -69,6 +69,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -85,6 +86,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
sample.eddsa.cracen.crypto_service: | ||
|
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -67,5 +68,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -69,5 +70,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns | ||
- [email protected]/nrf54lv10a/cpuapp | ||
|
@@ -67,5 +68,6 @@ tests: | |
- nrf54l15dk/nrf54l05/cpuapp | ||
- nrf54ls05dk/nrf54ls05b/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp | ||
- nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
- nrf54lv10dk/nrf54lv10a/cpuapp | ||
- nrf54lv10dk/nrf54lv10a/cpuapp/ns |
6 changes: 6 additions & 0 deletions
6
samples/crypto/persistent_key_usage/boards/nrf54lm20dk_nrf54lm20_cpuapp_ns.conf
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,6 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
# LM20 does not support multipart AES operations so it cannot use | ||
# encrypted ITS until a workaround is implemented | ||
CONFIG_TFM_ITS_ENCRYPTED=n | ||
tomi-font marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
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.
Uh oh!
There was an error while loading. Please reload this page.