boards: samr21_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
a87ea5bc0a
commit
854cff3905
6
boards/atmel/sam0/samr21_xpro/Kconfig.samr21_xpro
Normal file
6
boards/atmel/sam0/samr21_xpro/Kconfig.samr21_xpro
Normal file
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SAMR21_XPRO
|
||||
select SOC_SAMR21G18A
|
||||
5
boards/atmel/sam0/samr21_xpro/board.yml
Normal file
5
boards/atmel/sam0/samr21_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: samr21_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: samr21g18a
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -1,4 +1,4 @@
|
||||
.. _atsamr21_xpro:
|
||||
.. _samr21_xpro:
|
||||
|
||||
SAM R21 Xplained Pro Evaluation Kit
|
||||
###################################
|
||||
@@ -7,19 +7,19 @@ Overview
|
||||
********
|
||||
|
||||
The SAM R21 Xplained Pro is a compact evaluation board by Atmel featuring a
|
||||
ATSAMR21G18A SoC. The SoC includes a SAMR21 ARM Cortex-M0+ micro-controller
|
||||
SAMR21G18A SoC. The SoC includes a SAMR21 ARM Cortex-M0+ micro-controller
|
||||
bundled with Atmel's AT86RF233, a 2.4GHz IEEE802.15.4 compatible radio.
|
||||
The kit includes Atmel’s Embedded Debugger (EDBG), which provides a full
|
||||
debug interface without the need for additional hardware.
|
||||
|
||||
.. image:: img/atsamr21_xpro.jpg
|
||||
:align: center
|
||||
:alt: ATSAMR21-XPRO
|
||||
:alt: SAMR21-XPRO
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
- ATSAMR21G18A ARM Cortex-M0+ processor at 48 MHz
|
||||
- SAMR21G18A 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
|
||||
@@ -30,7 +30,7 @@ Hardware
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The atsamr21_xpro board configuration supports the following hardware
|
||||
The samr21_xpro board configuration supports the following hardware
|
||||
features:
|
||||
|
||||
+-----------+------------+--------------------------------------+
|
||||
@@ -56,7 +56,7 @@ features:
|
||||
Other hardware features are not currently supported by Zephyr.
|
||||
|
||||
The default configuration can be found in the Kconfig
|
||||
``boards/arm/atsamr21_xpro/atsamr21_xpro_defconfig``.
|
||||
``boards/atmel/sam0/samr21_xpro/samr21_xpro_defconfig``.
|
||||
|
||||
Pin Mapping
|
||||
===========
|
||||
@@ -69,7 +69,7 @@ Xplained Pro Schematic`_.
|
||||
|
||||
.. image:: img/ATSAMR21-XPRO-pinout.jpg
|
||||
:align: center
|
||||
:alt: ATSAMR21-XPRO-pinout
|
||||
:alt: SAMR21-XPRO-pinout
|
||||
|
||||
Default Zephyr Peripheral Mapping:
|
||||
----------------------------------
|
||||
@@ -178,7 +178,7 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsamr21_xpro
|
||||
:board: samr21_xpro
|
||||
:goals: build
|
||||
:compact:
|
||||
|
||||
@@ -204,11 +204,11 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsamr21_xpro
|
||||
:board: samr21_xpro
|
||||
:goals: flash
|
||||
:compact:
|
||||
|
||||
You should see "Hello World! atsamr21_xpro" in your terminal.
|
||||
You should see "Hello World! samr21_xpro" in your terminal.
|
||||
|
||||
References
|
||||
**********
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2019 Benjamin Valentin
|
||||
* Copyright (c) 2019-2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -7,12 +8,12 @@
|
||||
/dts-v1/;
|
||||
#include <atmel/samr21.dtsi>
|
||||
#include <atmel/samx2xx18.dtsi>
|
||||
#include "atsamr21_xpro-pinctrl.dtsi"
|
||||
#include "samr21_xpro-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "SAM R21 Xplained Pro";
|
||||
compatible = "atsamr21,xpro", "atmel,samr21g18a", "atmel,samr21";
|
||||
compatible = "samr21,xpro", "atmel,samr21g18a", "atmel,samr21";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &sercom0;
|
||||
@@ -1,16 +1,16 @@
|
||||
# Copyright (c) 2019-2020 Gerson Fernando Budke
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2019-2024 Gerson Fernando Budke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
identifier: atsamr21_xpro
|
||||
identifier: samr21_xpro
|
||||
name: SAM R21 Xplained Pro
|
||||
type: mcu
|
||||
arch: arm
|
||||
ram: 32
|
||||
flash: 256
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
flash: 256
|
||||
ram: 32
|
||||
supported:
|
||||
- adc
|
||||
- flash
|
||||
@@ -1,16 +1,13 @@
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2019 Gerson Fernando Budke
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_SAMR21=y
|
||||
CONFIG_SOC_PART_NUMBER_SAMR21G18A=y
|
||||
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
|
||||
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
|
||||
CONFIG_BOARD_ATSAMR21_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 R21 Xplained Pro Board configuration
|
||||
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ATSAMR21_XPRO
|
||||
bool "SAM R21 Xplained Pro"
|
||||
depends on SOC_PART_NUMBER_SAMR21G18A
|
||||
@@ -1,11 +0,0 @@
|
||||
# SAM R21 Xplained Pro board configuration
|
||||
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_ATSAMR21_XPRO
|
||||
|
||||
config BOARD
|
||||
default "atsamr21_xpro"
|
||||
|
||||
endif # BOARD_ATSAMR21_XPRO
|
||||
Reference in New Issue
Block a user