Browse Source

boards: samd20_xpro: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
pull/69687/head
Gerson Fernando Budke 1 year ago committed by Carles Cufi
parent
commit
ac73ed6dcd
  1. 6
      boards/atmel/sam0/samd20_xpro/Kconfig.samd20_xpro
  2. 0
      boards/atmel/sam0/samd20_xpro/board.cmake
  3. 5
      boards/atmel/sam0/samd20_xpro/board.yml
  4. 0
      boards/atmel/sam0/samd20_xpro/doc/img/atsamd20_xpro.jpg
  5. 18
      boards/atmel/sam0/samd20_xpro/doc/index.rst
  6. 0
      boards/atmel/sam0/samd20_xpro/pre_dt_board.cmake
  7. 0
      boards/atmel/sam0/samd20_xpro/samd20_xpro-pinctrl.dtsi
  8. 4
      boards/atmel/sam0/samd20_xpro/samd20_xpro.dts
  9. 6
      boards/atmel/sam0/samd20_xpro/samd20_xpro.yaml
  10. 6
      boards/atmel/sam0/samd20_xpro/samd20_xpro_defconfig
  11. 0
      boards/atmel/sam0/samd20_xpro/support/openocd.cfg
  12. 8
      boards/boards_legacy/arm/atsamd20_xpro/Kconfig.board
  13. 8
      boards/boards_legacy/arm/atsamd20_xpro/Kconfig.defconfig

6
boards/atmel/sam0/samd20_xpro/Kconfig.samd20_xpro

@ -0,0 +1,6 @@ @@ -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

0
boards/boards_legacy/arm/atsamd20_xpro/board.cmake → boards/atmel/sam0/samd20_xpro/board.cmake

5
boards/atmel/sam0/samd20_xpro/board.yml

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

0
boards/boards_legacy/arm/atsamd20_xpro/doc/img/atsamd20_xpro.jpg → boards/atmel/sam0/samd20_xpro/doc/img/atsamd20_xpro.jpg

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

18
boards/boards_legacy/arm/atsamd20_xpro/doc/index.rst → boards/atmel/sam0/samd20_xpro/doc/index.rst

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
.. _atsamd20_xpro:
.. _samd20_xpro:
SAM D20 Xplained Pro Evaluation Kit
###################################
@ -15,14 +15,14 @@ hardware. @@ -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 @@ -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: @@ -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 @@ -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 @@ -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
**********

0
boards/boards_legacy/arm/atsamd20_xpro/pre_dt_board.cmake → boards/atmel/sam0/samd20_xpro/pre_dt_board.cmake

0
boards/boards_legacy/arm/atsamd20_xpro/atsamd20_xpro-pinctrl.dtsi → boards/atmel/sam0/samd20_xpro/samd20_xpro-pinctrl.dtsi

4
boards/boards_legacy/arm/atsamd20_xpro/atsamd20_xpro.dts → boards/atmel/sam0/samd20_xpro/samd20_xpro.dts

@ -8,12 +8,12 @@ @@ -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;

6
boards/boards_legacy/arm/atsamd20_xpro/atsamd20_xpro.yaml → boards/atmel/sam0/samd20_xpro/samd20_xpro.yaml

@ -1,13 +1,13 @@ @@ -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

6
boards/boards_legacy/arm/atsamd20_xpro/atsamd20_xpro_defconfig → boards/atmel/sam0/samd20_xpro/samd20_xpro_defconfig

@ -1,14 +1,12 @@ @@ -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

0
boards/boards_legacy/arm/atsamd20_xpro/support/openocd.cfg → boards/atmel/sam0/samd20_xpro/support/openocd.cfg

8
boards/boards_legacy/arm/atsamd20_xpro/Kconfig.board

@ -1,8 +0,0 @@ @@ -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

8
boards/boards_legacy/arm/atsamd20_xpro/Kconfig.defconfig

@ -1,8 +0,0 @@ @@ -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
Loading…
Cancel
Save