boards: arm: thingy52_nrf52832: 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:07 +00:00
committed by Carles Cufi
parent dede0f6cd3
commit 862efd5a21
14 changed files with 22 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
if(CONFIG_CCS811)
zephyr_library()
zephyr_library_sources(board.c)
zephyr_library()
zephyr_library_sources(board.c)
endif()

View File

@@ -3,7 +3,7 @@
# Copyright (c) 2018 Aapo Vienamo
# SPDX-License-Identifier: Apache-2.0
if BOARD_THINGY52_NRF52832
if BOARD_THINGY52
config BOARD_CCS_VDD_PWR_CTRL_INIT_PRIORITY
int "CCS_VDD power rail init priority"
@@ -14,4 +14,4 @@ config BOARD_CCS_VDD_PWR_CTRL_INIT_PRIORITY
CCS811 gas sensor. The value has to be greater than
BOARD_VDD_PWR_CTRL_INIT_PRIORITY, but smaller than SENSOR_INIT_PRIORITY.
endif # BOARD_THINGY52_NRF52832
endif # BOARD_THINGY52

View File

@@ -3,12 +3,9 @@
# Copyright (c) 2018 Aapo Vienamo
# SPDX-License-Identifier: Apache-2.0
if BOARD_THINGY52_NRF52832
config BOARD
default "thingy52_nrf52832"
if BOARD_THINGY52
config BT_CTLR
default BT
endif # BOARD_THINGY52_NRF52832
endif # BOARD_THINGY52

View File

@@ -3,6 +3,5 @@
# Copyright (c) 2018 Aapo Vienamo
# SPDX-License-Identifier: Apache-2.0
config BOARD_THINGY52_NRF52832
bool "Thingy52 NRF52832"
depends on SOC_NRF52832_QFAA
config BOARD_THINGY52
select SOC_NRF52832_QFAA

View File

@@ -0,0 +1,5 @@
board:
name: thingy52
vendor: Nordic Semiconductor
socs:
- name: nrf52832

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -6,7 +6,7 @@ Thingy:52
Overview
********
Zephyr uses the thingy52_nrf52832 (PCA20020) board configuration for building
Zephyr uses the thingy52/nrf52832 (PCA20020) board configuration for building
for the Thingy:52 board. The board has the nRF52832 MCU with ARM Cortex-M4F
processor, a set of environmental sensors, a pushbutton, and two RGB LEDs.
@@ -366,7 +366,7 @@ The green lightwell LED can be tested with the :zephyr:code-sample:`blinky` exam
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: thingy52_nrf52832
:board: thingy52/nrf52832
:goals: build flash
@@ -376,7 +376,7 @@ sample.
.. zephyr-app-commands::
:zephyr-app: samples/sensor/hts221
:board: thingy52_nrf52832
:board: thingy52/nrf52832
:goals: build flash
References

View File

@@ -1,4 +1,4 @@
identifier: thingy52_nrf52832
identifier: thingy52/nrf52832
name: Thingy52-NRF52832
type: mcu
arch: arm

View File

@@ -1,9 +1,6 @@
# Copyright (c) 2018 Aapo Vienamo
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52832_QFAA=y
CONFIG_BOARD_THINGY52_NRF52832=y
# Enable regulators
CONFIG_REGULATOR=y
@@ -16,17 +13,17 @@ CONFIG_HW_STACK_PROTECTION=y
# Enable RTT
CONFIG_USE_SEGGER_RTT=y
# enable regulators (init priority adjusted so that they
# Enable regulators (init priority adjusted so that they
# are turned before I2C GPIO expander)
CONFIG_REGULATOR=y
CONFIG_REGULATOR_FIXED_INIT_PRIORITY=45
# 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