boards: arm: thingy53_nrf5340: 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
40daa94f2d
commit
33ad2b5bc6
@@ -1,7 +0,0 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if (CONFIG_BOARD_THINGY53_NRF5340_CPUAPP OR CONFIG_BOARD_THINGY53_NRF5340_CPUAPP_NS)
|
||||
zephyr_library()
|
||||
zephyr_library_sources(board.c)
|
||||
endif()
|
||||
@@ -1,21 +0,0 @@
|
||||
# Thingy53 NRF5340 board configuration
|
||||
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_NRF5340_CPUAPP_QKAA
|
||||
|
||||
config BOARD_THINGY53_NRF5340_CPUAPP
|
||||
bool "Thingy53 nRF5340 Application MCU"
|
||||
|
||||
config BOARD_THINGY53_NRF5340_CPUAPP_NS
|
||||
bool "Thingy53 nRF5340 Application MCU non-secure"
|
||||
|
||||
endif # SOC_NRF5340_CPUAPP_QKAA
|
||||
|
||||
if SOC_NRF5340_CPUNET_QKAA
|
||||
|
||||
config BOARD_THINGY53_NRF5340_CPUNET
|
||||
bool "Thingy53 nRF5340 Network MCU"
|
||||
|
||||
endif # SOC_NRF5340_CPUNET_QKAA
|
||||
7
boards/nordic_nrf/thingy53/CMakeLists.txt
Normal file
7
boards/nordic_nrf/thingy53/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(CONFIG_BOARD_THINGY53_NRF5340_CPUAPP OR CONFIG_BOARD_THINGY53_NRF5340_CPUAPP_NS)
|
||||
zephyr_library()
|
||||
zephyr_library_sources(board.c)
|
||||
endif()
|
||||
@@ -51,7 +51,7 @@ config BOARD_ENABLE_CPUNET
|
||||
|
||||
config DOMAIN_CPUNET_BOARD
|
||||
string
|
||||
default "thingy53_nrf5340_cpunet"
|
||||
default "thingy53/nrf5340/cpunet"
|
||||
depends on BOARD_ENABLE_CPUNET
|
||||
help
|
||||
The board which will be used for CPUNET domain when creating a multi
|
||||
@@ -65,7 +65,7 @@ if BOARD_THINGY53_NRF5340_CPUNET
|
||||
|
||||
config DOMAIN_CPUAPP_BOARD
|
||||
string
|
||||
default "thingy53_nrf5340_cpuapp"
|
||||
default "thingy53/nrf5340/cpuapp"
|
||||
help
|
||||
The board which will be used for CPUAPP domain when creating a multi
|
||||
image application where one or more images should be located on
|
||||
@@ -5,9 +5,6 @@
|
||||
|
||||
if BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS
|
||||
|
||||
config BOARD
|
||||
default "thingy53_nrf5340_cpuapp"
|
||||
|
||||
# Code Partition:
|
||||
#
|
||||
# For the secure version of the board the firmware is linked at the beginning
|
||||
@@ -140,9 +137,6 @@ endif # BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS
|
||||
|
||||
if BOARD_THINGY53_NRF5340_CPUNET
|
||||
|
||||
config BOARD
|
||||
default "thingy53_nrf5340_cpunet"
|
||||
|
||||
config BT_CTLR
|
||||
default BT
|
||||
|
||||
9
boards/nordic_nrf/thingy53/Kconfig.thingy53
Normal file
9
boards/nordic_nrf/thingy53/Kconfig.thingy53
Normal file
@@ -0,0 +1,9 @@
|
||||
# Thingy53 NRF5340 board configuration
|
||||
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_THINGY53
|
||||
select SOC_NRF5340_CPUAPP_QKAA if BOARD_THINGY53_NRF5340_CPUAPP
|
||||
select SOC_NRF5340_CPUAPP_QKAA if BOARD_THINGY53_NRF5340_CPUAPP_NS
|
||||
select SOC_NRF5340_CPUNET_QKAA if BOARD_THINGY53_NRF5340_CPUNET
|
||||
@@ -1,11 +1,9 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(CONFIG_BOARD_THINGY53_NRF5340_CPUAPP OR CONFIG_BOARD_THINGY53_NRF5340_CPUAPP_NS)
|
||||
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
|
||||
endif()
|
||||
|
||||
if(CONFIG_BOARD_THINGY53_NRF5340_CPUNET)
|
||||
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
|
||||
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
|
||||
elseif(CONFIG_BOARD_THINGY53_NRF5340_CPUNET)
|
||||
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
|
||||
endif()
|
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
||||
8
boards/nordic_nrf/thingy53/board.yml
Normal file
8
boards/nordic_nrf/thingy53/board.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
board:
|
||||
name: thingy53
|
||||
vendor: Nordic Semiconductor
|
||||
socs:
|
||||
- name: 'nrf5340'
|
||||
variants:
|
||||
- name: 'ns'
|
||||
cpucluster: 'cpuapp'
|
||||
@@ -6,7 +6,7 @@ Thingy:53
|
||||
Overview
|
||||
********
|
||||
|
||||
Zephyr uses the thingy53_nrf5340 board configuration for building
|
||||
Zephyr uses the ``thingy53/nrf5340`` board configuration for building
|
||||
for the Thingy:53 board. The board has the nRF5340 MCU processor, a set of
|
||||
environmental sensors, a pushbutton, and RGB LED.
|
||||
|
||||
@@ -18,8 +18,8 @@ The nRF5340 is a dual-core SoC based on the Arm® Cortex®-M33 architecture, wit
|
||||
* a secondary Arm Cortex-M33 core, with a reduced feature set, running at
|
||||
a fixed 64 MHz, referred to as the **network core**.
|
||||
|
||||
The nrf5340dk_nrf5340_cpuapp build target provides support for the application
|
||||
core on the nRF5340 SoC. The nrf5340dk_nrf5340_cpunet build target provides
|
||||
The ``thingy53/nrf5340/cpuapp`` build target provides support for the application
|
||||
core on the nRF5340 SoC. The ``thingy53/nrf5340/cpunet`` build target provides
|
||||
support for the network core on the nRF5340 SoC.
|
||||
|
||||
The `Nordic Semiconductor Infocenter`_ contains the processor's information and
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: thingy53_nrf5340_cpuapp
|
||||
identifier: thingy53/nrf5340/cpuapp
|
||||
name: Thingy53-NRF5340-application-MCU
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y
|
||||
CONFIG_SOC_NRF5340_CPUAPP_QKAA=y
|
||||
CONFIG_BOARD_THINGY53_NRF5340_CPUAPP=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
@@ -20,7 +16,7 @@ CONFIG_GPIO=y
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# Enable uart driver
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# Board Kconfig.defconfig enables USB CDC ACM and should disable USB remote
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: thingy53_nrf5340_cpuapp_ns
|
||||
identifier: thingy53/nrf5340/cpuapp/ns
|
||||
name: Thingy53-NRF5340-application-MCU-Non-Secure
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y
|
||||
CONFIG_SOC_NRF5340_CPUAPP_QKAA=y
|
||||
CONFIG_BOARD_THINGY53_NRF5340_CPUAPP_NS=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
@@ -23,7 +19,7 @@ CONFIG_GPIO=y
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# Enable uart driver
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# Board Kconfig.defconfig enables USB CDC ACM and should disable USB remote
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: thingy53_nrf5340_cpunet
|
||||
identifier: thingy53/nrf5340/cpunet
|
||||
name: Thingy53-NRF5340-network-MCU
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y
|
||||
CONFIG_SOC_NRF5340_CPUNET_QKAA=y
|
||||
CONFIG_BOARD_THINGY53_NRF5340_CPUNET=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
1
boards/nordic_nrf/thingy53/thingy53_nrf5340_defconfig
Normal file
1
boards/nordic_nrf/thingy53/thingy53_nrf5340_defconfig
Normal file
@@ -0,0 +1 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
Reference in New Issue
Block a user