boards: arm: nrf52833dk: 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:58 +00:00
committed by Carles Cufi
parent d632b90043
commit 4dbe97e5ea
24 changed files with 53 additions and 103 deletions

View File

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

View File

@@ -1,10 +0,0 @@
# nRF52833DK nRF52820 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_NRF52833DK_NRF52820

View File

@@ -1,8 +0,0 @@
# nRF52833DK nRF52820 board configuration
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52833DK_NRF52820
bool "nRF52833 DK NRF52820"
depends on SOC_NRF52820_QDAA

View File

@@ -1,14 +0,0 @@
# nRF52833DK nRF52820 board configuration
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52833DK_NRF52820
config BOARD
default "nrf52833dk_nrf52820"
config BT_CTLR
default BT
endif # BOARD_NRF52833DK_NRF52820

View File

@@ -1,9 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000")
board_runner_args(pyocd "--target=nrf52820" "--frequency=4000000")
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/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

View File

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

View File

@@ -1,8 +0,0 @@
# nRF52833 DK NRF52833 board configuration
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52833DK_NRF52833
bool "NRF52833 DK NRF52833"
depends on SOC_NRF52833_QIAA

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_NRF52833DK_NRF52820)
# The nrf52833dk_nrf52820 board mirrors the nRF52833 DK hardware. This
# needs to be considered by certain system initialization functionality
# residing in system_nrf52820.c and SoC dependent routines in nrfx_coredep.h.
zephyr_compile_definitions(DEVELOP_IN_NRF52833)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)
endif()

View File

@@ -7,4 +7,4 @@ config BOARD_ENABLE_DCDC
bool "DCDC mode"
select SOC_DCDC_NRF52X
default y
depends on BOARD_NRF52833DK_NRF52833
depends on BOARD_NRF52833DK

View File

@@ -3,12 +3,9 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52833DK_NRF52833
config BOARD
default "nrf52833dk_nrf52833"
if BOARD_NRF52833DK
config BT_CTLR
default BT
endif # BOARD_NRF52833DK_NRF52833
endif # BOARD_NRF52833DK

View File

@@ -0,0 +1,8 @@
# nRF52833 DK NRF52833 board configuration
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52833DK
select SOC_NRF52820_QDAA if BOARD_NRF52833DK_NRF52820
select SOC_NRF52833_QIAA if BOARD_NRF52833DK_NRF52833

View File

@@ -0,0 +1,6 @@
board:
name: nrf52833dk
vendor: Nordic Semiconductor
socs:
- name: nrf52820
- name: nrf52833

View File

@@ -155,7 +155,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/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts`.
:zephyr_file:`boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.dts`.
Changing UART1 pins
*******************
@@ -215,3 +215,27 @@ References
.. _Nordic Semiconductor Infocenter: https://infocenter.nordicsemi.com
.. _J-Link Software and documentation pack: https://www.segger.com/jlink-software.html
.. _nRF52833 Product Specification: https://infocenter.nordicsemi.com/pdf/nRF52833_OPS_v0.7.pdf
.. _nrf52833dk_nrf52820:
nRF52820 emulation on nRF52833 DK
#################################
Overview
********
The nrf52833dk_nrf52820 board is a modified version of the
:ref:`nrf52833dk_nrf52833` that enforces the limitations imposed by the nRF52820
IC, which is a variant of the original nRF52833. Since Nordic does not offer a
development kit for the nRF52820 you can use this board to develop for this IC
while using the nRF52833 Development Kit (PCA10100).
See :ref:`nrf52833dk_nrf52833` for more information about the development board
and `nRF52820 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52820 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52820

View File

@@ -1,4 +1,4 @@
identifier: nrf52833dk_nrf52820
identifier: nrf52833dk/nrf52820
name: nRF52833-DK-NRF52820
type: mcu
arch: arm

View File

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

View File

@@ -1,4 +1,4 @@
identifier: nrf52833dk_nrf52833
identifier: nrf52833dk/nrf52833
name: nRF52833-DK-NRF52833
type: mcu
arch: arm

View File

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