Skip to content

Commit a390660

Browse files
committed
boards: xtensa: esp32s3_devkitm: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <[email protected]>
1 parent 9e42be0 commit a390660

17 files changed

+107
-84
lines changed

boards/boards_legacy/xtensa/esp32s3_devkitm/Kconfig.board

Lines changed: 0 additions & 15 deletions
This file was deleted.

boards/boards_legacy/xtensa/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts

Lines changed: 0 additions & 34 deletions
This file was deleted.
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_ESP32S3_DEVKITM
5+
select SOC_ESP32S3_PROCPU if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU
6+
select SOC_ESP32S3_APPCPU if BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU

boards/boards_legacy/xtensa/esp32s3_devkitm/Kconfig.defconfig renamed to boards/espressif/esp32s3_devkitm/Kconfig.defconfig

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
44
# SPDX-License-Identifier: Apache-2.0
55

6-
if BOARD_ESP32S3_DEVKITM
7-
8-
config BOARD
9-
default "esp32s3_devkitm"
6+
if BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU
107

118
config HEAP_MEM_POOL_ADD_SIZE_BOARD
129
int
@@ -19,19 +16,11 @@ choice BT_HCI_BUS_TYPE
1916
default BT_ESP32 if BT
2017
endchoice
2118

22-
endif
23-
24-
if BOARD_ESP32S3_DEVKITM_APPCPU
19+
endif # BOARD_ESP32S3_DEVKITM_ESP32S3_PROCPU
2520

26-
config BOARD
27-
default "esp32s3_devkitm_appcpu"
21+
if BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU
2822

2923
config HEAP_MEM_POOL_ADD_SIZE_BOARD
30-
def_int 4096
31-
32-
config KERNEL_BIN_NAME
33-
default "esp32_appcpu_firmware"
34-
endif
24+
default 256
3525

36-
config ENTROPY_GENERATOR
37-
default y
26+
endif # BOARD_ESP32S3_DEVKITM_ESP32S3_APPCPU
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_ESP32S3_DEVKITM
5+
select SOC_ESP32S3_MINI_N8
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: esp32s3_devkitm
3+
vendor: espressif
4+
socs:
5+
- name: esp32s3

boards/boards_legacy/xtensa/esp32s3_devkitm/doc/index.rst renamed to boards/espressif/esp32s3_devkitm/doc/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ Zephyr build. Output is structured by the domain subdirectories:
189189
190190
build/
191191
├── hello_world
192-
   └── zephyr
193-
   ├── zephyr.elf
194-
   └── zephyr.bin
192+
└── zephyr
193+
├── zephyr.elf
194+
└── zephyr.bin
195195
├── mcuboot
196196
│ └── zephyr
197197
│ ├── zephyr.elf
@@ -223,7 +223,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
223223

224224
.. zephyr-app-commands::
225225
:zephyr-app: samples/hello_world
226-
:board: esp32s3_devkitm
226+
:board: esp32s3_devkitm/esp32s3/procpu
227227
:goals: build
228228

229229
The usual ``flash`` target will work with the ``esp32s3_devkitm`` board
@@ -232,7 +232,7 @@ application.
232232

233233
.. zephyr-app-commands::
234234
:zephyr-app: samples/hello_world
235-
:board: esp32s3_devkitm
235+
:board: esp32s3_devkitm/esp32s3/procpu
236236
:goals: flash
237237

238238
Open the serial monitor using the following command:
@@ -264,14 +264,14 @@ Here is an example for building the :ref:`hello_world` application.
264264

265265
.. zephyr-app-commands::
266266
:zephyr-app: samples/hello_world
267-
:board: esp32s3_devkitm
267+
:board: esp32s3_devkitm/esp32s3/procpu
268268
:goals: build flash
269269

270270
You can debug an application in the usual way. Here is an example for the :ref:`hello_world` application.
271271

272272
.. zephyr-app-commands::
273273
:zephyr-app: samples/hello_world
274-
:board: esp32s3_devkitm
274+
:board: esp32s3_devkitm/esp32s3/procpu
275275
:goals: debug
276276

277277
.. _`JTAG debugging for ESP32-S3`: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/jtag-debugging/

0 commit comments

Comments
 (0)