diff --git a/boards/arduino/arduino_nano_33_iot/Kconfig.arduino_nano_33_iot b/boards/arduino/arduino_nano_33_iot/Kconfig.arduino_nano_33_iot new file mode 100644 index 00000000000..55021a63b2f --- /dev/null +++ b/boards/arduino/arduino_nano_33_iot/Kconfig.arduino_nano_33_iot @@ -0,0 +1,6 @@ +# Copyright (c) 2020 Google LLC. +# Copyright (c) 2024 Gerson Fernando Budke +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_ARDUINO_NANO_33_IOT + select SOC_SAMD21G18A diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot-pinctrl.dtsi b/boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot-pinctrl.dtsi similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot-pinctrl.dtsi rename to boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot-pinctrl.dtsi diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot.dts b/boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot.dts similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot.dts rename to boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot.dts diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot.yaml b/boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot.yaml similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot.yaml rename to boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot.yaml diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot_defconfig b/boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot_defconfig similarity index 72% rename from boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot_defconfig rename to boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot_defconfig index 3bc5a6370aa..051825bb751 100644 --- a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_33_iot_defconfig +++ b/boards/arduino/arduino_nano_33_iot/arduino_nano_33_iot_defconfig @@ -1,13 +1,13 @@ +# Copyright (c) 2024 Gerson Fernando Budke # 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_CONSOLE=y -CONFIG_UART_CONSOLE=y -CONFIG_UART_INTERRUPT_DRIVEN=y -CONFIG_SERIAL=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 diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_r3_connector.dtsi b/boards/arduino/arduino_nano_33_iot/arduino_nano_r3_connector.dtsi similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/arduino_nano_r3_connector.dtsi rename to boards/arduino/arduino_nano_33_iot/arduino_nano_r3_connector.dtsi diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/board.cmake b/boards/arduino/arduino_nano_33_iot/board.cmake similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/board.cmake rename to boards/arduino/arduino_nano_33_iot/board.cmake diff --git a/boards/arduino/arduino_nano_33_iot/board.yml b/boards/arduino/arduino_nano_33_iot/board.yml new file mode 100644 index 00000000000..63b7dab7992 --- /dev/null +++ b/boards/arduino/arduino_nano_33_iot/board.yml @@ -0,0 +1,5 @@ +board: + name: arduino_nano_33_iot + vendor: arduino + socs: + - name: samd21g18a diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/doc/img/nano_33_iot.jpg b/boards/arduino/arduino_nano_33_iot/doc/img/nano_33_iot.jpg similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/doc/img/nano_33_iot.jpg rename to boards/arduino/arduino_nano_33_iot/doc/img/nano_33_iot.jpg diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/doc/index.rst b/boards/arduino/arduino_nano_33_iot/doc/index.rst similarity index 98% rename from boards/boards_legacy/arm/arduino_nano_33_iot/doc/index.rst rename to boards/arduino/arduino_nano_33_iot/doc/index.rst index 62353ecbe1e..683b89ce653 100644 --- a/boards/boards_legacy/arm/arduino_nano_33_iot/doc/index.rst +++ b/boards/arduino/arduino_nano_33_iot/doc/index.rst @@ -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 =================== diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/pre_dt_board.cmake b/boards/arduino/arduino_nano_33_iot/pre_dt_board.cmake similarity index 100% rename from boards/boards_legacy/arm/arduino_nano_33_iot/pre_dt_board.cmake rename to boards/arduino/arduino_nano_33_iot/pre_dt_board.cmake diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.board b/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.board deleted file mode 100644 index 87c65a0f142..00000000000 --- a/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.board +++ /dev/null @@ -1,8 +0,0 @@ -# Arduino Nano 33 IOT board configuration - -# Copyright (c) 2020 Google LLC. -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_ARDUINO_NANO_33_IOT - bool "Arduino Nano 33 IOT" - depends on SOC_PART_NUMBER_SAMD21G18A diff --git a/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.defconfig b/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.defconfig deleted file mode 100644 index b4fc2bbc21f..00000000000 --- a/boards/boards_legacy/arm/arduino_nano_33_iot/Kconfig.defconfig +++ /dev/null @@ -1,8 +0,0 @@ -# Arduino Nano 33 IOT board configuration - -# Copyright (c) 2020 Google LLC. -# SPDX-License-Identifier: Apache-2.0 - -config BOARD - default "arduino_nano_33_iot" - depends on BOARD_ARDUINO_NANO_33_IOT