boards: arm: nrf51dongle_nrf51422: 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:12 +00:00
committed by Carles Cufi
parent 0ffbc1da33
commit 9e12c3d8bd
11 changed files with 11 additions and 14 deletions

View File

@@ -3,12 +3,9 @@
# Copyright (c) 2018-2020 Nordic Semiconductor ASA.
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF51DONGLE_NRF51422
config BOARD
default "nrf51dongle_nrf51422"
if BOARD_NRF51DONGLE
config BT_CTLR
default BT
endif # BOARD_NRF51DONGLE_NRF51422
endif # BOARD_NRF51DONGLE

View File

@@ -3,6 +3,5 @@
# Copyright (c) 2018 Nordic Semiconductor ASA.
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF51DONGLE_NRF51422
bool "nRF51 Dongle NRF51422"
depends on SOC_NRF51822_QFAC
config BOARD_NRF51DONGLE
select SOC_NRF51822_QFAC

View File

@@ -0,0 +1,5 @@
board:
name: nrf51dongle
vendor: Nordic Semiconductor
socs:
- name: nrf51422

View File

@@ -120,7 +120,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf51dongle_nrf51422
:board: nrf51dongle/nrf51422
:goals: build flash
Debugging

View File

@@ -1,4 +1,4 @@
identifier: nrf51dongle_nrf51422
identifier: nrf51dongle/nrf51422
name: nRF51-Dongle-nRF51422
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF51X=y
CONFIG_SOC_NRF51822_QFAC=y
CONFIG_BOARD_NRF51DONGLE_NRF51422=y
# enable GPIO
CONFIG_GPIO=y