Browse Source

boards: sam4s_xplained: Convert to HWMv2

Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
pull/69687/head
Gerson Fernando Budke 1 year ago committed by Carles Cufi
parent
commit
40448c5a9f
  1. 5
      boards/atmel/sam/sam4s_xplained/Kconfig.sam4s_xplained
  2. 0
      boards/atmel/sam/sam4s_xplained/board.cmake
  3. 5
      boards/atmel/sam/sam4s_xplained/board.yml
  4. 0
      boards/atmel/sam/sam4s_xplained/doc/img/sam4s_xplained.jpg
  5. 27
      boards/atmel/sam/sam4s_xplained/doc/index.rst
  6. 0
      boards/atmel/sam/sam4s_xplained/sam4s_xplained-pinctrl.dtsi
  7. 0
      boards/atmel/sam/sam4s_xplained/sam4s_xplained.dts
  8. 5
      boards/atmel/sam/sam4s_xplained/sam4s_xplained.yaml
  9. 9
      boards/atmel/sam/sam4s_xplained/sam4s_xplained_defconfig
  10. 8
      boards/boards_legacy/arm/sam4s_xplained/Kconfig.board
  11. 11
      boards/boards_legacy/arm/sam4s_xplained/Kconfig.defconfig

5
boards/atmel/sam/sam4s_xplained/Kconfig.sam4s_xplained

@ -0,0 +1,5 @@ @@ -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

0
boards/boards_legacy/arm/sam4s_xplained/board.cmake → boards/atmel/sam/sam4s_xplained/board.cmake

5
boards/atmel/sam/sam4s_xplained/board.yml

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

0
boards/boards_legacy/arm/sam4s_xplained/doc/img/sam4s_xplained.jpg → boards/atmel/sam/sam4s_xplained/doc/img/sam4s_xplained.jpg

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

27
boards/boards_legacy/arm/sam4s_xplained/doc/index.rst → boards/atmel/sam/sam4s_xplained/doc/index.rst

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
.. _sam4s_xplained:
SAM4S Xplained
################
##############
Overview
********
@ -40,31 +40,33 @@ features: @@ -40,31 +40,33 @@ features:
+-----------+------------+-------------------------------------+
| SYSTICK | on-chip | systick |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port |
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| USART | on-chip | serial port |
| COUNTER | on-chip | counter |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
| HWINFO | on-chip | Unique device serial number |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| HWINFO | on-chip | Unique device serial number |
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| SMC | on-chip | memc (PSRAM) |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
| UART | on-chip | serial port |
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
| 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. @@ -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.

0
boards/boards_legacy/arm/sam4s_xplained/sam4s_xplained-pinctrl.dtsi → boards/atmel/sam/sam4s_xplained/sam4s_xplained-pinctrl.dtsi

0
boards/boards_legacy/arm/sam4s_xplained/sam4s_xplained.dts → boards/atmel/sam/sam4s_xplained/sam4s_xplained.dts

5
boards/boards_legacy/arm/sam4s_xplained/sam4s_xplained.yaml → boards/atmel/sam/sam4s_xplained/sam4s_xplained.yaml

@ -6,9 +6,13 @@ toolchain: @@ -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: @@ -17,5 +21,4 @@ supported:
- xplained_i2c
- xplained_serial
- xplained_spi
- hwinfo
vendor: atmel

9
boards/boards_legacy/arm/sam4s_xplained/sam4s_xplained_defconfig → boards/atmel/sam/sam4s_xplained/sam4s_xplained_defconfig

@ -1,16 +1,11 @@ @@ -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

8
boards/boards_legacy/arm/sam4s_xplained/Kconfig.board

@ -1,8 +0,0 @@ @@ -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

11
boards/boards_legacy/arm/sam4s_xplained/Kconfig.defconfig

@ -1,11 +0,0 @@ @@ -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
Loading…
Cancel
Save