Browse Source

boards: arm: nrf9161dk_nrf9161: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
pull/69687/head
Jamie McCrae 1 year ago committed by Carles Cufi
parent
commit
cfc47a3a4b
  1. 14
      boards/boards_legacy/arm/nrf9161dk_nrf9161/Kconfig.board
  2. 8
      boards/boards_legacy/arm/nrf9161dk_nrf9161/revision.cmake
  3. 3
      boards/nordic_nrf/nrf9161dk/Kconfig.defconfig
  4. 7
      boards/nordic_nrf/nrf9161dk/Kconfig.nrf9161dk
  5. 0
      boards/nordic_nrf/nrf9161dk/board.cmake
  6. 13
      boards/nordic_nrf/nrf9161dk/board.yml
  7. 16
      boards/nordic_nrf/nrf9161dk/doc/index.rst
  8. 0
      boards/nordic_nrf/nrf9161dk/dts/bindings/nordic,nrf9161dk-nrf5340-reset.yaml
  9. 0
      boards/nordic_nrf/nrf9161dk/dts/nrf9161dk_buttons_on_io_expander.dtsi
  10. 0
      boards/nordic_nrf/nrf9161dk/dts/nrf9161dk_leds_on_io_expander.dtsi
  11. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161.dts
  12. 2
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161.yaml
  13. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_0_7_0.overlay
  14. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common-pinctrl.dtsi
  15. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common.dtsi
  16. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common_0_7_0.dtsi
  17. 13
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_defconfig
  18. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns.dts
  19. 2
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns.yaml
  20. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns_0_7_0.overlay
  21. 13
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns_defconfig
  22. 0
      boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_partition_conf.dtsi
  23. 0
      boards/nordic_nrf/nrf9161dk/pre_dt_board.cmake

14
boards/boards_legacy/arm/nrf9161dk_nrf9161/Kconfig.board

@ -1,14 +0,0 @@ @@ -1,14 +0,0 @@
# nRF9161 DK NRF9161 board configuration
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if SOC_NRF9161_LACA
config BOARD_NRF9161DK_NRF9161
bool "nRF9161 DK NRF9161"
config BOARD_NRF9161DK_NRF9161_NS
bool "nRF9161 DK NRF9161 non-secure"
endif # SOC_NRF9161_LACA

8
boards/boards_legacy/arm/nrf9161dk_nrf9161/revision.cmake

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
board_check_revision(
FORMAT MAJOR.MINOR.PATCH
DEFAULT_REVISION 0.9.0
VALID_REVISIONS 0.7.0 0.9.0
)

3
boards/boards_legacy/arm/nrf9161dk_nrf9161/Kconfig.defconfig → boards/nordic_nrf/nrf9161dk/Kconfig.defconfig

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if BOARD_NRF9161DK_NRF9161 || BOARD_NRF9161DK_NRF9161_NS
config BOARD
default "nrf9161dk_nrf9161"
# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-

7
boards/nordic_nrf/nrf9161dk/Kconfig.nrf9161dk

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
# nRF9161 DK NRF9161 board configuration
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config BOARD_NRF9161DK
select SOC_NRF9161_LACA

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/board.cmake → boards/nordic_nrf/nrf9161dk/board.cmake

13
boards/nordic_nrf/nrf9161dk/board.yml

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
board:
name: nrf9161dk
vendor: Nordic Semiconductor
socs:
- name: nrf9161
variants:
- name: 'ns'
revision:
format: major.minor.patch
default: "0.9.0"
revisions:
- name: "0.7.0"
- name: "0.9.0"

16
boards/boards_legacy/arm/nrf9161dk_nrf9161/doc/index.rst → boards/nordic_nrf/nrf9161dk/doc/index.rst

@ -7,7 +7,7 @@ Overview @@ -7,7 +7,7 @@ Overview
********
The nRF9161 DK (PCA10153) is a single-board development kit for evaluation and
development on the nRF9161 SiP for DECT NR+ and LTE-M/NB-IoT with GNSS. The nrf9161dk_nrf9161
development on the nRF9161 SiP for DECT NR+ and LTE-M/NB-IoT with GNSS. The ``nrf9161dk/nrf9161``
board configuration provides support for the Nordic Semiconductor nRF9161 ARM
Cortex-M33F CPU with ARMv8-M Security Extension and the following devices:
@ -41,7 +41,7 @@ is 32 MHz. @@ -41,7 +41,7 @@ is 32 MHz.
Supported Features
==================
The nrf9161dk_nrf9161 board configuration supports the following
The ``nrf9161dk/nrf9161`` board configuration supports the following
hardware features:
+-----------+------------+----------------------+
@ -120,7 +120,7 @@ Security components @@ -120,7 +120,7 @@ Security components
Programming and Debugging
*************************
nrf9161dk_nrf9161 supports the Armv8m Security Extension, and by default boots
``nrf9161dk/nrf9161`` supports the Armv8m Security Extension, and by default boots
in the Secure state.
Building Secure/Non-Secure Zephyr applications with Arm |reg| TrustZone |reg|
@ -128,9 +128,9 @@ Building Secure/Non-Secure Zephyr applications with Arm |reg| TrustZone |reg| @@ -128,9 +128,9 @@ Building Secure/Non-Secure Zephyr applications with Arm |reg| TrustZone |reg|
The process requires the following steps:
1. Build the Secure Zephyr application using ``-DBOARD=nrf9161dk_nrf9161`` and
1. Build the Secure Zephyr application using ``-DBOARD=nrf9161dk/nrf9161`` and
``CONFIG_TRUSTED_EXECUTION_SECURE=y`` in the application project configuration file.
2. Build the Non-Secure Zephyr application using ``-DBOARD=nrf9161dk_nrf9161_ns``.
2. Build the Non-Secure Zephyr application using ``-DBOARD=nrf9161dk/nrf9161/ns``.
3. Merge the two binaries together.
When building a Secure/Non-Secure application, the Secure application will
@ -142,7 +142,7 @@ Building a Secure only application @@ -142,7 +142,7 @@ Building a Secure only application
==================================
Build the Zephyr app in the usual way (see :ref:`build_an_application`
and :ref:`application_run`), using ``-DBOARD=nrf9161dk_nrf9161``.
and :ref:`application_run`), using ``-DBOARD=nrf9161dk/nrf9161``.
Flashing
========
@ -168,7 +168,7 @@ Then build and flash the application in the usual way. @@ -168,7 +168,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf9161dk_nrf9161
:board: nrf9161dk/nrf9161
:goals: build flash
Debugging
@ -189,7 +189,7 @@ the board are working properly with Zephyr: @@ -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/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi`.
:zephyr_file:`boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common.dtsi`.
References
**********

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/dts/bindings/nordic,nrf9161dk-nrf5340-reset.yaml → boards/nordic_nrf/nrf9161dk/dts/bindings/nordic,nrf9161dk-nrf5340-reset.yaml

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/dts/nrf9161dk_buttons_on_io_expander.dtsi → boards/nordic_nrf/nrf9161dk/dts/nrf9161dk_buttons_on_io_expander.dtsi

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/dts/nrf9161dk_leds_on_io_expander.dtsi → boards/nordic_nrf/nrf9161dk/dts/nrf9161dk_leds_on_io_expander.dtsi

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161.dts → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161.dts

2
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161.yaml → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nrf9161dk_nrf9161
identifier: nrf9161dk/nrf9161
name: nRF9161-DK-NRF9161
type: mcu
arch: arm

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_0_7_0.overlay → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_0_7_0.overlay

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common-pinctrl.dtsi → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common-pinctrl.dtsi

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common.dtsi

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common_0_7_0.dtsi → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_common_0_7_0.dtsi

13
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns_defconfig → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_defconfig

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9161_LACA=y
CONFIG_BOARD_NRF9161DK_NRF9161_NS=y
# Enable MPU
CONFIG_ARM_MPU=y
@ -13,15 +9,12 @@ CONFIG_HW_STACK_PROTECTION=y @@ -13,15 +9,12 @@ CONFIG_HW_STACK_PROTECTION=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns.dts → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns.dts

2
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns.yaml → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns.yaml

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
identifier: nrf9161dk_nrf9161_ns
identifier: nrf9161dk/nrf9161/ns
name: nRF9161-DK-NRF9161-Non-Secure
type: mcu
arch: arm

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns_0_7_0.overlay → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns_0_7_0.overlay

13
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_defconfig → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_ns_defconfig

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9161_LACA=y
CONFIG_BOARD_NRF9161DK_NRF9161=y
# Enable MPU
CONFIG_ARM_MPU=y
@ -13,12 +9,15 @@ CONFIG_HW_STACK_PROTECTION=y @@ -13,12 +9,15 @@ CONFIG_HW_STACK_PROTECTION=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y
# enable GPIO
# This board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
# Enable GPIO
CONFIG_GPIO=y
# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_partition_conf.dtsi → boards/nordic_nrf/nrf9161dk/nrf9161dk_nrf9161_partition_conf.dtsi

0
boards/boards_legacy/arm/nrf9161dk_nrf9161/pre_dt_board.cmake → boards/nordic_nrf/nrf9161dk/pre_dt_board.cmake

Loading…
Cancel
Save