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 @@
# 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 @@
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 @@
.. _atsaml21_xpro: .. _saml21_xpro:
SAM L21 Xplained Pro Evaluation Kit SAM L21 Xplained Pro Evaluation Kit
################################### ###################################
@ -14,12 +14,12 @@ hardware.
.. image:: img/atsaml21-xpro.jpg .. image:: img/atsaml21-xpro.jpg
:align: center :align: center
:alt: ATSAML21-XPRO :alt: SAML21-XPRO
Hardware Hardware
******** ********
- ATSAML21J18 ARM Cortex-M0+ processor at 48 MHz - SAML21J18 ARM Cortex-M0+ processor at 48 MHz
- 32.768 kHz crystal oscillator - 32.768 kHz crystal oscillator
- 256 KiB flash memory, 32 KiB of SRAM, 8KB Low Power SRAM - 256 KiB flash memory, 32 KiB of SRAM, 8KB Low Power SRAM
- One yellow user LED - One yellow user LED
@ -30,7 +30,7 @@ Hardware
Supported Features Supported Features
================== ==================
The atsaml21_xpro board configuration supports the following hardware The saml21_xpro board configuration supports the following hardware
features: features:
.. list-table:: .. list-table::
@ -73,7 +73,7 @@ features:
Other hardware features are not currently supported by Zephyr. Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig 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 Pin Mapping
=========== ===========
@ -86,7 +86,7 @@ Xplained Pro Schematic`_.
.. image:: img/atsaml21-xpro-pinout.jpg .. image:: img/atsaml21-xpro-pinout.jpg
:align: center :align: center
:alt: ATSAML21-XPRO-pinout :alt: SAML21-XPRO-pinout
Default Zephyr Peripheral Mapping: Default Zephyr Peripheral Mapping:
---------------------------------- ----------------------------------
@ -154,7 +154,7 @@ Flashing
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/hello_world :zephyr-app: samples/hello_world
:board: atsaml21_xpro :board: saml21_xpro
:goals: build :goals: build
:compact: :compact:
@ -177,11 +177,11 @@ Flashing
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/hello_world :zephyr-app: samples/hello_world
:board: atsaml21_xpro :board: saml21_xpro
:goals: flash :goals: flash
:compact: :compact:
You should see "Hello World! atsaml21_xpro" in your terminal. You should see "Hello World! saml21_xpro" in your terminal.
References 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 @@
/dts-v1/; /dts-v1/;
#include <atmel/saml21.dtsi> #include <atmel/saml21.dtsi>
#include "atsaml21_xpro-pinctrl.dtsi" #include "saml21_xpro-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h> #include <zephyr/dt-bindings/input/input-event-codes.h>
/ { / {
model = "SAM L21 Xplained Pro"; model = "SAM L21 Xplained Pro";
compatible = "atsaml21,xpro", "atmel,saml21j18b", "atmel,saml21"; compatible = "saml21,xpro", "atmel,saml21j18b", "atmel,saml21";
chosen { chosen {
zephyr,console = &sercom3; 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 @@
# Copyright (c) 2021 Argentum Systems Ltd. # Copyright (c) 2021 Argentum Systems Ltd.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
identifier: atsaml21_xpro identifier: saml21_xpro
name: SAM L21 Xplained Pro name: SAM L21 Xplained Pro
type: mcu type: mcu
arch: arm arch: arm
ram: 32
flash: 256
toolchain: toolchain:
- zephyr - zephyr
- gnuarmemb - gnuarmemb
- xtools - xtools
flash: 256
ram: 32
supported: supported:
- adc - adc
- counter - counter

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

@ -1,15 +1,13 @@
# Copyright (c) 2021 Argentum Systems Ltd. # Copyright (c) 2021 Argentum Systems Ltd.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0 # 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=y
CONFIG_SOC_ATMEL_SAML_XOSC32K_AS_MAIN=y CONFIG_SOC_ATMEL_SAML_XOSC32K_AS_MAIN=y
CONFIG_BOARD_ATSAML21_XPRO=y
CONFIG_BUILD_OUTPUT_HEX=y CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=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 @@
# 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 @@
# 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