Browse Source

boards: arm: nrf9160_innblue21: 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
2b0dbb9d51
  1. 14
      boards/boards_legacy/arm/nrf9160_innblue21/Kconfig.board
  2. 15
      boards/innblue/innblue21/Kconfig.defconfig
  3. 7
      boards/innblue/innblue21/Kconfig.innblue21
  4. 0
      boards/innblue/innblue21/board.cmake
  5. 7
      boards/innblue/innblue21/board.yml
  6. 0
      boards/innblue/innblue21/doc/img/nrf9160_innblue21.jpg
  7. 12
      boards/innblue/innblue21/doc/index.rst
  8. 0
      boards/innblue/innblue21/innblue21_common-pinctrl.dtsi
  9. 4
      boards/innblue/innblue21/innblue21_common.dtsi
  10. 2
      boards/innblue/innblue21/innblue21_nrf9160.dts
  11. 2
      boards/innblue/innblue21/innblue21_nrf9160.yaml
  12. 11
      boards/innblue/innblue21/innblue21_nrf9160_defconfig
  13. 2
      boards/innblue/innblue21/innblue21_nrf9160_ns.dts
  14. 2
      boards/innblue/innblue21/innblue21_nrf9160_ns.yaml
  15. 11
      boards/innblue/innblue21/innblue21_nrf9160_ns_defconfig
  16. 0
      boards/innblue/innblue21/innblue21_partition_conf.dtsi
  17. 0
      boards/innblue/innblue21/pre_dt_board.cmake

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

@ -1,14 +0,0 @@
# nRF9160 innblue V2.1 board configuration
# Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0
if SOC_NRF9160_SICA
config BOARD_NRF9160_INNBLUE21
bool "nRF9160 innblue v2.1"
config BOARD_NRF9160_INNBLUE21_NS
bool "nRF9160 innblue v2.1 non-secure"
endif # SOC_NRF9160_SICA

15
boards/boards_legacy/arm/nrf9160_innblue21/Kconfig.defconfig → boards/innblue/innblue21/Kconfig.defconfig

@ -3,10 +3,7 @@
# Copyright (c) 2020 InnBlue # Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS if BOARD_INNBLUE21
config BOARD
default "nrf9160_innblue21"
# For the secure version of the board the firmware is linked at the beginning # 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 # of the flash, or into the code-partition defined in DT if it is intended to
@ -22,14 +19,14 @@ config BOARD
# Workaround for not being able to have commas in macro arguments # Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
if BOARD_NRF9160_INNBLUE21 && TRUSTED_EXECUTION_SECURE if BOARD_INNBLUE21_NRF9160 && TRUSTED_EXECUTION_SECURE
config FLASH_LOAD_SIZE config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
endif # BOARD_NRF9160_INNBLUE21 && TRUSTED_EXECUTION_SECURE endif # BOARD_INNBLUE21_NRF9160 && TRUSTED_EXECUTION_SECURE
if BOARD_NRF9160_INNBLUE21_NS if BOARD_INNBLUE21_NRF9160_NS
config FLASH_LOAD_OFFSET config FLASH_LOAD_OFFSET
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
@ -37,7 +34,7 @@ config FLASH_LOAD_OFFSET
config FLASH_LOAD_SIZE config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
endif # BOARD_NRF9160_INNBLUE21_NS endif # BOARD_INNBLUE21_NRF9160_NS
config BT_HCI_VS config BT_HCI_VS
default y if BT default y if BT
@ -45,4 +42,4 @@ config BT_HCI_VS
config REGULATOR config REGULATOR
default y if SENSOR default y if SENSOR
endif # BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS endif # BOARD_INNBLUE21

7
boards/innblue/innblue21/Kconfig.innblue21

@ -0,0 +1,7 @@
# nRF9160 innblue V2.1 board configuration
# Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0
config BOARD_INNBLUE21
select SOC_NRF9160_SICA

0
boards/boards_legacy/arm/nrf9160_innblue21/board.cmake → boards/innblue/innblue21/board.cmake

7
boards/innblue/innblue21/board.yml

@ -0,0 +1,7 @@
board:
name: innblue21
vendor: innblue
socs:
- name: nrf9160
variants:
- name: 'ns'

0
boards/boards_legacy/arm/nrf9160_innblue21/doc/img/nrf9160_innblue21.jpg → boards/innblue/innblue21/doc/img/nrf9160_innblue21.jpg

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

12
boards/boards_legacy/arm/nrf9160_innblue21/doc/index.rst → boards/innblue/innblue21/doc/index.rst

@ -29,7 +29,7 @@ The following parts are built into the board:
Supported Features Supported Features
================== ==================
The nrf9160_innblue21 board configuration supports the following The innblue21 board configuration supports the following
hardware (as of nRF9160) features: hardware (as of nRF9160) features:
+-----------+------------+----------------------+ +-----------+------------+----------------------+
@ -86,7 +86,7 @@ Security components
Programming and Debugging Programming and Debugging
************************* *************************
nrf9160_innblue21 supports the Armv8m Security Extension, and by default boots innblue21 supports the Armv8m Security Extension, and by default boots
in the Secure state. in the Secure state.
Building Secure/Non-Secure Zephyr applications Building Secure/Non-Secure Zephyr applications
@ -94,9 +94,9 @@ Building Secure/Non-Secure Zephyr applications
The process requires the following steps: The process requires the following steps:
1. Build the Secure Zephyr application using ``-DBOARD=nrf9160_innblue21`` and 1. Build the Secure Zephyr application using ``-DBOARD=innblue21`` and
``CONFIG_TRUSTED_EXECUTION_SECURE=y`` in the application project configuration file. ``CONFIG_TRUSTED_EXECUTION_SECURE=y`` in the application project configuration file.
2. Build the Non-Secure Zephyr application using ``-DBOARD=nrf9160_innblue21_ns``. 2. Build the Non-Secure Zephyr application using ``-DBOARD=innblue21/nrf9160/ns``.
3. Merge the two binaries together. 3. Merge the two binaries together.
When building a Secure/Non-Secure application, the Secure application will When building a Secure/Non-Secure application, the Secure application will
@ -108,7 +108,7 @@ Building a Secure only application
================================== ==================================
Build the Zephyr app in the usual way (see :ref:`build_an_application` Build the Zephyr app in the usual way (see :ref:`build_an_application`
and :ref:`application_run`), using ``-DBOARD=nrf9160_innblue21``. and :ref:`application_run`), using ``-DBOARD=innblue21``.
Flashing Flashing
======== ========
@ -134,7 +134,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/hello_world :zephyr-app: samples/hello_world
:board: nrf9160_innblue21 :board: innblue21
:goals: build flash :goals: build flash
Debugging Debugging

0
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_common-pinctrl.dtsi → boards/innblue/innblue21/innblue21_common-pinctrl.dtsi

4
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_common.dtsi → boards/innblue/innblue21/innblue21_common.dtsi

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include "nrf9160_innblue21_common-pinctrl.dtsi" #include "innblue21_common-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h> #include <zephyr/dt-bindings/input/input-event-codes.h>
/ { / {
@ -202,4 +202,4 @@
}; };
/* Include partition configuration file */ /* Include partition configuration file */
#include "nrf9160_innblue21_partition_conf.dtsi" #include "innblue21_partition_conf.dtsi"

2
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21.dts → boards/innblue/innblue21/innblue21_nrf9160.dts

@ -6,7 +6,7 @@
/dts-v1/; /dts-v1/;
#include <nordic/nrf9160_sica.dtsi> #include <nordic/nrf9160_sica.dtsi>
#include "nrf9160_innblue21_common.dtsi" #include "innblue21_common.dtsi"
/ { / {
chosen { chosen {

2
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21.yaml → boards/innblue/innblue21/innblue21_nrf9160.yaml

@ -1,4 +1,4 @@
identifier: nrf9160_innblue21 identifier: innblue21/nrf9160
name: nRF9160-INNBLUE21 name: nRF9160-INNBLUE21
type: mcu type: mcu
arch: arm arch: arm

11
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_defconfig → boards/innblue/innblue21/innblue21_nrf9160_defconfig

@ -1,23 +1,18 @@
# Copyright (c) 2020 InnBlue # Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SOC / Board
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_NRF9160_INNBLUE21=y
# Enable MPU # Enable MPU
CONFIG_ARM_MPU=y CONFIG_ARM_MPU=y
# Enable TrustZone-M # Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y CONFIG_ARM_TRUSTZONE_M=y
# enable GPIO # Enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y
# Enable uart driver # Enable UART driver
CONFIG_SERIAL=y CONFIG_SERIAL=y
# enable console # Enable console
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y

2
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_ns.dts → boards/innblue/innblue21/innblue21_nrf9160_ns.dts

@ -6,7 +6,7 @@
/dts-v1/; /dts-v1/;
#include <nordic/nrf9160ns_sica.dtsi> #include <nordic/nrf9160ns_sica.dtsi>
#include "nrf9160_innblue21_common.dtsi" #include "innblue21_common.dtsi"
/ { / {
chosen { chosen {

2
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_ns.yaml → boards/innblue/innblue21/innblue21_nrf9160_ns.yaml

@ -1,4 +1,4 @@
identifier: nrf9160_innblue21_ns identifier: innblue21/nrf9160/ns
name: nRF9160-INNBLUE21-Non-Secure name: nRF9160-INNBLUE21-Non-Secure
type: mcu type: mcu
arch: arm arch: arm

11
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_ns_defconfig → boards/innblue/innblue21/innblue21_nrf9160_ns_defconfig

@ -1,11 +1,6 @@
# Copyright (c) 2020 InnBlue # Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SOC / Board
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_NRF9160_INNBLUE21_NS=y
# Enable MPU # Enable MPU
CONFIG_ARM_MPU=y CONFIG_ARM_MPU=y
@ -15,12 +10,12 @@ CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware # This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y CONFIG_TRUSTED_EXECUTION_NONSECURE=y
# enable GPIO # Enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y
# Enable uart driver # Enable UART driver
CONFIG_SERIAL=y CONFIG_SERIAL=y
# enable console # Enable console
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y

0
boards/boards_legacy/arm/nrf9160_innblue21/nrf9160_innblue21_partition_conf.dtsi → boards/innblue/innblue21/innblue21_partition_conf.dtsi

0
boards/boards_legacy/arm/nrf9160_innblue21/pre_dt_board.cmake → boards/innblue/innblue21/pre_dt_board.cmake

Loading…
Cancel
Save