boards: adafruit_trinket_m0: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke
2024-02-11 17:00:04 +01:00
committed by Carles Cufi
parent e9874671e2
commit 0b1db9c53d
12 changed files with 19 additions and 24 deletions

View File

@@ -0,0 +1,6 @@
# Copyright (c) 2018 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_ADAFRUIT_TRINKET_M0
select SOC_SAMD21E18A

View File

@@ -1,14 +1,14 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21E18A=y
CONFIG_BOARD_ADAFRUIT_TRINKET_M0=y
CONFIG_SOC_ATMEL_SAMD_OSC8M=y
CONFIG_SOC_ATMEL_SAMD_OSC8M_AS_MAIN=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_USE_DT_CODE_PARTITION=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y

View File

@@ -0,0 +1,5 @@
board:
name: adafruit_trinket_m0
vendor: adafruit
socs:
- name: samd21e18a

View File

@@ -56,7 +56,7 @@ features:
Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_trinket_m0/adafruit_trinket_m0_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_trinket_m0/adafruit_trinket_m0_defconfig`.
Connections and IOs
===================

View File

@@ -1,8 +0,0 @@
# Adafruit Trinket M0 board configuration
# Copyright (c) 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
config BOARD_ADAFRUIT_TRINKET_M0
bool "Adafruit Trinket M0"
depends on SOC_PART_NUMBER_SAMD21E18A

View File

@@ -1,8 +0,0 @@
# Adafruit Trinket M0 board configuration
# Copyright (c) 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "adafruit_trinket_m0"
depends on BOARD_ADAFRUIT_TRINKET_M0