boards: arm: nrf9160_innblue21: 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:15 +00:00
committed by Carles Cufi
parent ee6f7697ac
commit 2b0dbb9d51
17 changed files with 38 additions and 51 deletions

View File

@@ -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

View File

@@ -3,10 +3,7 @@
# Copyright (c) 2020 InnBlue
# SPDX-License-Identifier: Apache-2.0
if BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS
config BOARD
default "nrf9160_innblue21"
if BOARD_INNBLUE21
# 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
@@ -22,14 +19,14 @@ config BOARD
# Workaround for not being able to have commas in macro arguments
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
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
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
@@ -37,7 +34,7 @@ config FLASH_LOAD_OFFSET
config FLASH_LOAD_SIZE
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
default y if BT
@@ -45,4 +42,4 @@ config BT_HCI_VS
config REGULATOR
default y if SENSOR
endif # BOARD_NRF9160_INNBLUE21 || BOARD_NRF9160_INNBLUE21_NS
endif # BOARD_INNBLUE21

View File

@@ -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

View File

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

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -29,7 +29,7 @@ The following parts are built into the board:
Supported Features
==================
The nrf9160_innblue21 board configuration supports the following
The innblue21 board configuration supports the following
hardware (as of nRF9160) features:
+-----------+------------+----------------------+
@@ -86,7 +86,7 @@ Security components
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.
Building Secure/Non-Secure Zephyr applications
@@ -94,9 +94,9 @@ Building Secure/Non-Secure Zephyr applications
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.
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.
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`
and :ref:`application_run`), using ``-DBOARD=nrf9160_innblue21``.
and :ref:`application_run`), using ``-DBOARD=innblue21``.
Flashing
========
@@ -134,7 +134,7 @@ Then build and flash the application in the usual way.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: nrf9160_innblue21
:board: innblue21
:goals: build flash
Debugging

View File

@@ -3,7 +3,7 @@
*
* 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>
/ {
@@ -202,4 +202,4 @@
};
/* Include partition configuration file */
#include "nrf9160_innblue21_partition_conf.dtsi"
#include "innblue21_partition_conf.dtsi"

View File

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

View File

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

View File

@@ -1,23 +1,18 @@
# Copyright (c) 2020 InnBlue
# 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
CONFIG_ARM_MPU=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=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

View File

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

View File

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

View File

@@ -1,11 +1,6 @@
# Copyright (c) 2020 InnBlue
# 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
CONFIG_ARM_MPU=y
@@ -15,12 +10,12 @@ 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