boards: arm: sparkfun_thing_plus_nrf9160: 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:14 +00:00
committed by Carles Cufi
parent 594e4bad6b
commit ee6f7697ac
17 changed files with 32 additions and 45 deletions

View File

@@ -1,23 +0,0 @@
# Sparkfun nRF9160 Thing Plus configuration
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
# Copyright (c) 2020 Circuit Dojo LLC
# SPDX-License-Identifier: Apache-2.0
if SOC_NRF9160_SICA
config BOARD_SPARKFUN_THING_PLUS_NRF9160
bool "Sparkfun nRF9160 Thing Plus"
# The GPIO driver is required by this board's initialization code
# (board.c), so it is forced here to be enabled always, not only
# enabled by default (in defconfig).
select GPIO
config BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
bool "Sparkfun nRF9160 Thing Plus non-secure"
# The GPIO driver is required by this board's initialization code
# (board.c), so it is forced here to be enabled always, not only
# enabled by default (in defconfig).
select GPIO
endif # SOC_NRF9160_SICA

View File

@@ -0,0 +1,11 @@
# Sparkfun nRF9160 Thing Plus configuration
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
# Copyright (c) 2020 Circuit Dojo LLC
# SPDX-License-Identifier: Apache-2.0
config BOARD_SPARKFUN_THING_PLUS
# The GPIO driver is required by this board's initialization code
# (board.c), so it is forced here to be enabled always, not only
# enabled by default (in defconfig).
select GPIO

View File

@@ -4,10 +4,7 @@
# Copyright (c) 2020 Circuit Dojo LLC
# SPDX-License-Identifier: Apache-2.0
if BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
config BOARD
default "sparkfun_thing_plus_nrf9160"
if BOARD_SPARKFUN_THING_PLUS
# 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
@@ -34,6 +31,6 @@ config FLASH_LOAD_OFFSET
config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
endif # BOARD_SPARKFUN_THING_PLUS

View File

@@ -1,5 +1,8 @@
# Circuit Dojo nRF9160 Feather configuration
# Sparkfun nRF9160 Thing Plus configuration
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
# Copyright (c) 2020 Circuit Dojo LLC
# SPDX-License-Identifier: Apache-2.0
config BOARD_SPARKFUN_THING_PLUS
select SOC_NRF9160_SICA

View File

@@ -0,0 +1,7 @@
board:
name: sparkfun_thing_plus
vendor: SparkFun Electronics
socs:
- name: nrf9160
variants:
- name: 'ns'

View File

@@ -139,7 +139,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/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi`.
:zephyr_file:`boards/sparkfun/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi`.
References
**********

View File

@@ -1,4 +1,4 @@
identifier: sparkfun_thing_plus_nrf9160
identifier: sparkfun_thing_plus/nrf9160
name: Sparkfun-Thing-Plus-nRF9160
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_SPARKFUN_THING_PLUS_NRF9160=y
# Enable MPU
CONFIG_ARM_MPU=y
@@ -13,10 +9,10 @@ CONFIG_ARM_TRUSTZONE_M=y
# Hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

View File

@@ -1,4 +1,4 @@
identifier: sparkfun_thing_plus_nrf9160_ns
identifier: sparkfun_thing_plus/nrf9160/ns
name: Sparkfun-Thing-Plus-nRF9160-Non-Secure
type: mcu
arch: arm

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_SPARKFUN_THING_PLUS_NRF9160_NS=y
# Enable MPU
CONFIG_ARM_MPU=y
@@ -16,10 +12,10 @@ CONFIG_TRUSTED_EXECUTION_NONSECURE=y
# Hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# Enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y