Browse Source

boards: arm: nrf52840dongle_nrf52840: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago committed by Carles Cufi
parent
commit
4bce0e9b39
  1. 0
      boards/nordic_nrf/nrf52840dongle/CMakeLists.txt
  2. 4
      boards/nordic_nrf/nrf52840dongle/Kconfig
  3. 7
      boards/nordic_nrf/nrf52840dongle/Kconfig.defconfig
  4. 7
      boards/nordic_nrf/nrf52840dongle/Kconfig.nrf52840dongle
  5. 0
      boards/nordic_nrf/nrf52840dongle/board.c
  6. 0
      boards/nordic_nrf/nrf52840dongle/board.cmake
  7. 5
      boards/nordic_nrf/nrf52840dongle/board.yml
  8. 0
      boards/nordic_nrf/nrf52840dongle/doc/img/nRF52840_dongle_press_reset.svg
  9. 0
      boards/nordic_nrf/nrf52840dongle/doc/img/nrf52840dongle_nrf52840.jpg
  10. 20
      boards/nordic_nrf/nrf52840dongle/doc/index.rst
  11. 0
      boards/nordic_nrf/nrf52840dongle/fstab-debugger.dtsi
  12. 0
      boards/nordic_nrf/nrf52840dongle/fstab-stock.dtsi
  13. 0
      boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840-pinctrl.dtsi
  14. 0
      boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840.dts
  15. 2
      boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840.yaml
  16. 4
      boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840_defconfig
  17. 0
      boards/nordic_nrf/nrf52840dongle/pre_dt_board.cmake

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/CMakeLists.txt → boards/nordic_nrf/nrf52840dongle/CMakeLists.txt

4
boards/boards_legacy/arm/nrf52840dongle_nrf52840/Kconfig → boards/nordic_nrf/nrf52840dongle/Kconfig

@ -3,7 +3,7 @@ @@ -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 @@ -26,4 +26,4 @@ config BOARD_SERIAL_BACKEND_CDC_ACM
bool "USB CDC"
default y
endif # BOARD_NRF52840DONGLE_NRF52840
endif # BOARD_NRF52840DONGLE

7
boards/boards_legacy/arm/nrf52840dongle_nrf52840/Kconfig.defconfig → boards/nordic_nrf/nrf52840dongle/Kconfig.defconfig

@ -4,10 +4,7 @@ @@ -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 @@ -83,4 +80,4 @@ endif # BOARD_SERIAL_BACKEND_CDC_ACM
config BT_CTLR
default BT
endif # BOARD_NRF52840DONGLE_NRF52840
endif # BOARD_NRF52840DONGLE

7
boards/boards_legacy/arm/nrf52840dongle_nrf52840/Kconfig.board → boards/nordic_nrf/nrf52840dongle/Kconfig.nrf52840dongle

@ -3,6 +3,7 @@ @@ -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

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/board.c → boards/nordic_nrf/nrf52840dongle/board.c

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/board.cmake → boards/nordic_nrf/nrf52840dongle/board.cmake

5
boards/nordic_nrf/nrf52840dongle/board.yml

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

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/doc/img/nRF52840_dongle_press_reset.svg → boards/nordic_nrf/nrf52840dongle/doc/img/nRF52840_dongle_press_reset.svg generated

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 185 KiB

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/doc/img/nrf52840dongle_nrf52840.jpg → boards/nordic_nrf/nrf52840dongle/doc/img/nrf52840dongle_nrf52840.jpg

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

20
boards/boards_legacy/arm/nrf52840dongle_nrf52840/doc/index.rst → boards/nordic_nrf/nrf52840dongle/doc/index.rst

@ -38,14 +38,14 @@ contains the processor's information and the datasheet. @@ -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 @@ -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. @@ -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. @@ -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). @@ -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. @@ -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 @@ -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. @@ -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. @@ -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.

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/fstab-debugger.dtsi → boards/nordic_nrf/nrf52840dongle/fstab-debugger.dtsi

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/fstab-stock.dtsi → boards/nordic_nrf/nrf52840dongle/fstab-stock.dtsi

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840-pinctrl.dtsi → boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840-pinctrl.dtsi

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts → boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840.dts

2
boards/boards_legacy/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.yaml → boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840.yaml

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

4
boards/boards_legacy/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig → boards/nordic_nrf/nrf52840dongle/nrf52840dongle_nrf52840_defconfig

@ -1,9 +1,5 @@ @@ -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

0
boards/boards_legacy/arm/nrf52840dongle_nrf52840/pre_dt_board.cmake → boards/nordic_nrf/nrf52840dongle/pre_dt_board.cmake

Loading…
Cancel
Save