boards: arm: raytac_mdbt50q_db_40_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:01 +00:00
committed by Carles Cufi
parent 32c4bdc0c4
commit 7186432662
12 changed files with 21 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2022 Raytac Corporation
# SPDX-License-Identifier: Apache-2.0
if BOARD_RAYTAC_MDBT50Q_DB_40_NRF52840
if BOARD_RAYTAC_MDBT50Q_DB_40
config BOARD_ENABLE_DCDC
bool "DCDC mode"
@@ -15,4 +15,4 @@ config BOARD_ENABLE_DCDC_HV
select SOC_DCDC_NRF52X_HV
default y
endif # BOARD_RAYTAC_MDBT50Q_DB_40_NRF52840
endif # BOARD_RAYTAC_MDBT50Q_DB_40

View File

@@ -3,12 +3,9 @@
# Copyright (c) 2022 Raytac Corporation
# SPDX-License-Identifier: Apache-2.0
if BOARD_RAYTAC_MDBT50Q_DB_40_NRF52840
config BOARD
default "raytac_mdbt50q_db_40_nrf52840"
if BOARD_RAYTAC_MDBT50Q_DB_40
config BT_CTLR
default BT
endif
endif # BOARD_RAYTAC_MDBT50Q_DB_40

View File

@@ -3,6 +3,7 @@
# Copyright (c) 2022 Raytac Corporation
# SPDX-License-Identifier: Apache-2.0
config BOARD_RAYTAC_MDBT50Q_DB_40_NRF52840
bool "Raytac MDBT50Q_DB_40_nRF52840"
depends on SOC_NRF52840_QIAA
config BOARD_RAYTAC_MDBT50Q_DB_40
bool
default y
select SOC_NRF52840_QIAA

View File

@@ -0,0 +1,5 @@
board:
name: raytac_mdbt50q_db_40
vendor: Raytac Corporation
socs:
- name: nrf52840

View File

@@ -59,7 +59,7 @@ Hardware
Supported Features
==================
The raytac_mdbt50q_db_40_nrf52840 board configuration supports the following
The raytac_mdbt50q_db_40/nrf52840 board configuration supports the following
hardware features:
+-----------+------------+----------------------+
@@ -131,12 +131,12 @@ UART
Programming and Debugging
*************************
Applications for the ``raytac_mdbt50q_db_40_nrf52840`` board configuration can be
Applications for the ``raytac_mdbt50q_db_40/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.
.. note::
Flashing and Debugging Zephyr onto the raytac_mdbt50q_db_40_nrf52840 board
Flashing and Debugging Zephyr onto the raytac_mdbt50q_db_40/nrf52840 board
requires an external J-Link programmer. The programmer is attached to the J1
or J9 SWD connector.
@@ -151,7 +151,7 @@ applications as usual (see :ref:`build_an_application` and
Here is an example for the :ref:`hello_world` application.
Use a USB to TTL converter to connect the computer and raytac_mdbt50q_db_40_nrf52840
Use a USB to TTL converter to connect the computer and raytac_mdbt50q_db_40/nrf52840
J10 connector. Then run your favorite terminal program to listen for output.
.. code-block:: console
@@ -165,13 +165,13 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: raytac_mdbt50q_db_40_nrf52840
:board: raytac_mdbt50q_db_40/nrf52840
:goals: build flash
Debugging
=========
The ``raytac_mdbt50q_db_40_nrf52840`` board does not have an on-board-J-Link debug IC,
The ``raytac_mdbt50q_db_40/nrf52840`` board does not have an on-board-J-Link debug IC,
however, instructions from the :ref:`nordic_segger` page also apply to this board.
Use the Debug out connector of nRF52x DK to connect to the J1 connector, and use SEGGER
J-Link OB IF to debug.
@@ -189,7 +189,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/raytac_mdbt50q_db_40_nrf52840/raytac_mdbt50q_db_40_nrf52840.dts`.
:zephyr_file:`boards/raytac/raytac_mdbt50q_db_40/raytac_mdbt50q_db_40_nrf52840.dts`.
Selecting the pins
==================

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2022 Raytac Corporation
# SPDX-License-Identifier: Apache-2.0
identifier: raytac_mdbt50q_db_40_nrf52840
identifier: raytac_mdbt50q_db_40/nrf52840
name: Raytac MDBT50Q_DB_40_NRF52840
type: mcu
arch: arm

View File

@@ -3,10 +3,6 @@
# Copyright (c) 2022 Raytac Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_RAYTAC_MDBT50Q_DB_40_NRF52840=y
# Enable MPU
CONFIG_ARM_MPU=y