boards: sam4s_xplained: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke
2024-02-09 22:54:12 +01:00
committed by Carles Cufi
parent 31273692c0
commit 40448c5a9f
11 changed files with 32 additions and 40 deletions

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAM4S_XPLAINED
select SOC_SAM4S16C

View File

@@ -0,0 +1,5 @@
board:
name: sam4s_xplained
vendor: atmel
socs:
- name: sam4s16c

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -1,7 +1,7 @@
.. _sam4s_xplained:
SAM4S Xplained
################
##############
Overview
********
@@ -40,31 +40,33 @@ features:
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port |
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| USART | on-chip | serial port |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
| COUNTER | on-chip | counter |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| HWINFO | on-chip | Unique device serial number |
+-----------+------------+-------------------------------------+
| SMC | on-chip | memc (PSRAM) |
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| SMC | on-chip | memc (PSRAM) |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port |
+-----------+------------+-------------------------------------+
| USART | on-chip | serial port |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
Other hardware features are not currently supported by Zephyr.
The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/sam4s_xplained/sam4s_xplained_defconfig`.
:zephyr_file:`boards/atmel/sam/sam4s_xplained/sam4s_xplained_defconfig`.
Connections and IOs
===================
@@ -89,7 +91,8 @@ The section flashing uses the UART from the Segger USB debug connection.
Programming and Debugging
*************************
The SAM4S Xplained board comes with Segger `J-Link OB <https://www.segger.com/jlink-ob.html>`_. This provides a debug
The SAM4S Xplained board comes with Segger
`J-Link OB <https://www.segger.com/jlink-ob.html>`_. This provides a debug
interface to the SAM4S16C chip. You can use Ozone or JLink to communicate with
the SAM4S16C.

View File

@@ -6,9 +6,13 @@ toolchain:
- zephyr
- gnuarmemb
- xtools
flash: 1024
ram: 128
supported:
- adc
- counter
- gpio
- hwinfo
- memc
- pwm
- spi
@@ -17,5 +21,4 @@ supported:
- xplained_i2c
- xplained_serial
- xplained_spi
- hwinfo
vendor: atmel

View File

@@ -1,16 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SAM4S=y
CONFIG_SOC_PART_NUMBER_SAM4S16C=y
CONFIG_SOC_ATMEL_SAM4S_EXT_MAINCK=y
CONFIG_BOARD_SAM4S_XPLAINED=y
CONFIG_ARM_MPU=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_WDT_DISABLE_AT_BOOT=y
CONFIG_CONSOLE=y
CONFIG_GPIO=y
CONFIG_MEMC=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_MEMC=y

View File

@@ -1,8 +0,0 @@
# Atmel SAM4S Xplained Board selection
# Copyright (c) 2017 Justin Watson
# SPDX-License-Identifier: Apache-2.0
config BOARD_SAM4S_XPLAINED
bool "Atmel SAM4S Xplained"
depends on SOC_PART_NUMBER_SAM4S16C

View File

@@ -1,11 +0,0 @@
# Atmel SAM4S Xplained Board configuration
# Copyright (c) 2017 Justin Watson
# SPDX-License-Identifier: Apache-2.0
if BOARD_SAM4S_XPLAINED
config BOARD
default "sam4s_xplained"
endif # BOARD_SAM4S_XPLAINED