boards: arm: nrf21540dk_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 4bce0e9b39
commit 882524d2a0
12 changed files with 17 additions and 18 deletions

View File

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

View File

@ -3,12 +3,9 @@
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF21540DK_NRF52840
config BOARD
default "nrf21540dk_nrf52840"
if BOARD_NRF21540DK
config BT_CTLR
default BT
endif # BOARD_NRF21540DK_NRF52840
endif # BOARD_NRF21540DK

View File

@ -3,6 +3,7 @@
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF21540DK_NRF52840
bool "nRF21540 DK NRF52840"
depends on SOC_NRF52840_QIAA
config BOARD_NRF21540DK
bool
default y
select SOC_NRF52840_QIAA

View File

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

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -44,7 +44,7 @@ of the slow clock is 32.768 kHz. The frequency of the main clock is 32 MHz.
Supported Features
==================
The nrf21540dk_nrf52840 board configuration supports the following
The nrf21540dk/nrf52840 board configuration supports the following
hardware features:
+-----------+------------+----------------------+
@ -122,7 +122,7 @@ Front End Module
Programming and Debugging
*************************
Applications for the ``nrf21540dk_nrf52840`` board configuration can be built,
Applications for the ``nrf21540dk/nrf52840`` board configuration can be built,
flashed, and debugged in the usual way. See :ref:`build_an_application` and
:ref:`application_run` for more details on building and running.
@ -150,7 +150,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf21540dk_nrf52840
:board: nrf21540dk/nrf52840
:goals: build flash
Debugging
@ -173,7 +173,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/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts`.
:zephyr_file:`boards/nordic_nrf/nrf21540dk/nrf21540dk_nrf52840.dts`.
Changing UART1 pins
*******************

View File

@ -1,4 +1,4 @@
identifier: nrf21540dk_nrf52840
identifier: nrf21540dk/nrf52840
name: nRF21540-DK-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_NRF21540DK_NRF52840=y
# Enable MPU
CONFIG_ARM_MPU=y