boards: arm: nrf52840dongle_nrf52840: 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:38:04 +00:00
committed by Carles Cufi
parent d0229c771f
commit 4bce0e9b39
17 changed files with 24 additions and 25 deletions

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2018-2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840DONGLE_NRF52840
if BOARD_NRF52840DONGLE
config BOARD_ENABLE_DCDC
bool "DCDC mode"
@@ -26,4 +26,4 @@ config BOARD_SERIAL_BACKEND_CDC_ACM
bool "USB CDC"
default y
endif # BOARD_NRF52840DONGLE_NRF52840
endif # BOARD_NRF52840DONGLE

View File

@@ -4,10 +4,7 @@
#
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840DONGLE_NRF52840
config BOARD
default "nrf52840dongle_nrf52840"
if BOARD_NRF52840DONGLE
# To let the nRF5 bootloader load an application, the application
# must be linked after Nordic MBR, that is factory-programmed on the board.
@@ -83,4 +80,4 @@ endif # BOARD_SERIAL_BACKEND_CDC_ACM
config BT_CTLR
default BT
endif # BOARD_NRF52840DONGLE_NRF52840
endif # BOARD_NRF52840DONGLE

View File

@@ -3,6 +3,7 @@
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52840DONGLE_NRF52840
bool "nRF52840 DONGLE NRF52840"
depends on SOC_NRF52840_QIAA
config BOARD_NRF52840DONGLE
bool
default y
select SOC_NRF52840_QIAA

View File

@@ -0,0 +1,5 @@
board:
name: nrf52840dongle
vendor: Nordic Semiconductor
socs:
- name: nrf52840

View File

@@ -38,14 +38,14 @@ contains the processor's information and the datasheet.
Hardware
********
The ``nrf52840dongle_nrf52840`` has two external oscillators. The frequency of
The ``nrf52840dongle/nrf52840`` has two external oscillators. The frequency of
the slow clock is 32.768 kHz. The frequency of the main clock
is 32 MHz.
Supported Features
==================
The ``nrf52840dongle_nrf52840`` board configuration supports the following
The ``nrf52840dongle/nrf52840`` board configuration supports the following
hardware features:
+-----------+------------+----------------------+
@@ -105,7 +105,7 @@ Push buttons
Programming and Debugging
*************************
Applications for the ``nrf52840dongle_nrf52840`` board configuration can be
Applications for the ``nrf52840dongle/nrf52840`` board configuration can be
built in the usual way (see :ref:`build_an_application` for more details).
Flashing
@@ -144,7 +144,7 @@ device. Make sure ``nrfutil`` is installed before proceeding.
.. zephyr-app-commands::
:app: zephyr/samples/basic/blinky
:board: nrf52840dongle_nrf52840
:board: nrf52840dongle/nrf52840
:goals: build
#. Package the application for the bootloader using ``nrfutil``:
@@ -190,7 +190,7 @@ to the zephyr repository on your computer.
.. zephyr-app-commands::
:app: mcuboot/boot/zephyr
:board: nrf52840dongle_nrf52840
:board: nrf52840dongle/nrf52840
:build-dir: mcuboot
:goals: build
@@ -232,7 +232,7 @@ over Bluetooth).
.. zephyr-app-commands::
:app: zephyr/samples/subsys/mgmt/mcumgr/smp_svr
:board: nrf52840dongle_nrf52840
:board: nrf52840dongle/nrf52840
:build-dir: smp_svr
:goals: build
@@ -269,7 +269,7 @@ name.
.. zephyr-app-commands::
:app: zephyr/samples/basic/blinky
:board: nrf52840dongle_nrf52840
:board: nrf52840dongle/nrf52840
:build-dir: blinky
:goals: build
:gen-args: -DCONFIG_BOOTLOADER_MCUBOOT=y
@@ -287,7 +287,7 @@ For Segger J-Link debug probes, follow the instructions in the
:ref:`nordic_segger` page to install and configure all the necessary
software. Further information can be found in :ref:`nordic_segger_flashing`.
Locate the DTS file for the board under: boards/arm/nrf52840dongle_nrf52840.
Locate the DTS file: :zephyr_file:`boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840.dts`.
This file requires a small modification to use a different partition table.
Edit the include directive to include "fstab-debugger" instead of "fstab-stock".
@@ -302,7 +302,7 @@ Here is an example for the :zephyr:code-sample:`blinky` application.
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: nrf52840dongle_nrf52840
:board: nrf52840dongle/nrf52840
:goals: build flash
Observe the LED on the board blinking.
@@ -310,7 +310,7 @@ Observe the LED on the board blinking.
Debugging
=========
The ``nrf52840dongle_nrf52840`` board does not have an on-board J-Link debug IC
The ``nrf52840dongle/nrf52840`` board does not have an on-board J-Link debug IC
as some nRF5x development boards, however, instructions from the
:ref:`nordic_segger` page also apply to this board, with the additional step
of connecting an external debugger.

View File

@@ -1,4 +1,4 @@
identifier: nrf52840dongle_nrf52840
identifier: nrf52840dongle/nrf52840
name: nRF52840-Dongle-NRF52840
type: mcu
arch: arm

View File

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