Commit 0a2e4d1b authored by Lothar Felten's avatar Lothar Felten Committed by Anas Nashif
Browse files

boards: lilygo: ttgo_lora32: initial support



adds initial support for Lilygo TTGO LoRa32 board
dts: vendor-prefixes: add vendor lilygo

Co-authored-by: default avatarBenjamin Cabé <kartben@gmail.com>

Signed-off-by: default avatarLothar Felten <lothar.felten@gmail.com>
parent c4df21e8
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
# Lilygo ttgo LoRa32 board configuration

# Copyright (c) 2024 Lothar Felten <lothar.felten@gmail.com>
# SPDX-License-Identifier: Apache-2.0

if BOARD_TTGO_LORA32_ESP32_PROCPU

config ENTROPY_GENERATOR
	default y

config HEAP_MEM_POOL_ADD_SIZE_BOARD
	int
	default 65535 if WIFI && BT
	default 51200 if WIFI
	default 40960 if BT
	default 4096

endif # BOARD_TTGO_LORA32_ESP32_PROCPU

if BOARD_TTGO_LORA32_ESP32_APPCPU

config HEAP_MEM_POOL_ADD_SIZE_BOARD
	default 256

endif # BOARD_TTGO_LORA32_ESP32_APPCPU
+10 −0
Original line number Diff line number Diff line
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

choice BOOTLOADER
	default BOOTLOADER_MCUBOOT
endchoice

choice BOOT_SIGNATURE_TYPE
	default BOOT_SIGNATURE_TYPE_NONE
endchoice
+9 −0
Original line number Diff line number Diff line
# TTGO LoRa32 board configuration

# Copyright (c) 2024 Lothar Felten <lothar.felten@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config BOARD_TTGO_LORA32
	select SOC_ESP32_PICO_D4
	select SOC_ESP32_PROCPU if BOARD_TTGO_LORA32_ESP32_PROCPU
	select SOC_ESP32_APPCPU if BOARD_TTGO_LORA32_ESP32_APPCPU
+12 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
  set(OPENOCD OPENOCD-NOTFOUND)
endif()
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)

include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)

# the default ESP32 baud rate is not supported
board_runner_args(esp32 "--esp-baud-rate=1500000")
+5 −0
Original line number Diff line number Diff line
board:
  name: ttgo_lora32
  vendor: lilygo
  socs:
  - name: esp32
Loading