boards: arm: nrf52dk: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 11:37:57 +00:00
committed by Carles Cufi
parent 202c2bf447
commit d2c7972a9a
36 changed files with 81 additions and 191 deletions

View File

@@ -1,7 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# The nrf52dk_nrf52805 board mirrors the nRF52 DK hardware. This needs
# to be considered by certain system initialization functionality residing
# in system_nrf52805.c and SoC dependent routines in nrfx_coredep.h.
zephyr_compile_definitions(DEVELOP_IN_NRF52832)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)

View File

@@ -1,10 +0,0 @@
# nRF52 DK nRF52805 board configuration
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_ENABLE_DCDC
bool "DCDC mode"
select SOC_DCDC_NRF52X
default y
depends on BOARD_NRF52DK_NRF52805

View File

@@ -1,8 +0,0 @@
# nRF52 DK nRF52805 board configuration
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52DK_NRF52805
bool "nRF52 DK NRF52805"
depends on SOC_NRF52805_CAAA

View File

@@ -1,14 +0,0 @@
# nRF52 DK nRF52805 board configuration
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52DK_NRF52805
config BOARD
default "nrf52dk_nrf52805"
config BT_CTLR
default BT
endif # BOARD_NRF52DK_NRF52805

View File

@@ -1,7 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=nRF52832_xxAA" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

View File

@@ -1,23 +0,0 @@
.. _nrf52dk_nrf52805:
nRF52805 emulation on nRF52 DK
##############################
Overview
********
The nrf52dk_nrf52805 board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52805 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52805, you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).
See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52805 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52805 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52805

View File

@@ -1,7 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
# The nrf52dk_nrf52810 board mirrors the nRF52832 DK hardware. This
# needs to be considered by certain system initialization functionality
# residing in system_nrf52810.c and SoC dependent routines in nrfx_coredep.h.
zephyr_compile_definitions(DEVELOP_IN_NRF52832)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)

View File

@@ -1,8 +0,0 @@
# nRF52 DK nRF52810 board configuration
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52DK_NRF52810
bool "nRF52 DK NRF52810"
depends on SOC_NRF52810_QFAA

View File

@@ -1,11 +0,0 @@
# nRF52 DK nRF52810 board configuration
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52DK_NRF52810
config BOARD
default "nrf52dk_nrf52810"
endif # BOARD_NRF52DK_NRF52810

View File

@@ -1,7 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=nRF52832_xxAA" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

View File

@@ -1,24 +0,0 @@
.. _nrf52dk_nrf52810:
nRF52810 emulation on nRF52 DK
##############################
Overview
********
The nrf52dk_nrf52810 board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52810 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52810 you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).
See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52810 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52810 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52810

View File

@@ -1,7 +0,0 @@
# Copyright (c) 2022 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - power@40000000 & clock@40000000 & bprot@40000000
# - acl@4001e000 & flash-controller@4001e000
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")

View File

@@ -1,10 +0,0 @@
# nRF52 DK board configuration
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_ENABLE_DCDC
bool "DCDC mode"
select SOC_DCDC_NRF52X
default y
depends on BOARD_NRF52DK_NRF52832

View File

@@ -1,8 +0,0 @@
# nRF52 DK NRF52832 board configuration
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52DK_NRF52832
bool "nRF52 DK NRF52832"
depends on SOC_NRF52832_QFAA

View File

@@ -1,14 +0,0 @@
# nRF52 DK NRF52832 board configuration
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52DK_NRF52832
config BOARD
default "nrf52dk_nrf52832"
config BT_CTLR
default BT
endif # BOARD_NRF52DK_NRF52832

View File

@@ -1,7 +0,0 @@
# Copyright (c) 2022 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - power@40000000 & clock@40000000 & bprot@40000000
# - acl@4001e000 & flash-controller@4001e000
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")

View File

@@ -0,0 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_BOARD_NRF52DK_NRF52805 OR CONFIG_BOARD_NRF52DK_NRF52810)
# The nrf52dk_nrf52805/nrf52dk_nrf52810 boards mirrors the nRF52832 DK hardware. This
# needs to be considered by certain system initialization functionality
# residing in system_nrf52810.c and SoC dependent routines in nrfx_coredep.h.
zephyr_compile_definitions(DEVELOP_IN_NRF52832)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)
endif()

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52DK_NRF52810
if BOARD_NRF52DK
config BOARD_ENABLE_DCDC
bool "DCDC mode"
@@ -15,4 +15,4 @@ config BOARD_ENABLE_DCDC
config BT_CTLR
default y if BT
endif # BOARD_NRF52DK_NRF52810
endif # BOARD_NRF52DK

View File

@@ -0,0 +1,9 @@
# nRF52 DK nRF52810 board configuration
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52DK
select SOC_NRF52805_CAAA if BOARD_NRF52DK_NRF52805
select SOC_NRF52810_QFAA if BOARD_NRF52DK_NRF52810
select SOC_NRF52832_QFAA if BOARD_NRF52DK_NRF52832

View File

@@ -0,0 +1,7 @@
board:
name: nrf52dk
vendor: Nordic Semiconductor
socs:
- name: nrf52805
- name: nrf52810
- name: nrf52832

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -372,7 +372,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf52dk_nrf52832
:board: nrf52dk/nrf52832
:goals: build flash
Debugging
@@ -395,7 +395,7 @@ the board are working properly with Zephyr:
You can build and flash the examples to make sure Zephyr is running correctly on
your board. The button and LED definitions can be found in
:zephyr_file:`boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts`.
:zephyr_file:`boards/nordic_nrf/nrf52dk/nrf52dk_nrf52832.dts`.
References
**********
@@ -404,3 +404,52 @@ References
.. _nRF52 DK website: https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK
.. _Nordic Semiconductor Infocenter: https://infocenter.nordicsemi.com
.. _nrf52dk_nrf52805:
nRF52805 emulation on nRF52 DK
##############################
Overview
********
The nrf52dk_nrf52805 board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52805 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52805, you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).
See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52805 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52805 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52805
.. _nrf52dk_nrf52810:
nRF52810 emulation on nRF52 DK
##############################
Overview
********
The nrf52dk_nrf52810 board is a modified version of the :ref:`nrf52dk_nrf52832`
that enforces the limitations imposed by the nRF52810 IC, which is a
cost-reduced variant of the original nRF52832. Since Nordic does not offer a
development kit for the nRF52810 you can use this board to develop for this
IC while using the nRF52 Development Kit (PCA10040).
See :ref:`nrf52dk_nrf52832` for more information about the development board and
`nRF52810 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52810 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52810

View File

@@ -1,4 +1,4 @@
identifier: nrf52dk_nrf52805
identifier: nrf52dk/nrf52805
name: nRF52-DK-NRF52805
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52805_CAAA=y
CONFIG_BOARD_NRF52DK_NRF52805=y
# Enable MPU
CONFIG_ARM_MPU=y

View File

@@ -1,4 +1,4 @@
identifier: nrf52dk_nrf52810
identifier: nrf52dk/nrf52810
name: nRF52-DK-NRF52810
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52810_QFAA=y
CONFIG_BOARD_NRF52DK_NRF52810=y
# Enable MPU
CONFIG_ARM_MPU=y

View File

@@ -1,4 +1,4 @@
identifier: nrf52dk_nrf52832
identifier: nrf52dk/nrf52832
name: nRF52-DK-NRF52832
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52832_QFAA=y
CONFIG_BOARD_NRF52DK_NRF52832=y
# Enable MPU
CONFIG_ARM_MPU=y