Skip to content

Commit ad0d951

Browse files
sylvioalvesnordicjm
authored andcommitted
boards: xtensa: m5stack_atoms3: Convert to v2
Converts the board to hwmv2 Signed-off-by: Sylvio Alves <[email protected]>
1 parent e71f602 commit ad0d951

16 files changed

+142
-27
lines changed

boards/m5stack/m5stack_atoms3/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_M5STACK_ATOMS3
5+
select SOC_ESP32S3_PROCPU if BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
6+
select SOC_ESP32S3_APPCPU if BOARD_M5STACK_ATOMS3_ESP32S3_APPCPU

boards/boards_legacy/xtensa/m5stack_atoms3/Kconfig.defconfig renamed to boards/m5stack/m5stack_atoms3/Kconfig.defconfig

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,27 @@
22
# Copyright (c) 2023 Benjamin Cabé <[email protected]>
33
# SPDX-License-Identifier: Apache-2.0
44

5-
if BOARD_M5STACK_ATOMS3
5+
if BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
66

7-
config BOARD
8-
default "m5stack_atoms3"
9-
depends on BOARD_M5STACK_ATOMS3
10-
11-
config ENTROPY_GENERATOR
12-
default y
7+
config LV_COLOR_16_SWAP
8+
default y if LVGL
139

1410
config HEAP_MEM_POOL_ADD_SIZE_BOARD
1511
int
1612
default 65535 if WIFI && BT
1713
default 51200 if WIFI
18-
default 65536 if BT
14+
default 40960 if BT
1915
default 4096
2016

21-
config KERNEL_MEM_POOL
22-
default y
23-
2417
choice BT_HCI_BUS_TYPE
2518
default BT_ESP32 if BT
2619
endchoice
2720

28-
config LV_COLOR_16_SWAP
29-
default y if LVGL
21+
endif # BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
22+
23+
if BOARD_M5STACK_ATOMS3_ESP32S3_APPCPU
24+
25+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
26+
default 256
3027

31-
endif # BOARD_M5STACK_ATOMS3
28+
endif # BOARD_M5STACK_ATOMS3_ESP32S3_APPCPU

boards/boards_legacy/xtensa/m5stack_atoms3/Kconfig.board renamed to boards/m5stack/m5stack_atoms3/Kconfig.m5stack_atoms3

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
config BOARD_M5STACK_ATOMS3
7-
bool "M5Stack AtomS3 Development Board"
8-
depends on SOC_SERIES_ESP32S3
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32S3_FN8
12-
endchoice
7+
select SOC_ESP32S3_FN8
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
choice BOOTLOADER
5+
default BOOTLOADER_MCUBOOT
6+
endchoice
7+
8+
choice BOOT_SIGNATURE_TYPE
9+
default BOOT_SIGNATURE_TYPE_NONE
10+
endchoice
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: m5stack_atoms3
3+
vendor: m5stack
4+
socs:
5+
- name: esp32s3

boards/boards_legacy/xtensa/m5stack_atoms3/doc/index.rst renamed to boards/m5stack/m5stack_atoms3/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
9494

9595
.. zephyr-app-commands::
9696
:zephyr-app: samples/hello_world
97-
:board: m5stack_atoms3
97+
:board: m5stack_atoms3/esp32s3/procpu
9898
:goals: build
9999

100100
The usual ``flash`` target will work with the ``m5stack_atoms3`` board
@@ -103,7 +103,7 @@ application.
103103

104104
.. zephyr-app-commands::
105105
:zephyr-app: samples/hello_world
106-
:board: m5stack_atoms3
106+
:board: m5stack_atoms3/esp32s3/procpu
107107
:goals: flash
108108

109109
The baud rate of 921600bps is set by default. If experiencing issues when flashing,

0 commit comments

Comments
 (0)