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
4 changes: 4 additions & 0 deletions boards/adafruit/feather_esp32s2/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_esp32s2/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2023 Google, LLC
# SPDX-License-Identifier: Apache-2.0

config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096

config BOARD_NEEDS_LATE_HOOK
bool
default y if BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT || BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT_REVERSE
select BOARD_LATE_INIT_HOOK
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_ESP32S2
select SOC_ESP32S2_R2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT
select SOC_ESP32S2_R2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT_REVERSE
select SOC_ESP32S2_R2
28 changes: 28 additions & 0 deletions boards/adafruit/feather_esp32s2/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2025 Philipp Steiner <[email protected]>
# SPDX-License-Identifier: Apache-2.0

if BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT || BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT_REVERSE

if DISPLAY

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_ESP32S2_TFT || BOARD_ADAFRUIT_FEATHER_ESP32S2_TFT_REVERSE
10 changes: 10 additions & 0 deletions boards/adafruit/feather_esp32s2/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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/esp32s2-pinctrl.h>
#include <zephyr/dt-bindings/pinctrl/esp32s2-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;
};
};

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

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

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

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

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

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

twai_default: twai_default {
group1 {
pinmux = <TWAI_TX_GPIO5>,
<TWAI_RX_GPIO6>;
};
};
};
15 changes: 15 additions & 0 deletions boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2025 Philipp Steiner <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include "adafruit_feather_esp32s2_common.dtsi"
#include "feather_connector.dtsi"

/ {
model = "Adafruit Feather ESP32-S2";
compatible = "espressif,esp32s2";
};
19 changes: 19 additions & 0 deletions boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_B.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2025 Philipp Steiner <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
/*
* On-board transistor powers I2C pull-ups and external devices connected
* via the STEMMA QT connector.
*/
i2c_reg: i2c_reg {
label = "I2C Power";
compatible = "power-domain-gpio";
#power-domain-cells = <0>;
enable-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
startup-delay-us = <10>;
};
};
20 changes: 20 additions & 0 deletions boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_B.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
identifier: adafruit_feather_esp32s2@B
name: Adafruit Feather ESP32-S2 Rev B
type: mcu
arch: xtensa
toolchain:
- zephyr
supported:
- gpio
- uart
- i2c
- spi
- counter
- watchdog
- entropy
- pwm
- dma
vendor: adafruit
testing:
ignore_tags:
- bluetooth
19 changes: 19 additions & 0 deletions boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_C.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2025 Philipp Steiner <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
/*
* On-board regulator powers I2C pull-ups and external devices connected
* via the STEMMA QT connector.
*/
i2c_reg: i2c_reg {
label = "I2C Power";
compatible = "power-domain-gpio";
#power-domain-cells = <0>;
enable-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
startup-delay-us = <10>;
};
};
20 changes: 20 additions & 0 deletions boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_C.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
identifier: adafruit_feather_esp32s2@C
name: Adafruit Feather ESP32-S2 Rev C
type: mcu
arch: xtensa
toolchain:
- zephyr
supported:
- gpio
- uart
- i2c
- spi
- counter
- watchdog
- entropy
- pwm
- dma
vendor: adafruit
testing:
ignore_tags:
- bluetooth
Loading