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:
committed by
Carles Cufi
parent
0fdbe3552e
commit
ac73ed6dcd
6
boards/atmel/sam0/samd20_xpro/Kconfig.samd20_xpro
Normal file
6
boards/atmel/sam0/samd20_xpro/Kconfig.samd20_xpro
Normal 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
|
||||
5
boards/atmel/sam0/samd20_xpro/board.yml
Normal file
5
boards/atmel/sam0/samd20_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: samd20_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: samd20j18
|
||||
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
@@ -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
|
||||
**********
|
||||
@@ -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;
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user