Skip to content

Commit 2025941

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

17 files changed

+149
-26
lines changed

boards/vcc-gnd/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _boards-vcc-gnd:
2+
3+
VCC-GND
4+
#######
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
:glob:
9+
10+
**/*

boards/vcc-gnd/yd_esp32/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_YD_ESP32
5+
select SOC_ESP32_PROCPU if BOARD_YD_ESP32_ESP32_PROCPU
6+
select SOC_ESP32_APPCPU if BOARD_YD_ESP32_ESP32_APPCPU

boards/boards_legacy/xtensa/yd_esp32/Kconfig.defconfig renamed to boards/vcc-gnd/yd_esp32/Kconfig.defconfig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
# Copyright (c) 2023 Julio Cesar <[email protected]>
44
# SPDX-License-Identifier: Apache-2.0
55

6-
config BOARD
7-
default "yd_esp32"
8-
depends on BOARD_YD_ESP32
9-
10-
config ENTROPY_GENERATOR
11-
default y
6+
if BOARD_YD_ESP32_ESP32_PROCPU
127

138
config HEAP_MEM_POOL_ADD_SIZE_BOARD
149
int
@@ -20,3 +15,12 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD
2015
choice BT_HCI_BUS_TYPE
2116
default BT_ESP32 if BT
2217
endchoice
18+
19+
endif # BOARD_YD_ESP32_ESP32_PROCPU
20+
21+
if BOARD_YD_ESP32_ESP32_APPCPU
22+
23+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
24+
default 256
25+
26+
endif # BOARD_YD_ESP32_ESP32_PROCPU

boards/boards_legacy/xtensa/yd_esp32/Kconfig.board renamed to boards/vcc-gnd/yd_esp32/Kconfig.yd_esp32

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_YD_ESP32
7-
bool "YD-ESP32 Development Board"
8-
depends on SOC_SERIES_ESP32
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32_WROOM_32UE_N4
12-
endchoice
7+
select SOC_ESP32_WROOM_32UE_N4

boards/vcc-gnd/yd_esp32/board.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: yd_esp32
3+
vendor: vcc-gnd
4+
socs:
5+
- name: esp32

boards/boards_legacy/xtensa/yd_esp32/doc/index.rst renamed to boards/vcc-gnd/yd_esp32/doc/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ Zephyr build. Output is structured by the domain subdirectories:
169169
170170
build/
171171
├── hello_world
172-
   └── zephyr
173-
   ├── zephyr.elf
174-
   └── zephyr.bin
172+
└── zephyr
173+
├── zephyr.elf
174+
└── zephyr.bin
175175
├── mcuboot
176176
│ └── zephyr
177177
│ ├── zephyr.elf
@@ -203,7 +203,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
203203

204204
.. zephyr-app-commands::
205205
:zephyr-app: samples/hello_world
206-
:board: yd_esp32
206+
:board: yd_esp32/esp32/procpu
207207
:goals: build
208208

209209
The usual ``flash`` target will work with the ``yd_esp32`` board
@@ -212,7 +212,7 @@ application.
212212

213213
.. zephyr-app-commands::
214214
:zephyr-app: samples/hello_world
215-
:board: yd_esp32
215+
:board: yd_esp32/esp32/procpu
216216
:goals: flash
217217

218218
Open the serial monitor using the following command:
@@ -237,7 +237,7 @@ Here is an example of how to test it using the :zephyr:code-sample:`led-ws2812`
237237

238238
.. zephyr-app-commands::
239239
:zephyr-app: samples/drivers/led_ws2812
240-
:board: yd_esp32
240+
:board: yd_esp32/esp32/procpu
241241
:goals: flash
242242

243243

@@ -278,14 +278,14 @@ Here is an example for building the :ref:`hello_world` application.
278278

279279
.. zephyr-app-commands::
280280
:zephyr-app: samples/hello_world
281-
:board: yd_esp32
281+
:board: yd_esp32/esp32/procpu
282282
:goals: build flash
283283

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

286286
.. zephyr-app-commands::
287287
:zephyr-app: samples/hello_world
288-
:board: yd_esp32
288+
:board: yd_esp32/esp32/procpu
289289
:goals: debug
290290

291291
Note on Debugging with GDB Stub

0 commit comments

Comments
 (0)