Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwmv2: atmel_sam0: Port to HWMv2 #68841

Merged
merged 23 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
f59dee7
soc: atmel: sam0: Port to HWMv2
nandojve Feb 10, 2024
2b010ec
boards: samr21_xpro: Convert to HWMv2
nandojve Feb 10, 2024
fbbc956
boards: samd21_xpro: Convert to HWMv2
nandojve Feb 10, 2024
64850a2
boards: samd20_xpro: Convert to HWMv2
nandojve Feb 10, 2024
9bbeb9b
boards: saml21_xpro: Convert to HWMv2
nandojve Feb 10, 2024
74b5c39
boards: samc21n_xpro: Convert to HWMv2
nandojve Feb 10, 2024
acc3b21
boards: samr34_xpro: Convert to HWMv2
nandojve Feb 10, 2024
54cbc64
boards: same54_xpro: Convert to HWMv2
nandojve Feb 11, 2024
cbc56f9
boards: seeeduino_xiao: Convert to HWMv2
nandojve Feb 11, 2024
2b71aef
boards: serpente: Convert to HWMv2
nandojve Feb 11, 2024
c987219
boards: adafruit_feather_m0_basic_proto: Convert to HWMv2
nandojve Feb 11, 2024
7fc8170
boards: adafruit_feather_m0_lora: Convert to HWMv2
nandojve Feb 11, 2024
c15e32a
boards: adafruit_grand_central_m4_express: Convert to HWMv2
nandojve Feb 11, 2024
d87b56c
boards: adafruit_itsybitsy_m4_express: Convert to HWMv2
nandojve Feb 11, 2024
ac76605
boards: adafruit_trinket_m0: Convert to HWMv2
nandojve Feb 11, 2024
8e3f57e
boards: ev11l78a: Convert to HWMv2
nandojve Feb 11, 2024
827eda0
boards: wio_terminal: Convert to HWMv2
nandojve Feb 11, 2024
60ae227
boards: arduino_zero: Convert to HWMv2
nandojve Feb 11, 2024
ce01e18
boards: arduino_mkrzero: Convert to HWMv2
nandojve Feb 11, 2024
7d86f87
boards: arduino_nano_33_iot: Convert to HWMv2
nandojve Feb 11, 2024
5d2818a
samples: atmel_sam0: Update platform name
nandojve Feb 17, 2024
ae12fc2
tests: atmel_sam0: Update platform name
nandojve Feb 17, 2024
0ea3c80
tests: atmel_sam: adc: Fix sam4e_xpro adc build
nandojve Feb 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Adafruit Feather M0 Basic Proto board configuration

# Copyright (c) 2018 Henrik Brix Andersen <henrik@brixandersen.dk>
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_M0_BASIC_PROTO
bool "Adafruit Feather M0 Basic Proto"
depends on SOC_PART_NUMBER_SAMD21G18A
select SOC_SAMD21G18A
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ADAFRUIT_FEATHER_M0_BASIC_PROTO=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y

CONFIG_USE_DT_CODE_PARTITION=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
5 changes: 5 additions & 0 deletions boards/adafruit/adafruit_feather_m0_basic_proto/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: adafruit_feather_m0_basic_proto
vendor: adafruit
socs:
- name: samd21g18a
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ following hardware features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_feather_m0_basic_proto/adafruit_feather_m0_basic_proto_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_feather_m0_basic_proto/adafruit_feather_m0_basic_proto_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Adafruit Feather M0 LoRa board configuration

# Copyright (c) 2022 Miguel Dardenne <miguel.dardenne@gmail.com>
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_M0_LORA
bool "Adafruit Feather M0 LoRa"
depends on SOC_PART_NUMBER_SAMD21G18A
select SOC_SAMD21G18A
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ADAFRUIT_FEATHER_M0_LORA=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y

CONFIG_USE_DT_CODE_PARTITION=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
5 changes: 5 additions & 0 deletions boards/adafruit/adafruit_feather_m0_lora/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: adafruit_feather_m0_lora
vendor: adafruit
socs:
- name: samd21g18a
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ following hardware features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_feather_m0_lora/adafruit_feather_m0_lora_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_feather_m0_lora/adafruit_feather_m0_lora_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Adafruit Grand Central M4 Express board configuration

# Copyright (c) 2023 Lukas Jung <lukas.jung@mailbox.org>
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_GRAND_CENTRAL_M4_EXPRESS
bool "Adafruit Grand Central M4 Express"
depends on SOC_PART_NUMBER_SAMD51P20A
select SOC_SAMD51P20A
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD51=y
CONFIG_SOC_PART_NUMBER_SAMD51P20A=y
CONFIG_BOARD_ADAFRUIT_GRAND_CENTRAL_M4_EXPRESS=y
CONFIG_SOC_ATMEL_SAMD5X_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_AS_MAIN=y

CONFIG_BUILD_OUTPUT_HEX=y
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y

CONFIG_ARM_MPU=y
CONFIG_HW_STACK_PROTECTION=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_GPIO=y

CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_BUILD_OUTPUT_HEX=y
5 changes: 5 additions & 0 deletions boards/adafruit/adafruit_grand_central_m4_express/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: adafruit_grand_central_m4_express
vendor: adafruit
socs:
- name: samd51p20a
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ hardware features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_grand_central_m4_express/adafruit_grand_central_m4_express_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_grand_central_m4_express/adafruit_grand_central_m4_express_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2020 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_ITSYBITSY_M4_EXPRESS
select SOC_SAMD51G19A
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD51=y
CONFIG_SOC_PART_NUMBER_SAMD51G19A=y
CONFIG_BOARD_ADAFRUIT_ITSYBITSY_M4_EXPRESS=y
CONFIG_SOC_ATMEL_SAMD5X_OSCULP32K_AS_MAIN=y

CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y

CONFIG_ARM_MPU=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y
5 changes: 5 additions & 0 deletions boards/adafruit/adafruit_itsybitsy_m4_express/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: adafruit_itsybitsy_m4_express
vendor: adafruit
socs:
- name: samd51g19a
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ hardware features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_itsybitsy_m4_express/adafruit_itsybitsy_m4_express_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_itsybitsy_m4_express/adafruit_itsybitsy_m4_express_defconfig`.

Zephyr can use the default Cortex-M SYSTICK timer or the SAM0 specific RTC.
To use the RTC, set :code:`CONFIG_CORTEX_M_SYSTICK=n` and set
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2018 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_TRINKET_M0
select SOC_SAMD21E18A
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21E18A=y
CONFIG_BOARD_ADAFRUIT_TRINKET_M0=y
CONFIG_SOC_ATMEL_SAMD_OSC8M=y
CONFIG_SOC_ATMEL_SAMD_OSC8M_AS_MAIN=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y

CONFIG_USE_DT_CODE_PARTITION=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ADAFRUIT_UF2=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
5 changes: 5 additions & 0 deletions boards/adafruit/adafruit_trinket_m0/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: adafruit_trinket_m0
vendor: adafruit
socs:
- name: samd21e18a
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/arm/adafruit_trinket_m0/adafruit_trinket_m0_defconfig`.
:zephyr_file:`boards/adafruit/adafruit_trinket_m0/adafruit_trinket_m0_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Arduino MKR Zero Board configuration

# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_MKRZERO
bool "Arduino MKR Zero"
depends on SOC_PART_NUMBER_SAMD21G18A
select SOC_SAMD21G18A
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD
default "arduino_mkrzero"
depends on BOARD_ARDUINO_MKRZERO

if DISK_DRIVERS

config DISK_DRIVER_SDMMC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ARDUINO_MKRZERO=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y

CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ARDUINO=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ARDUINO=y
CONFIG_GPIO=y
5 changes: 5 additions & 0 deletions boards/arduino/arduino_mkrzero/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_mkrzero
vendor: arduino
socs:
- name: samd21g18a
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/arduino_mkrzero/arduino_mkrzero_defconfig`.
:zephyr_file:`boards/arduino/arduino_mkrzero/arduino_mkrzero_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2020 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_NANO_33_IOT
select SOC_SAMD21G18A
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ARDUINO_NANO_33_IOT=y
CONFIG_SOC_ATMEL_SAMD_OSC8M=y
CONFIG_SOC_ATMEL_SAMD_OSC8M_AS_MAIN=y

CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ARDUINO=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_BOOTLOADER_BOSSA=y
CONFIG_BOOTLOADER_BOSSA_ARDUINO=y
5 changes: 5 additions & 0 deletions boards/arduino/arduino_nano_33_iot/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_nano_33_iot
vendor: arduino
socs:
- name: samd21g18a
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/arduino_nano_33_iot/arduino_nano_33_iot_defconfig`.
:zephyr_file:`boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot_defconfig`.

Connections and IOs
===================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Arduino Zero Board configuration

# Copyright (c) 2017 Google LLC.
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ARDUINO_ZERO
bool "Arduino Zero"
depends on SOC_PART_NUMBER_SAMD21G18A
select SOC_SAMD21G18A
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_SERIES_SAMD21=y
CONFIG_SOC_PART_NUMBER_SAMD21G18A=y
CONFIG_BOARD_ARDUINO_ZERO=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y

CONFIG_BUILD_OUTPUT_HEX=y

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_SERIAL=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K=y
CONFIG_SOC_ATMEL_SAMD_XOSC32K_AS_MAIN=y
5 changes: 5 additions & 0 deletions boards/arduino/arduino_zero/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: arduino_zero
vendor: arduino
socs:
- name: samd21g18a
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ features:
Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig
:zephyr_file:`boards/arm/arduino_zero/arduino_zero_defconfig`.
:zephyr_file:`boards/arduino/arduino_zero/arduino_zero_defconfig`.

Connections and IOs
===================
Expand Down
10 changes: 10 additions & 0 deletions boards/arturo182/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _boards-arturo182:

Arturo182
#########

.. toctree::
:maxdepth: 1
:glob:

**/*
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Serpente board configuration
# Copyright (c) 2020 Alexander Falb <fal3xx@gmail.com>
# Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_SERPENTE
bool "Serpente"
depends on SOC_PART_NUMBER_SAMD21E18A
select SOC_SAMD21E18A
Loading
Loading