Browse Source

boards: saml21_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
f11cf73df1
  1. 6
      boards/atmel/sam0/saml21_xpro/Kconfig.saml21_xpro
  2. 0
      boards/atmel/sam0/saml21_xpro/board.cmake
  3. 5
      boards/atmel/sam0/saml21_xpro/board.yml
  4. 0
      boards/atmel/sam0/saml21_xpro/doc/img/atsaml21-xpro-pinout.jpg
  5. 0
      boards/atmel/sam0/saml21_xpro/doc/img/atsaml21-xpro.jpg
  6. 18
      boards/atmel/sam0/saml21_xpro/doc/index.rst
  7. 0
      boards/atmel/sam0/saml21_xpro/saml21_xpro-pinctrl.dtsi
  8. 4
      boards/atmel/sam0/saml21_xpro/saml21_xpro.dts
  9. 7
      boards/atmel/sam0/saml21_xpro/saml21_xpro.yaml
  10. 6
      boards/atmel/sam0/saml21_xpro/saml21_xpro_defconfig
  11. 0
      boards/atmel/sam0/saml21_xpro/support/openocd.cfg
  12. 8
      boards/boards_legacy/arm/atsaml21_xpro/Kconfig.board
  13. 8
      boards/boards_legacy/arm/atsaml21_xpro/Kconfig.defconfig

6
boards/atmel/sam0/saml21_xpro/Kconfig.saml21_xpro

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
# Copyright (c) 2021 Argentum Systems Ltd.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAML21_XPRO
select SOC_SAML21J18B

0
boards/boards_legacy/arm/atsaml21_xpro/board.cmake → boards/atmel/sam0/saml21_xpro/board.cmake

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

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
board:
name: saml21_xpro
vendor: atmel
socs:
- name: saml21j18b

0
boards/boards_legacy/arm/atsaml21_xpro/doc/img/atsaml21-xpro-pinout.jpg → boards/atmel/sam0/saml21_xpro/doc/img/atsaml21-xpro-pinout.jpg

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

0
boards/boards_legacy/arm/atsaml21_xpro/doc/img/atsaml21-xpro.jpg → boards/atmel/sam0/saml21_xpro/doc/img/atsaml21-xpro.jpg

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

18
boards/boards_legacy/arm/atsaml21_xpro/doc/index.rst → boards/atmel/sam0/saml21_xpro/doc/index.rst

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
.. _atsaml21_xpro:
.. _saml21_xpro:
SAM L21 Xplained Pro Evaluation Kit
###################################
@ -14,12 +14,12 @@ hardware. @@ -14,12 +14,12 @@ hardware.
.. image:: img/atsaml21-xpro.jpg
:align: center
:alt: ATSAML21-XPRO
:alt: SAML21-XPRO
Hardware
********
- ATSAML21J18 ARM Cortex-M0+ processor at 48 MHz
- SAML21J18 ARM Cortex-M0+ processor at 48 MHz
- 32.768 kHz crystal oscillator
- 256 KiB flash memory, 32 KiB of SRAM, 8KB Low Power SRAM
- One yellow user LED
@ -30,7 +30,7 @@ Hardware @@ -30,7 +30,7 @@ Hardware
Supported Features
==================
The atsaml21_xpro board configuration supports the following hardware
The saml21_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
``boards/arm/atsaml21_xpro/atsaml21_xpro_defconfig``.
``boards/atmel/sam0/saml21_xpro/saml21_xpro_defconfig``.
Pin Mapping
===========
@ -86,7 +86,7 @@ Xplained Pro Schematic`_. @@ -86,7 +86,7 @@ Xplained Pro Schematic`_.
.. image:: img/atsaml21-xpro-pinout.jpg
:align: center
:alt: ATSAML21-XPRO-pinout
:alt: SAML21-XPRO-pinout
Default Zephyr Peripheral Mapping:
----------------------------------
@ -154,7 +154,7 @@ Flashing @@ -154,7 +154,7 @@ Flashing
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: atsaml21_xpro
:board: saml21_xpro
:goals: build
:compact:
@ -177,11 +177,11 @@ Flashing @@ -177,11 +177,11 @@ Flashing
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: atsaml21_xpro
:board: saml21_xpro
:goals: flash
:compact:
You should see "Hello World! atsaml21_xpro" in your terminal.
You should see "Hello World! saml21_xpro" in your terminal.
References
**********

0
boards/boards_legacy/arm/atsaml21_xpro/atsaml21_xpro-pinctrl.dtsi → boards/atmel/sam0/saml21_xpro/saml21_xpro-pinctrl.dtsi

4
boards/boards_legacy/arm/atsaml21_xpro/atsaml21_xpro.dts → boards/atmel/sam0/saml21_xpro/saml21_xpro.dts

@ -6,12 +6,12 @@ @@ -6,12 +6,12 @@
/dts-v1/;
#include <atmel/saml21.dtsi>
#include "atsaml21_xpro-pinctrl.dtsi"
#include "saml21_xpro-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "SAM L21 Xplained Pro";
compatible = "atsaml21,xpro", "atmel,saml21j18b", "atmel,saml21";
compatible = "saml21,xpro", "atmel,saml21j18b", "atmel,saml21";
chosen {
zephyr,console = &sercom3;

7
boards/boards_legacy/arm/atsaml21_xpro/atsaml21_xpro.yaml → boards/atmel/sam0/saml21_xpro/saml21_xpro.yaml

@ -1,15 +1,16 @@ @@ -1,15 +1,16 @@
# Copyright (c) 2021 Argentum Systems Ltd.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
identifier: atsaml21_xpro
identifier: saml21_xpro
name: SAM L21 Xplained Pro
type: mcu
arch: arm
ram: 32
flash: 256
toolchain:
- zephyr
- gnuarmemb
- xtools
flash: 256
ram: 32
supported:
- adc
- counter

6
boards/boards_legacy/arm/atsaml21_xpro/atsaml21_xpro_defconfig → boards/atmel/sam0/saml21_xpro/saml21_xpro_defconfig

@ -1,15 +1,13 @@ @@ -1,15 +1,13 @@
# Copyright (c) 2021 Argentum Systems Ltd.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAML21=y
CONFIG_SOC_PART_NUMBER_SAML21J18B=y
CONFIG_SOC_ATMEL_SAML_XOSC32K=y
CONFIG_SOC_ATMEL_SAML_XOSC32K_AS_MAIN=y
CONFIG_BOARD_ATSAML21_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/atsaml21_xpro/support/openocd.cfg → boards/atmel/sam0/saml21_xpro/support/openocd.cfg

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

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
# SAM L21 Xplained Pro board configuration
# Copyright (c) 2021 Argentum Systems Ltd.
# SPDX-License-Identifier: Apache-2.0
config BOARD_ATSAML21_XPRO
bool "SAM L21 Xplained Pro"
depends on SOC_PART_NUMBER_SAML21J18B

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

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
# SAM L21 Xplained Pro board configuration
# Copyright (c) 2021 Argentum Systems Ltd.
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "atsaml21_xpro"
depends on BOARD_ATSAML21_XPRO
Loading…
Cancel
Save