boards: same54_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
93dda5ee4b
commit
6b3bdb7364
@@ -1,13 +1,9 @@
|
||||
# SAM E54 Xplained Pro board configuration
|
||||
#
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_ATSAME54_XPRO
|
||||
|
||||
config BOARD
|
||||
default "atsame54_xpro"
|
||||
|
||||
if ETH_SAM_GMAC
|
||||
|
||||
# Read MAC address from AT24MAC402 EEPROM
|
||||
@@ -30,5 +26,3 @@ config NET_L2_ETHERNET
|
||||
default y
|
||||
|
||||
endif # NETWORKING
|
||||
|
||||
endif # BOARD_ATSAME54_XPRO
|
||||
6
boards/atmel/sam0/same54_xpro/Kconfig.same54_xpro
Normal file
6
boards/atmel/sam0/same54_xpro/Kconfig.same54_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_SAME54_XPRO
|
||||
select SOC_SAME54P20A
|
||||
5
boards/atmel/sam0/same54_xpro/board.yml
Normal file
5
boards/atmel/sam0/same54_xpro/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: same54_xpro
|
||||
vendor: atmel
|
||||
socs:
|
||||
- name: same54p20a
|
||||
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -1,4 +1,4 @@
|
||||
.. _atsame54_xpro:
|
||||
.. _same54_xpro:
|
||||
|
||||
SAM E54 Xplained Pro Evaluation Kit
|
||||
###################################
|
||||
@@ -14,12 +14,12 @@ hardware.
|
||||
|
||||
.. image:: img/atsame54_xpro.jpg
|
||||
:align: center
|
||||
:alt: ATSAME54-XPRO
|
||||
:alt: SAME54-XPRO
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
- ATSAME54P20A ARM Cortex-M4F processor at 120 MHz
|
||||
- SAME54P20A ARM Cortex-M4F processor at 120 MHz
|
||||
- 32.768 kHz crystal oscillator
|
||||
- 12 MHz crystal oscillator
|
||||
- 1024 KiB flash memory and 256 KiB of RAM
|
||||
@@ -43,7 +43,7 @@ Hardware
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The atsame54_xpro board configuration supports the following hardware
|
||||
The same54_xpro board configuration supports the following hardware
|
||||
features:
|
||||
|
||||
+---------------+------------+----------------------------+
|
||||
@@ -97,7 +97,7 @@ features:
|
||||
Other hardware features are not currently supported by Zephyr.
|
||||
|
||||
The default configuration can be found in the Kconfig
|
||||
``boards/arm/atsame54_xpro/atsame54_xpro_defconfig``.
|
||||
``boards/atmel/sam0/same54_xpro/same54_xpro_defconfig``.
|
||||
|
||||
Pin Mapping
|
||||
===========
|
||||
@@ -110,7 +110,7 @@ Xplained Pro Schematic`_.
|
||||
|
||||
.. image:: img/ATSAME54-XPRO-pinout.jpg
|
||||
:align: center
|
||||
:alt: ATSAME54-XPRO-pinout
|
||||
:alt: SAME54-XPRO-pinout
|
||||
|
||||
Default Zephyr Peripheral Mapping:
|
||||
----------------------------------
|
||||
@@ -183,7 +183,7 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsame54_xpro
|
||||
:board: same54_xpro
|
||||
:goals: build
|
||||
:compact:
|
||||
|
||||
@@ -209,11 +209,11 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: atsame54_xpro
|
||||
:board: same54_xpro
|
||||
:goals: flash
|
||||
:compact:
|
||||
|
||||
You should see "Hello World! atsame54_xpro" in your terminal.
|
||||
You should see "Hello World! same54_xpro" in your terminal.
|
||||
|
||||
References
|
||||
**********
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
/dts-v1/;
|
||||
#include <atmel/same5xx20.dtsi>
|
||||
#include "atsame54_xpro-pinctrl.dtsi"
|
||||
#include "same54_xpro-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "SAM E54 Xplained Pro";
|
||||
compatible = "atsame54,xpro", "atmel,same54p20a", "atmel,same54";
|
||||
compatible = "same54,xpro", "atmel,same54p20a", "atmel,same54";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &sercom2;
|
||||
@@ -53,6 +53,10 @@
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <120000000>;
|
||||
};
|
||||
|
||||
&tcc0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-tcc-pwm";
|
||||
@@ -1,23 +1,24 @@
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
identifier: atsame54_xpro
|
||||
identifier: same54_xpro
|
||||
name: SAM E54 Xplained Pro
|
||||
type: mcu
|
||||
arch: arm
|
||||
ram: 256
|
||||
flash: 1024
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
flash: 1024
|
||||
ram: 256
|
||||
supported:
|
||||
- adc
|
||||
- flash
|
||||
- gpio
|
||||
- i2c
|
||||
- netif:eth
|
||||
- pwm
|
||||
- spi
|
||||
- i2c
|
||||
- uart
|
||||
- usb_device
|
||||
- netif:eth
|
||||
vendor: atmel
|
||||
@@ -1,18 +1,16 @@
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_SAME54=y
|
||||
CONFIG_SOC_PART_NUMBER_SAME54P20A=y
|
||||
CONFIG_SOC_ATMEL_SAMD5X_XOSC32K=y
|
||||
CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_AS_MAIN=y
|
||||
CONFIG_BOARD_ATSAME54_XPRO=y
|
||||
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
@@ -1,8 +0,0 @@
|
||||
# SAM E54 Xplained Pro Board configuration
|
||||
#
|
||||
# Copyright (c) 2019 Benjamin Valentin
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ATSAME54_XPRO
|
||||
bool "SAM E54 Xplained Pro"
|
||||
depends on SOC_PART_NUMBER_SAME54P20A
|
||||
Reference in New Issue
Block a user