Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT
select SOC_ESP32S3_WROOM_N8
select SOC_ESP32S3_WROOM_N4R2
select SOC_ESP32S3_PROCPU if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_ESP32S3_PROCPU
select SOC_ESP32S3_APPCPU if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_ESP32S3_APPCPU
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
/dts-v1/;

#include <espressif/esp32s3/esp32s3_wroom_n8.dtsi>
#include <espressif/esp32s3/esp32s3_wroom_n4r2.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "adafruit_feather_esp32s3_tft-pinctrl.dtsi"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
/dts-v1/;

#include <espressif/esp32s3/esp32s3_wroom_n8.dtsi>
#include <espressif/esp32s3/esp32s3_wroom_n4r2.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
Expand Down
3 changes: 1 addition & 2 deletions boards/adafruit/feather_esp32s3_tft/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Hardware

- ESP32-S3 mini module, featuring the dual core 32-bit Xtensa Microprocessor
(Tensilica LX7), running at up to 240MHz
- 512KB SRAM and either 8MB flash or 4MB flash + 2MB PSRAM, depending on the
module variant
- 512KB SRAM and either 4MB flash + 2MB PSRAM
- USB-C directly connected to the ESP32-S3 for USB/UART and JTAG debugging
- LiPo connector and built-in battery charging when powered via USB-C
- MAX17048 fuel gauge for battery voltage and state-of-charge reporting
Expand Down
4 changes: 4 additions & 0 deletions boards/adafruit/feather_esp32s3_tft_reverse/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(board.c)
11 changes: 11 additions & 0 deletions boards/adafruit/feather_esp32s3_tft_reverse/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Adafruit ESP32-S3 Reverse TFT Feather board configuration

# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# Copyright (c) 2024 Leon Rinkel <[email protected]>
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_PROCPU
default 256 if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_APPCPU
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
# Copyright (c) 2024 Leon Rinkel <[email protected]>
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE
select SOC_ESP32S3_WROOM_N4R2
select SOC_ESP32S3_PROCPU if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_PROCPU
select SOC_ESP32S3_APPCPU if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_APPCPU
32 changes: 32 additions & 0 deletions boards/adafruit/feather_esp32s3_tft_reverse/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2024 Leon Rinkel <[email protected]>
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

if BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_PROCPU

if DISPLAY

config BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE
select BOARD_LATE_INIT_HOOK

choice ST7789V_PIXEL_FORMAT
default ST7789V_RGB565
endchoice

if LVGL

config LV_Z_BITS_PER_PIXEL
default 16

choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice

config LV_COLOR_16_SWAP
default y

endif # LVGL

endif # DISPLAY

endif # BOARD_ADAFRUIT_FEATHER_ESP32S3_TFT_REVERSE_ESP32S3_PROCPU
10 changes: 10 additions & 0 deletions boards/adafruit/feather_esp32s3_tft_reverse/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Leon Rinkel <[email protected]>
* Copyright (c) 2025 Philipp Steiner <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pinctrl/esp-pinctrl-common.h>
#include <dt-bindings/pinctrl/esp32s3-pinctrl.h>
#include <zephyr/dt-bindings/pinctrl/esp32s3-gpio-sigmap.h>

&pinctrl {
/* Debug TX (DBG) - This is the hardware UART debug pin */
uart0_default: uart0_default {
group1 {
pinmux = <UART0_TX_GPIO43>;
output-high;
};

group2 {
pinmux = <UART0_RX_GPIO44>;
bias-pull-up;
};
};

uart1_default: uart1_default {
group1 {
pinmux = <UART1_TX_GPIO39>;
output-high;
};

group2 {
pinmux = <UART1_RX_GPIO38>;
bias-pull-up;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SDA_GPIO3>,
<I2C0_SCL_GPIO4>;
drive-open-drain;
output-high;
};
};

spim2_default: spim2_default {
group1 {
pinmux = <SPIM2_MISO_GPIO37>,
<SPIM2_SCLK_GPIO36>,
<SPIM2_CSEL_GPIO42>;
};

group2 {
pinmux = <SPIM2_MOSI_GPIO35>;
output-low;
};
};

spim3_ws2812_led: spim3_ws2812_led {
group1 {
pinmux = <SPIM3_MOSI_GPIO33>;
};
};

twai_default: twai_default {
group1 {
pinmux = <TWAI_TX_GPIO5>,
<TWAI_RX_GPIO6>;
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Leon Rinkel <[email protected]>
* Copyright (c) 2025 Philipp Steiner <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;

#include <espressif/esp32s3/esp32s3_wroom_n4r2.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "adafruit_feather_esp32s3_tft_reverse-pinctrl.dtsi"

/ {
model = "Adafruit ESP32-S3 Reverse TFT Feather APPCPU";
compatible = "adafruit,feather_esp32s3_tft_reverse", "espressif,esp32s3";

chosen {
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

&trng0 {
status = "okay";
};

&ipm0 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
identifier: adafruit_feather_esp32s3_tft_reverse/esp32s3/appcpu
name: Adafruit ESP32-S3 Reverse TFT Feather APPCPU
type: mcu
arch: xtensa
toolchain:
- zephyr
supported:
- uart
testing:
ignore_tags:
- net
- bluetooth
- flash
- cpp
- posix
- watchdog
- logging
- kernel
- pm
- gpio
- crypto
- eeprom
- heap
- cmsis_rtos
- jwt
- zdsp
vendor: adafruit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_CLOCK_CONTROL=y
Loading
Loading