Skip to content
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

Introduce nRF7120 SoC and board definitions to sdk-nrf #20070

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rob-robinson-14
Copy link

PR containing out of tree definitions for nrf7120.

rob-robinson-14 and others added 2 commits January 24, 2025 12:32
Add dts files for nRF7120

Signed-off-by: David Jewsbury <[email protected]>
Co-authored-by: Robert Robinson <[email protected]>
Add nRF7120 to soc directory

Signed-off-by: Robert Robinson <[email protected]>
Co-authored-by: David Jewsbury <[email protected]>
@rob-robinson-14 rob-robinson-14 requested review from a team as code owners January 24, 2025 12:44
@CLAassistant
Copy link

CLAassistant commented Jan 24, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Jan 24, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Jan 24, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 4

Inputs:

Sources:

sdk-nrf: PR head: 338f9acb30b452b1ca8751c122b6351b2eea7b2b

more details

sdk-nrf:

PR head: 338f9acb30b452b1ca8751c122b6351b2eea7b2b
merge base: 085e5a678ca84a3b5c8cd2e0c3b41de872f4b9cf
target head (main): a638e5f6114bec3a4570510338fd7177986cb179
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (39)
boards
│  ├── nordic
│  │  ├── nrf7120pdk
│  │  │  ├── Kconfig
│  │  │  ├── Kconfig.defconfig
│  │  │  ├── Kconfig.nrf7120pdk
│  │  │  ├── board.cmake
│  │  │  ├── board.yml
│  │  │  ├── nrf7120_enga_cpuapp_common.dtsi
│  │  │  ├── nrf7120pdk_nrf7120_enga-common.dtsi
│  │  │  ├── nrf7120pdk_nrf7120_enga-pinctrl.dtsi
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp.dts
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp.yaml
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp_defconfig
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp_ns.dts
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp_ns.yaml
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuapp_ns_defconfig
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuflpr.dts
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuflpr.yaml
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuflpr_defconfig
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuflpr_xip.dts
│  │  │  ├── nrf7120pdk_nrf7120_enga_cpuflpr_xip.yaml
│  │  │  │ nrf7120pdk_nrf7120_enga_cpuflpr_xip_defconfig
dts
│  ├── arm
│  │  ├── nordic
│  │  │  ├── nrf7120_enga.dtsi
│  │  │  │ nrf7120_enga_cpuapp.dtsi
│  ├── riscv
│  │  ├── nordic
│  │  │  │ nrf7120_enga_cpuflpr.dtsi
soc
│  ├── nordic
│  │  ├── CMakeLists.txt
│  │  ├── Kconfig
│  │  ├── Kconfig.defconfig
│  │  ├── Kconfig.soc
│  │  ├── nrf71
│  │  │  ├── CMakeLists.txt
│  │  │  ├── Kconfig
│  │  │  ├── Kconfig.defconfig
│  │  │  ├── Kconfig.defconfig.nrf7120_enga_cpuapp
│  │  │  ├── Kconfig.defconfig.nrf7120_enga_cpuflpr
│  │  │  ├── Kconfig.soc
│  │  │  ├── align.ld
│  │  │  ├── kmu_push_area_section.ld
│  │  │  ├── soc.c
│  │  │  │ soc.h
│  │  │ soc.yml
zephyr
│  │ module.yml

Outputs:

Toolchain

Version:
Build docker image:

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain
  • ◻️ Build twister
  • ◻️ Integration tests
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

Comment on lines +9 to +11
config SOC_FAMILY_NORDIC_NRF
select SOC_COMPATIBLE_NRF
select SOC_RESET_HOOK if ARM
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be here since it exists in zephyr already

if SOC_FAMILY_NORDIC_NRF

rsource "*/Kconfig"
source "$ZEPHYR_BASE/soc/nordic/Kconfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should already be sourced really


rsource "*/Kconfig.defconfig"

# If the kernel has timer support, enable clock control
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all duplicated from upstream, needs to go

Comment on lines +8 to +12
config SOC_FAMILY_NORDIC_NRF
bool

config SOC_FAMILY
default "nordic_nrf" if SOC_FAMILY_NORDIC_NRF
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to go

Comment on lines +18 to +20
# Exclamation mark is printable character with the lowest number in ASCII table.
# We are sure that this file will be included first.
zephyr_linker_sources(RAM_SECTIONS SORT_KEY ! kmu_push_area_section.ld)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 space indent

Comment on lines +24 to +25
config SOC
default "nrf7120" if SOC_NRF7120_ENGA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default "nrf7120" if SOC_NRF7120 and also needs a SOC_NRF7120 symbol - see upstream zephyr soc/nrf54l/Kconfig.soc to see how to do this

{
/* Enable ICACHE */
sys_cache_instr_enable();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

series:
- name: nrf71
socs:
- name: nrf7120_enga
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: nrf7120_enga
- name: nrf7120

The board can select the revision'd Kconfig but there is only one SoC

@@ -0,0 +1,12 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing in this file needs fixing

# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF7120PDK
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git conflict markers?

@nordicjm
Copy link
Contributor

also shouldn't be e.g. noup in sdk-nrf commit titles, that is for sdk-* OSS repos only

@rob-robinson-14 rob-robinson-14 force-pushed the NRFX-6596-add-nrf7120-soc-board-definitions branch from c40fbb1 to b6ae797 Compare January 24, 2025 15:57
rob-robinson-14 and others added 5 commits January 24, 2025 15:58
Add board files for nRF7120pdk

Signed-off-by: David Jewsbury <[email protected]>
Co-authored-by: Robert Robinson <[email protected]>
This adds the nrf7120pdk/cpuapp/ns board variant to sdk-zephyr.
It allows to build nrf7120pdk with TF-M in nRF Connect SDK.

This is done as a noup as the out-of-tree board extension feature is
not available. When zephyrproject-rtos/zephyr#69548 is completed this
commit can be reverted and the variant be placed in sdk-nrf.

Signed-off-by: Robert Robinsin <[email protected]>
The SoftDevice Controller is a different controller than
the open source link layer with a different set of quirks.
It should therefore have its own device tree binding.

This commit converts the SoftDevice Controller driver
to use this new DTS binding instead of reusing the existing one.

This commit updates or adds additional overlays for
existing samples, applications and tests that were using the
open source link layer.

Signed-off-by: Robert Robinsin <[email protected]>
nRF7120 has been added to soc folder in NCS, therefore, soc_root needs to be added to module.yml

Signed-off-by: David Jewsbury <[email protected]>
The license agreement for files within sdk-nrf differs from what
will eventually be required from upstream zephyr.

All SPDX-License-Identifier: Apache-2.0 have been updated to SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

Signed-off-by: Robert Robinsin <[email protected]>
@rob-robinson-14 rob-robinson-14 force-pushed the NRFX-6596-add-nrf7120-soc-board-definitions branch from b6ae797 to 338f9ac Compare January 24, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants