boards: arm: nrf9160_innblue22: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
committed by
Carles Cufi
parent
2b0dbb9d51
commit
40daa94f2d
@@ -1,14 +0,0 @@
|
||||
# nRF9160 innblue V2.2 board configuration
|
||||
|
||||
# Copyright (c) 2020 InnBlue
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_NRF9160_SICA
|
||||
|
||||
config BOARD_NRF9160_INNBLUE22
|
||||
bool "nRF9160 innblue v2.2"
|
||||
|
||||
config BOARD_NRF9160_INNBLUE22_NS
|
||||
bool "nRF9160 innblue V2.2 non-secure"
|
||||
|
||||
endif # SOC_NRF9160_SICA
|
||||
@@ -3,10 +3,7 @@
|
||||
# Copyright (c) 2020 InnBlue
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_NRF9160_INNBLUE22 || BOARD_NRF9160_INNBLUE22_NS
|
||||
|
||||
config BOARD
|
||||
default "nrf9160_innblue22"
|
||||
if BOARD_INNBLUE22
|
||||
|
||||
# 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_INNBLUE22 && TRUSTED_EXECUTION_SECURE
|
||||
if BOARD_INNBLUE22_NRF9160 && TRUSTED_EXECUTION_SECURE
|
||||
|
||||
config FLASH_LOAD_SIZE
|
||||
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
|
||||
|
||||
endif # BOARD_NRF9160_INNBLUE22 && TRUSTED_EXECUTION_SECURE
|
||||
endif # BOARD_INNBLUE22_NRF9160 && TRUSTED_EXECUTION_SECURE
|
||||
|
||||
if BOARD_NRF9160_INNBLUE22_NS
|
||||
if BOARD_INNBLUE22_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_INNBLUE22_NS
|
||||
endif # BOARD_INNBLUE22_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_INNBLUE22 || BOARD_NRF9160_INNBLUE22_NS
|
||||
endif # BOARD_INNBLUE22
|
||||
7
boards/innblue/innblue22/Kconfig.innblue22
Normal file
7
boards/innblue/innblue22/Kconfig.innblue22
Normal file
@@ -0,0 +1,7 @@
|
||||
# nRF9160 innblue V2.2 board configuration
|
||||
|
||||
# Copyright (c) 2020 InnBlue
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_INNBLUE22
|
||||
select SOC_NRF9160_SICA
|
||||
7
boards/innblue/innblue22/board.yml
Normal file
7
boards/innblue/innblue22/board.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
board:
|
||||
name: innblue22
|
||||
vendor: innblue
|
||||
socs:
|
||||
- name: nrf9160
|
||||
variants:
|
||||
- name: 'ns'
|
||||
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
@@ -29,7 +29,7 @@ The following parts are built into the board:
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The nrf9160_innblue22 board configuration supports the following
|
||||
The innblue22 board configuration supports the following
|
||||
hardware (as of nRF9160) features:
|
||||
|
||||
+-----------+------------+----------------------+
|
||||
@@ -86,7 +86,7 @@ Security components
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
nrf9160_innblue22 supports the Armv8m Security Extension, and by default boots
|
||||
innblue22 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_innblue22`` and
|
||||
1. Build the Secure Zephyr application using ``-DBOARD=innblue22`` and
|
||||
``CONFIG_TRUSTED_EXECUTION_SECURE=y`` in the application project configuration file.
|
||||
2. Build the Non-Secure Zephyr application using ``-DBOARD=nrf9160_innblue22_ns``.
|
||||
2. Build the Non-Secure Zephyr application using ``-DBOARD=innblue22/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_innblue22``.
|
||||
and :ref:`application_run`), using ``-DBOARD=innblue22``.
|
||||
|
||||
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_innblue22
|
||||
:board: innblue22
|
||||
:goals: build flash
|
||||
|
||||
Debugging
|
||||
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include "nrf9160_innblue22_common-pinctrl.dtsi"
|
||||
#include "innblue22_common-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
@@ -206,4 +206,4 @@
|
||||
};
|
||||
|
||||
/* Include partition configuration file */
|
||||
#include "nrf9160_innblue22_partition_conf.dtsi"
|
||||
#include "innblue22_partition_conf.dtsi"
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf9160_sica.dtsi>
|
||||
#include "nrf9160_innblue22_common.dtsi"
|
||||
#include "innblue22_common.dtsi"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: nrf9160_innblue22
|
||||
identifier: innblue22/nrf9160
|
||||
name: nRF9160-INNBLUE22
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -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_INNBLUE22=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
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
/dts-v1/;
|
||||
#include <nordic/nrf9160ns_sica.dtsi>
|
||||
#include "nrf9160_innblue22_common.dtsi"
|
||||
#include "innblue22_common.dtsi"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: nrf9160_innblue22_ns
|
||||
identifier: innblue22/nrf9160/ns
|
||||
name: nRF9160-INNBLUE22-Non-Secure
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -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_INNBLUE22_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
|
||||
Reference in New Issue
Block a user