boards: samd20_xpro: 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-10 15:08:41 +01:00
committed by Carles Cufi
parent 0fdbe3552e
commit ac73ed6dcd
13 changed files with 27 additions and 34 deletions

View File

@@ -0,0 +1,6 @@
# Copyright (c) 2018 Sean Nyekjaer
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAMD20_XPRO
select SOC_SAMD20J18

View File

@@ -0,0 +1,5 @@
board:
name: samd20_xpro
vendor: atmel
socs:
- name: samd20j18

View File

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@@ -1,4 +1,4 @@
.. _atsamd20_xpro:
.. _samd20_xpro:
SAM D20 Xplained Pro Evaluation Kit
###################################
@@ -15,14 +15,14 @@ hardware.
.. figure:: img/atsamd20_xpro.jpg
:width: 500px
:align: center
:alt: ATSAMD20-XPRO
:alt: SAMD20-XPRO
ATSAMD20-XPRO (Credit: `Microchip Technology`_)
SAMD20-XPRO (Credit: `Microchip Technology`_)
Hardware
********
- ATSAMD20J18 ARM Cortex-M0+ processor at 48 MHz
- SAMD20J18 ARM Cortex-M0+ processor at 48 MHz
- 32.768 kHz crystal oscillator
- 256 KiB flash memory and 32 KiB of RAM
- One yellow user LED
@@ -33,7 +33,7 @@ Hardware
Supported Features
==================
The atsamd20_xpro board configuration supports the following hardware
The samd20_xpro board configuration supports the following hardware
features:
.. list-table::
@@ -73,7 +73,7 @@ features:
Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/atsamd20_xpro/atsamd20_xpro_defconfig`.
:zephyr_file:`boards/atmel/sam0/samd20_xpro/samd20_xpro_defconfig`.
Connections and IOs
===================
@@ -114,7 +114,7 @@ Flashing
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: atsamd20_xpro
:board: samd20_xpro
:goals: build
:compact:
@@ -140,11 +140,11 @@ Flashing
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: atsamd20_xpro
:board: samd20_xpro
:goals: flash
:compact:
You should see "Hello World! atsamd20_xpro" in your terminal.
You should see "Hello World! samd20_xpro" in your terminal.
References
**********

View File

@@ -8,12 +8,12 @@
#include <freq.h>
#include <atmel/samd20.dtsi>
#include <atmel/samx2xx18.dtsi>
#include "atsamd20_xpro-pinctrl.dtsi"
#include "samd20_xpro-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "SAM D20 Xplained Pro";
compatible = "atsamd20,xpro", "atmel,samd20j18", "atmel,samd20";
compatible = "samd20,xpro", "atmel,samd20j18", "atmel,samd20";
chosen {
zephyr,console = &sercom3;

View File

@@ -1,13 +1,13 @@
identifier: atsamd20_xpro
identifier: samd20_xpro
name: SAM D20 Xplained Pro
type: mcu
arch: arm
ram: 32
flash: 256
toolchain:
- zephyr
- gnuarmemb
- xtools
flash: 256
ram: 32
supported:
- adc
- flash

View File

@@ -1,14 +1,12 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAMD20=y
CONFIG_SOC_PART_NUMBER_SAMD20J18=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
CONFIG_BOARD_ATSAMD20_XPRO=y
CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y

View File

@@ -1,8 +0,0 @@
# SAM D20 Xplained Pro Board configuration
# Copyright (c) 2018 Sean Nyekjaer
# SPDX-License-Identifier: Apache-2.0
config BOARD_ATSAMD20_XPRO
bool "SAM D20 Xplained Pro"
depends on SOC_PART_NUMBER_SAMD20J18

View File

@@ -1,8 +0,0 @@
# SAM D20 Xplained Pro board configuration
# Copyright (c) 2018 Sean Nyekjaer
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "atsamd20_xpro"
depends on BOARD_ATSAMD20_XPRO