From 4dbe97e5ea932a2b4af175c8fa3a9c738302af11 Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Fri, 2 Feb 2024 11:37:58 +0000 Subject: [PATCH] boards: arm: nrf52833dk: Convert to v2 Converts the board to hwmv2 Signed-off-by: Jamie McCrae --- .../arm/nrf52833dk_nrf52820/CMakeLists.txt | 7 ----- .../arm/nrf52833dk_nrf52820/Kconfig | 10 ------- .../arm/nrf52833dk_nrf52820/Kconfig.board | 8 ------ .../arm/nrf52833dk_nrf52820/Kconfig.defconfig | 14 ---------- .../arm/nrf52833dk_nrf52820/board.cmake | 9 ------- .../arm/nrf52833dk_nrf52820/doc/index.rst | 23 ---------------- .../arm/nrf52833dk_nrf52833/Kconfig.board | 8 ------ .../nrf52833dk_nrf52833/pre_dt_board.cmake | 7 ----- boards/nordic_nrf/nrf52833dk/CMakeLists.txt | 9 +++++++ .../nrf52833dk}/Kconfig | 2 +- .../nrf52833dk}/Kconfig.defconfig | 7 ++--- .../nordic_nrf/nrf52833dk/Kconfig.nrf52833dk | 8 ++++++ .../nrf52833dk}/board.cmake | 0 boards/nordic_nrf/nrf52833dk/board.yml | 6 +++++ .../nrf52833dk}/doc/index.rst | 26 ++++++++++++++++++- .../nrf52833dk_nrf52820-pinctrl.dtsi | 0 .../nrf52833dk}/nrf52833dk_nrf52820.dts | 0 .../nrf52833dk}/nrf52833dk_nrf52820.yaml | 2 +- .../nrf52833dk}/nrf52833dk_nrf52820_defconfig | 4 --- .../nrf52833dk_nrf52833-pinctrl.dtsi | 0 .../nrf52833dk}/nrf52833dk_nrf52833.dts | 0 .../nrf52833dk}/nrf52833dk_nrf52833.yaml | 2 +- .../nrf52833dk}/nrf52833dk_nrf52833_defconfig | 4 --- .../nrf52833dk}/pre_dt_board.cmake | 0 24 files changed, 53 insertions(+), 103 deletions(-) delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/CMakeLists.txt delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.board delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.defconfig delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/board.cmake delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52820/doc/index.rst delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.board delete mode 100644 boards/boards_legacy/arm/nrf52833dk_nrf52833/pre_dt_board.cmake create mode 100644 boards/nordic_nrf/nrf52833dk/CMakeLists.txt rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/Kconfig (84%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/Kconfig.defconfig (59%) create mode 100644 boards/nordic_nrf/nrf52833dk/Kconfig.nrf52833dk rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/board.cmake (100%) create mode 100644 boards/nordic_nrf/nrf52833dk/board.yml rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/doc/index.rst (89%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52820 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52820-pinctrl.dtsi (100%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52820 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52820.dts (100%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52820 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52820.yaml (87%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52820 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52820_defconfig (76%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52833-pinctrl.dtsi (100%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52833.dts (100%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52833.yaml (89%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52833 => nordic_nrf/nrf52833dk}/nrf52833dk_nrf52833_defconfig (76%) rename boards/{boards_legacy/arm/nrf52833dk_nrf52820 => nordic_nrf/nrf52833dk}/pre_dt_board.cmake (100%) diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/CMakeLists.txt b/boards/boards_legacy/arm/nrf52833dk_nrf52820/CMakeLists.txt deleted file mode 100644 index 413dee8fe2a..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 - -# The nrf52833dk_nrf52820 board mirrors the nRF52833 DK hardware. This -# needs to be considered by certain system initialization functionality -# residing in system_nrf52820.c and SoC dependent routines in nrfx_coredep.h. -zephyr_compile_definitions(DEVELOP_IN_NRF52833) -zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3) diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig b/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig deleted file mode 100644 index 03f71c60aea..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# nRF52833DK nRF52820 board configuration - -# Copyright (c) 2020 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_NRF52833DK_NRF52820 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.board b/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.board deleted file mode 100644 index 5be8867d804..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# nRF52833DK nRF52820 board configuration - -# Copyright (c) 2020 Nordic Semiconductor ASA -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NRF52833DK_NRF52820 - bool "nRF52833 DK NRF52820" - depends on SOC_NRF52820_QDAA diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.defconfig b/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.defconfig deleted file mode 100644 index 705821fa71d..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/Kconfig.defconfig +++ /dev/null @@ -1,14 +0,0 @@ -# nRF52833DK nRF52820 board configuration - -# Copyright (c) 2020 Nordic Semiconductor ASA -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_NRF52833DK_NRF52820 - -config BOARD - default "nrf52833dk_nrf52820" - -config BT_CTLR - default BT - -endif # BOARD_NRF52833DK_NRF52820 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/board.cmake b/boards/boards_legacy/arm/nrf52833dk_nrf52820/board.cmake deleted file mode 100644 index f7046fc0a1f..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/board.cmake +++ /dev/null @@ -1,9 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 - -board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000") -board_runner_args(pyocd "--target=nrf52820" "--frequency=4000000") -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/pyocd.board.cmake) -include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake) diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/doc/index.rst b/boards/boards_legacy/arm/nrf52833dk_nrf52820/doc/index.rst deleted file mode 100644 index e652e8735eb..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/doc/index.rst +++ /dev/null @@ -1,23 +0,0 @@ -.. _nrf52833dk_nrf52820: - -nRF52820 emulation on nRF52833 DK -################################# - -Overview -******** - -The nrf52833dk_nrf52820 board is a modified version of the -:ref:`nrf52833dk_nrf52833` that enforces the limitations imposed by the nRF52820 -IC, which is a variant of the original nRF52833. Since Nordic does not offer a -development kit for the nRF52820 you can use this board to develop for this IC -while using the nRF52833 Development Kit (PCA10100). - -See :ref:`nrf52833dk_nrf52833` for more information about the development board -and `nRF52820 website`_ for the official reference on the IC itself. - -References -********** - -.. target-notes:: - -.. _nRF52820 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52820 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.board b/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.board deleted file mode 100644 index 11ab4befc97..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# nRF52833 DK NRF52833 board configuration - -# Copyright (c) 2019 Nordic Semiconductor ASA -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_NRF52833DK_NRF52833 - bool "NRF52833 DK NRF52833" - depends on SOC_NRF52833_QIAA diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/pre_dt_board.cmake b/boards/boards_legacy/arm/nrf52833dk_nrf52833/pre_dt_board.cmake deleted file mode 100644 index 3369c21d3af..00000000000 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/pre_dt_board.cmake +++ /dev/null @@ -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") diff --git a/boards/nordic_nrf/nrf52833dk/CMakeLists.txt b/boards/nordic_nrf/nrf52833dk/CMakeLists.txt new file mode 100644 index 00000000000..f7df5c94a3b --- /dev/null +++ b/boards/nordic_nrf/nrf52833dk/CMakeLists.txt @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: Apache-2.0 + +if(CONFIG_BOARD_NRF52833DK_NRF52820) + # The nrf52833dk_nrf52820 board mirrors the nRF52833 DK hardware. This + # needs to be considered by certain system initialization functionality + # residing in system_nrf52820.c and SoC dependent routines in nrfx_coredep.h. + zephyr_compile_definitions(DEVELOP_IN_NRF52833) + zephyr_compile_definitions(NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3) +endif() diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig b/boards/nordic_nrf/nrf52833dk/Kconfig similarity index 84% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig rename to boards/nordic_nrf/nrf52833dk/Kconfig index 4b620ad5557..8b53d5bd73f 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig +++ b/boards/nordic_nrf/nrf52833dk/Kconfig @@ -7,4 +7,4 @@ config BOARD_ENABLE_DCDC bool "DCDC mode" select SOC_DCDC_NRF52X default y - depends on BOARD_NRF52833DK_NRF52833 + depends on BOARD_NRF52833DK diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.defconfig b/boards/nordic_nrf/nrf52833dk/Kconfig.defconfig similarity index 59% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.defconfig rename to boards/nordic_nrf/nrf52833dk/Kconfig.defconfig index 6ec17b78864..30c49fa7fb7 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/Kconfig.defconfig +++ b/boards/nordic_nrf/nrf52833dk/Kconfig.defconfig @@ -3,12 +3,9 @@ # Copyright (c) 2019 Nordic Semiconductor ASA # SPDX-License-Identifier: Apache-2.0 -if BOARD_NRF52833DK_NRF52833 - -config BOARD - default "nrf52833dk_nrf52833" +if BOARD_NRF52833DK config BT_CTLR default BT -endif # BOARD_NRF52833DK_NRF52833 +endif # BOARD_NRF52833DK diff --git a/boards/nordic_nrf/nrf52833dk/Kconfig.nrf52833dk b/boards/nordic_nrf/nrf52833dk/Kconfig.nrf52833dk new file mode 100644 index 00000000000..1705a59edec --- /dev/null +++ b/boards/nordic_nrf/nrf52833dk/Kconfig.nrf52833dk @@ -0,0 +1,8 @@ +# nRF52833 DK NRF52833 board configuration + +# Copyright (c) 2019 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_NRF52833DK + select SOC_NRF52820_QDAA if BOARD_NRF52833DK_NRF52820 + select SOC_NRF52833_QIAA if BOARD_NRF52833DK_NRF52833 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/board.cmake b/boards/nordic_nrf/nrf52833dk/board.cmake similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/board.cmake rename to boards/nordic_nrf/nrf52833dk/board.cmake diff --git a/boards/nordic_nrf/nrf52833dk/board.yml b/boards/nordic_nrf/nrf52833dk/board.yml new file mode 100644 index 00000000000..aa96e4040e2 --- /dev/null +++ b/boards/nordic_nrf/nrf52833dk/board.yml @@ -0,0 +1,6 @@ +board: + name: nrf52833dk + vendor: Nordic Semiconductor + socs: + - name: nrf52820 + - name: nrf52833 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/doc/index.rst b/boards/nordic_nrf/nrf52833dk/doc/index.rst similarity index 89% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/doc/index.rst rename to boards/nordic_nrf/nrf52833dk/doc/index.rst index 126b1266d52..d5cfeca2ea9 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/doc/index.rst +++ b/boards/nordic_nrf/nrf52833dk/doc/index.rst @@ -155,7 +155,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/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts`. +:zephyr_file:`boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.dts`. Changing UART1 pins ******************* @@ -215,3 +215,27 @@ References .. _Nordic Semiconductor Infocenter: https://infocenter.nordicsemi.com .. _J-Link Software and documentation pack: https://www.segger.com/jlink-software.html .. _nRF52833 Product Specification: https://infocenter.nordicsemi.com/pdf/nRF52833_OPS_v0.7.pdf + +.. _nrf52833dk_nrf52820: + +nRF52820 emulation on nRF52833 DK +################################# + +Overview +******** + +The nrf52833dk_nrf52820 board is a modified version of the +:ref:`nrf52833dk_nrf52833` that enforces the limitations imposed by the nRF52820 +IC, which is a variant of the original nRF52833. Since Nordic does not offer a +development kit for the nRF52820 you can use this board to develop for this IC +while using the nRF52833 Development Kit (PCA10100). + +See :ref:`nrf52833dk_nrf52833` for more information about the development board +and `nRF52820 website`_ for the official reference on the IC itself. + +References +********** + +.. target-notes:: + +.. _nRF52820 website: https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52820 diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820-pinctrl.dtsi b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820-pinctrl.dtsi similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820-pinctrl.dtsi rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820-pinctrl.dtsi diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820.dts similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820.dts diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.yaml b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820.yaml similarity index 87% rename from boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.yaml rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820.yaml index 1e31da83439..b2d59ed4e41 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.yaml +++ b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820.yaml @@ -1,4 +1,4 @@ -identifier: nrf52833dk_nrf52820 +identifier: nrf52833dk/nrf52820 name: nRF52833-DK-NRF52820 type: mcu arch: arm diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820_defconfig b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820_defconfig similarity index 76% rename from boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820_defconfig rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820_defconfig index f953cca65f1..8daa29dc473 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820_defconfig +++ b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52820_defconfig @@ -1,9 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_NRF52X=y -CONFIG_SOC_NRF52820_QDAA=y -CONFIG_BOARD_NRF52833DK_NRF52820=y - # Enable MPU CONFIG_ARM_MPU=y diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833-pinctrl.dtsi b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833-pinctrl.dtsi similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833-pinctrl.dtsi rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833-pinctrl.dtsi diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.dts similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.dts diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.yaml b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.yaml similarity index 89% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.yaml rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.yaml index 24cacd6ffa3..cd3ed1b54d2 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.yaml +++ b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833.yaml @@ -1,4 +1,4 @@ -identifier: nrf52833dk_nrf52833 +identifier: nrf52833dk/nrf52833 name: nRF52833-DK-NRF52833 type: mcu arch: arm diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833_defconfig b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833_defconfig similarity index 76% rename from boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833_defconfig rename to boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833_defconfig index d4d96e6e395..8daa29dc473 100644 --- a/boards/boards_legacy/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833_defconfig +++ b/boards/nordic_nrf/nrf52833dk/nrf52833dk_nrf52833_defconfig @@ -1,9 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_SERIES_NRF52X=y -CONFIG_SOC_NRF52833_QIAA=y -CONFIG_BOARD_NRF52833DK_NRF52833=y - # Enable MPU CONFIG_ARM_MPU=y diff --git a/boards/boards_legacy/arm/nrf52833dk_nrf52820/pre_dt_board.cmake b/boards/nordic_nrf/nrf52833dk/pre_dt_board.cmake similarity index 100% rename from boards/boards_legacy/arm/nrf52833dk_nrf52820/pre_dt_board.cmake rename to boards/nordic_nrf/nrf52833dk/pre_dt_board.cmake