boards: samr34_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
e48e1f5d5b
commit
93dda5ee4b
6
boards/atmel/sam0/samr34_xpro/Kconfig.samr34_xpro
Normal file
6
boards/atmel/sam0/samr34_xpro/Kconfig.samr34_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_SAMR34_XPRO
|
||||
select SOC_SAMR34J18B
|
||||
5
boards/atmel/sam0/samr34_xpro/board.yml
Normal file
5
boards/atmel/sam0/samr34_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: samr34_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: samr34j18b
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -1,4 +1,4 @@
|
||||
.. _atsamr34_xpro:
|
||||
.. _samr34_xpro:
|
||||
|
||||
SAM R34 Xplained Pro Evaluation Kit
|
||||
###################################
|
||||
@@ -19,12 +19,12 @@ This board is also referred to as DM320111.
|
||||
|
||||
.. image:: img/atsamr34-xpro.jpg
|
||||
:align: center
|
||||
:alt: ATSAMR34-XPRO
|
||||
:alt: SAMR34-XPRO
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
- ATSAMR34J18 ARM Cortex-M0+ processor at 48 MHz
|
||||
- SAMR34J18 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
|
||||
@@ -35,7 +35,7 @@ Hardware
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The atsamr34_xpro board configuration supports the following hardware
|
||||
The samr34_xpro board configuration supports the following hardware
|
||||
features:
|
||||
|
||||
.. list-table::
|
||||
@@ -91,7 +91,7 @@ supported by the SOC:
|
||||
Other hardware features are not currently supported by Zephyr.
|
||||
|
||||
The default configuration can be found in the Kconfig
|
||||
``boards/arm/atsamr34_xpro/atsamr34_xpro_defconfig``.
|
||||
``boards/atmel/sam0/samr34_xpro/samr34_xpro_defconfig``.
|
||||
|
||||
Pin Mapping
|
||||
===========
|
||||
@@ -104,7 +104,7 @@ Xplained Pro Schematic`_.
|
||||
|
||||
.. image:: img/atsamr34-xpro-pinout.jpg
|
||||
:align: center
|
||||
:alt: ATSAMR34-XPRO-pinout
|
||||
:alt: SAMR34-XPRO-pinout
|
||||
|
||||
Default Zephyr Peripheral Mapping:
|
||||
----------------------------------
|
||||
@@ -168,7 +168,7 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsamr34_xpro
|
||||
:board: samr34_xpro
|
||||
:goals: build
|
||||
:compact:
|
||||
|
||||
@@ -191,11 +191,11 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsamr34_xpro
|
||||
:board: samr34_xpro
|
||||
:goals: flash
|
||||
:compact:
|
||||
|
||||
You should see "Hello World! atsamr34_xpro" in your terminal.
|
||||
You should see "Hello World! samr34_xpro" in your terminal.
|
||||
|
||||
References
|
||||
**********
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
/dts-v1/;
|
||||
#include <atmel/samr34.dtsi>
|
||||
#include "atsamr34_xpro-pinctrl.dtsi"
|
||||
#include "samr34_xpro-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "SAM R34 Xplained Pro";
|
||||
compatible = "atmel,atsamr34xpro", "atmel,samr34j18b", "atmel,samr34";
|
||||
compatible = "samr34,xpro", "atmel,samr34j18b", "atmel,samr34";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &sercom0;
|
||||
@@ -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: atsamr34_xpro
|
||||
identifier: samr34_xpro
|
||||
name: SAM R34 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_SAMR34=y
|
||||
CONFIG_SOC_PART_NUMBER_SAMR34J18B=y
|
||||
CONFIG_SOC_ATMEL_SAML_XOSC32K=y
|
||||
CONFIG_SOC_ATMEL_SAML_XOSC32K_AS_MAIN=y
|
||||
CONFIG_BOARD_ATSAMR34_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 R34 Xplained Pro board configuration
|
||||
|
||||
# Copyright (c) 2021 Argentum Systems Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ATSAMR34_XPRO
|
||||
bool "SAM R34 Xplained Pro"
|
||||
depends on SOC_PART_NUMBER_SAMR34J18B
|
||||
@@ -1,8 +0,0 @@
|
||||
# SAM R34 Xplained Pro board configuration
|
||||
|
||||
# Copyright (c) 2021 Argentum Systems Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD
|
||||
default "atsamr34_xpro"
|
||||
depends on BOARD_ATSAMR34_XPRO
|
||||
Reference in New Issue
Block a user