boards: saml21_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
ac73ed6dcd
commit
f11cf73df1
6
boards/atmel/sam0/saml21_xpro/Kconfig.saml21_xpro
Normal file
6
boards/atmel/sam0/saml21_xpro/Kconfig.saml21_xpro
Normal file
@@ -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
|
||||
5
boards/atmel/sam0/saml21_xpro/board.yml
Normal file
5
boards/atmel/sam0/saml21_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: saml21_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: saml21j18b
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -1,4 +1,4 @@
|
||||
.. _atsaml21_xpro:
|
||||
.. _saml21_xpro:
|
||||
|
||||
SAM L21 Xplained Pro Evaluation Kit
|
||||
###################################
|
||||
@@ -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
|
||||
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:
|
||||
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`_.
|
||||
|
||||
.. 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
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsaml21_xpro
|
||||
:board: saml21_xpro
|
||||
:goals: build
|
||||
:compact:
|
||||
|
||||
@@ -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
|
||||
**********
|
||||
@@ -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;
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user