Commit 30fa4855 authored by Mara Furland's avatar Mara Furland Committed by Fabio Baltieri
Browse files

boards: qorvo: add DWM3001CDK support



Add support for the decawave DWM3001C board from qorvo

Signed-off-by: default avatarMara Furland <mara@fur.land>
parent 6d6d4565
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
# DecaWave DWM3001CDK board configuration

# Copyright (c) 2024 The Zephyr Project Contributors
# # SPDX-License-Identifier: Apache-2.0

if BOARD_DECAWAVE_DWM3001CDK

config BOARD_SERIAL_BACKEND_CDC_ACM
	bool "Use USB CDC as serial console backend"
	default y

endif # BOARD_DECAWAVE_DWM3001CDK
+7 −0
Original line number Diff line number Diff line
# DecaWave DWM3001CDK board configuration

# Copyright (c) 2019 Stéphane D'Alu
# SPDX-License-Identifier: Apache-2.0

config BOARD_DECAWAVE_DWM3001CDK
	select SOC_NRF52833_QDAA
+70 −0
Original line number Diff line number Diff line
# DecaWave DWM3001CDK board configuration

# Copyright (c) 2019 Stéphane D'Alu
# SPDX-License-Identifier: Apache-2.0

if BOARD_DECAWAVE_DWM3001CDK

config BT_CTLR
	default BT

config I2C
	default SENSOR

if BOARD_SERIAL_BACKEND_CDC_ACM

config USB_DEVICE_STACK
	default y

config USB_CDC_ACM
	default SERIAL

config CONSOLE
	default y

config UART_CONSOLE
	default CONSOLE

config USB_DEVICE_INITIALIZE_AT_BOOT
	default y if !MCUBOOT && CONSOLE

config SHELL_BACKEND_SERIAL_CHECK_DTR
	default SHELL
	depends on UART_LINE_CTRL

config UART_LINE_CTRL
	default y

config USB_DEVICE_REMOTE_WAKEUP
	default n

if LOG

# Logger cannot use itself to log
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
	default USB_CDC_ACM_LOG_LEVEL_OFF
endchoice

# Set USB log level to error only
choice USB_DEVICE_LOG_LEVEL_CHOICE
	default USB_DEVICE_LOG_LEVEL_ERR
endchoice

endif # LOG

if USB_DEVICE_STACK

# Enable UART driver, needed for CDC ACM
config SERIAL
	default y

endif # USB_DEVICE_STACK

endif # BOARD_SERIAL_BACKEND_CDC_ACM

DT_CHOSEN_ZEPHYR_CONSOLE := zephyr,console

config UART_CONSOLE
	default y if $(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_CONSOLE)) && CONSOLE

endif # BOARD_DECAWAVE_DWM3001CDK
+9 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000")
board_runner_args(pyocd "--target=nrf52833" "--frequency=4000000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
+5 −0
Original line number Diff line number Diff line
board:
  name: decawave_dwm3001cdk
  vendor: qorvo
  socs:
  - name: nrf52833
Loading