Browse Source

boards: update nRF52840dk_nrf52840/nrf52811 board to board scheme v2.

This commit updates nrf52840dk_nrf52840 and nrf52840_nrf52811 to use
board scheme v2, and thereby remove the Kconfig BOARD setting, as this
is now passed from CMake.

It combines both boards in a common nrf52840dk board folder where each
SoC is an entry in the board.yml file.

It also uses the new SoC approach, and thereby ensuring that the right
SoC is always used, and cannot accidentially be changed by the user.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago committed by Carles Cufi
parent
commit
8c90fae8e0
  1. 10
      boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig
  2. 8
      boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig.board
  3. 14
      boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig.defconfig
  4. 9
      boards/boards_legacy/arm/nrf52840dk_nrf52811/board.cmake
  5. 24
      boards/boards_legacy/arm/nrf52840dk_nrf52811/doc/index.rst
  6. 8
      boards/boards_legacy/arm/nrf52840dk_nrf52840/Kconfig.board
  7. 7
      boards/boards_legacy/arm/nrf52840dk_nrf52840/pre_dt_board.cmake
  8. 6
      boards/nordic_nrf/nrf52840dk/CMakeLists.txt
  9. 5
      boards/nordic_nrf/nrf52840dk/Kconfig
  10. 7
      boards/nordic_nrf/nrf52840dk/Kconfig.defconfig
  11. 6
      boards/nordic_nrf/nrf52840dk/Kconfig.nrf52840dk
  12. 0
      boards/nordic_nrf/nrf52840dk/board.cmake
  13. 8
      boards/nordic_nrf/nrf52840dk/board.yml
  14. 0
      boards/nordic_nrf/nrf52840dk/doc/img/nrf52840dk_nrf52840.jpg
  15. 31
      boards/nordic_nrf/nrf52840dk/doc/index.rst
  16. 0
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811-pinctrl.dtsi
  17. 0
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811.dts
  18. 2
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811.yaml
  19. 4
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811_defconfig
  20. 0
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840-pinctrl.dtsi
  21. 0
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840.dts
  22. 2
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840.yaml
  23. 4
      boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840_defconfig
  24. 0
      boards/nordic_nrf/nrf52840dk/pre_dt_board.cmake

10
boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig

@ -1,10 +0,0 @@ @@ -1,10 +0,0 @@
# nRF52840 DK NRF52811 board configuration
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_ENABLE_DCDC
bool "DCDC mode"
select SOC_DCDC_NRF52X
default y
depends on BOARD_NRF52840DK_NRF52811

8
boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig.board

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
# nRF52840 DK NRF52811 board configuration
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52840DK_NRF52811
bool "nRF52840 DK NRF52811"
depends on SOC_NRF52811_QFAA

14
boards/boards_legacy/arm/nrf52840dk_nrf52811/Kconfig.defconfig

@ -1,14 +0,0 @@ @@ -1,14 +0,0 @@
# nRF52840 DK NRF52811 board configuration
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840DK_NRF52811
config BOARD
default "nrf52840dk_nrf52811"
config BT_CTLR
default BT
endif # BOARD_NRF52840DK_NRF52811

9
boards/boards_legacy/arm/nrf52840dk_nrf52811/board.cmake

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

24
boards/boards_legacy/arm/nrf52840dk_nrf52811/doc/index.rst

@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
.. _nrf52840dk_nrf52811:
nRF52811 emulation on nRF52840 DK
#################################
Overview
********
The nrf52840dk_nrf52811 board is a modified version of the
:ref:`nrf52840dk_nrf52840` that enforces the limitations imposed by the nRF52811
IC, which is a variant of the original nRF52840. Since Nordic does not offer a
development kit for the nRF52811 you can use this board to develop for this IC
while using the nRF52840 Development Kit (PCA10056).
See :ref:`nrf52840dk_nrf52840` for more information about the development board
and `nRF52811 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52811 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52811

8
boards/boards_legacy/arm/nrf52840dk_nrf52840/Kconfig.board

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
# nRF52840 DK NRF52840 board configuration
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52840DK_NRF52840
bool "nRF52840 DK NRF52840"
depends on SOC_NRF52840_QIAA

7
boards/boards_legacy/arm/nrf52840dk_nrf52840/pre_dt_board.cmake

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
# Copyright (c) 2022 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - power@40000000 & clock@40000000 & bprot@40000000
# - acl@4001e000 & flash-controller@4001e000
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")

6
boards/boards_legacy/arm/nrf52840dk_nrf52811/CMakeLists.txt → boards/nordic_nrf/nrf52840dk/CMakeLists.txt

@ -5,5 +5,7 @@ @@ -5,5 +5,7 @@
# The nrf52840dk_nrf52811 board mirrors the nRF52840 DK hardware. This
# needs to be considered by certain system initialization functionality
# residing in system_nrf52811.c and SoC dependent routines in nrfx_coredep.h.
zephyr_compile_definitions(DEVELOP_IN_NRF52840)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)
if(CONFIG_BOARD_NRF52840DK_NRF52811)
zephyr_compile_definitions(DEVELOP_IN_NRF52840)
zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3)
endif()

5
boards/boards_legacy/arm/nrf52840dk_nrf52840/Kconfig → boards/nordic_nrf/nrf52840dk/Kconfig

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840DK_NRF52840
if BOARD_NRF52840DK
config BOARD_ENABLE_DCDC
bool "DCDC mode"
@ -14,5 +14,6 @@ config BOARD_ENABLE_DCDC_HV @@ -14,5 +14,6 @@ config BOARD_ENABLE_DCDC_HV
bool "High Voltage DCDC converter"
select SOC_DCDC_NRF52X_HV
default y
depends on SOC_NRF52840_QIAA
endif # BOARD_NRF52840DK_NRF52840
endif # BOARD_NRF52840DK

7
boards/boards_legacy/arm/nrf52840dk_nrf52840/Kconfig.defconfig → boards/nordic_nrf/nrf52840dk/Kconfig.defconfig

@ -3,12 +3,9 @@ @@ -3,12 +3,9 @@
# Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840DK_NRF52840
config BOARD
default "nrf52840dk_nrf52840"
if BOARD_NRF52840DK
config BT_CTLR
default BT
endif # BOARD_NRF52840DK_NRF52840
endif # BOARD_NRF52840DK

6
boards/nordic_nrf/nrf52840dk/Kconfig.nrf52840dk

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
# Copyright (c) 2022 Zephyr Project members and individual contributors
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF52840DK
select SOC_NRF52840_QIAA if BOARD_NRF52840DK_NRF52840
select SOC_NRF52811_QFAA if BOARD_NRF52840DK_NRF52811

0
boards/boards_legacy/arm/nrf52840dk_nrf52840/board.cmake → boards/nordic_nrf/nrf52840dk/board.cmake

8
boards/nordic_nrf/nrf52840dk/board.yml

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
board:
name: nrf52840dk
vendor: Nordic Semiconductor
socs:
# Physical nRF52840 SoC on PCA10056
- name: nrf52840
# nRF52840 SoC in nRF52811 emulation mode on PCA10056
- name: nrf52811

0
boards/boards_legacy/arm/nrf52840dk_nrf52840/doc/img/nrf52840dk_nrf52840.jpg → boards/nordic_nrf/nrf52840dk/doc/img/nrf52840dk_nrf52840.jpg

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

31
boards/boards_legacy/arm/nrf52840dk_nrf52840/doc/index.rst → boards/nordic_nrf/nrf52840dk/doc/index.rst

@ -110,7 +110,7 @@ Push buttons @@ -110,7 +110,7 @@ Push buttons
Programming and Debugging
*************************
Applications for the ``nrf52840dk_nrf52840`` board configuration can be
Applications for the ``nrf52840dk/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.
@ -139,7 +139,7 @@ Then build and flash the application in the usual way. @@ -139,7 +139,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf52840dk_nrf52840
:board: nrf52840dk/nrf52840
:goals: build flash
Debugging
@ -162,7 +162,7 @@ the board are working properly with Zephyr: @@ -162,7 +162,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/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts`.
:zephyr_file:`boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840.dts`.
Changing UART1 pins
*******************
@ -213,6 +213,30 @@ In the table 7.1.1 'aQFN73 ball assignments' select the pins marked @@ -213,6 +213,30 @@ In the table 7.1.1 'aQFN73 ball assignments' select the pins marked
'General purpose I/O'. Note that pins marked as 'low frequency I/O only' can only be used
in under-10KHz applications. They are not suitable for 115200 speed of UART.
.. _nrf52840dk_nrf52811:
nRF52811 emulation on nRF52840 DK
#################################
Overview
********
The nrf52840dk/nrf52811 board variant is a modified version of the
:ref:`nrf52840dk/nrf52840` that enforces the limitations imposed by the nRF52811
IC, which is a variant of the original nRF52840. Since Nordic does not offer a
development kit for the nRF52811 you can use this board to develop for this IC
while using the nRF52840 Development Kit (PCA10056).
See :ref:`nrf52840dk_nrf52840` for more information about the development board
and `nRF52811 website`_ for the official reference on the IC itself.
References
**********
.. target-notes::
.. _nRF52811 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52811
References
**********
@ -222,3 +246,4 @@ References @@ -222,3 +246,4 @@ References
.. _Nordic Semiconductor Infocenter: https://infocenter.nordicsemi.com
.. _J-Link Software and documentation pack: https://www.segger.com/jlink-software.html
.. _nRF52840 Product Specification: http://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.0.pdf
.. _nRF52811 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52811

0
boards/boards_legacy/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811-pinctrl.dtsi → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811-pinctrl.dtsi

0
boards/boards_legacy/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811.dts

2
boards/boards_legacy/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.yaml → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nrf52840dk_nrf52811
identifier: nrf52840dk/nrf52811
name: nRF52840-DK-NRF52811
type: mcu
arch: arm

4
boards/boards_legacy/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811_defconfig → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52811_defconfig

@ -2,10 +2,6 @@ @@ -2,10 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52811_QFAA=y
CONFIG_BOARD_NRF52840DK_NRF52811=y
# Enable MPU
CONFIG_ARM_MPU=y

0
boards/boards_legacy/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840-pinctrl.dtsi → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840-pinctrl.dtsi

0
boards/boards_legacy/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840.dts

2
boards/boards_legacy/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.yaml → boards/nordic_nrf/nrf52840dk/nrf52840dk_nrf52840.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nrf52840dk_nrf52840
identifier: nrf52840dk/nrf52840
name: nRF52840-DK-NRF52840
type: mcu
arch: arm

4
boards/boards_legacy/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig → boards/nordic_nrf/nrf52840dk/nrf52840dk_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_NRF52840DK_NRF52840=y
# Enable MPU
CONFIG_ARM_MPU=y

0
boards/boards_legacy/arm/nrf52840dk_nrf52811/pre_dt_board.cmake → boards/nordic_nrf/nrf52840dk/pre_dt_board.cmake

Loading…
Cancel
Save