-
Notifications
You must be signed in to change notification settings - Fork 8.3k
boards: adafruit: esp32s2_feather: add support #85405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kartben
merged 1 commit into
zephyrproject-rtos:main
from
DBS06:add_adafruit_feather_esp32s2_boards
Mar 27, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
5 changes: 5 additions & 0 deletions
5
boards/adafruit/feather_esp32s2/Kconfig.adafruit_feather_esp32s2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
5 changes: 5 additions & 0 deletions
5
boards/adafruit/feather_esp32s2/Kconfig.adafruit_feather_esp32s2_tft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
5 changes: 5 additions & 0 deletions
5
boards/adafruit/feather_esp32s2/Kconfig.adafruit_feather_esp32s2_tft_reverse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
66 changes: 66 additions & 0 deletions
66
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2-pinctrl.dtsi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
DBS06 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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
15
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
19
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_B.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
20
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_B.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
19
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_C.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
20
boards/adafruit/feather_esp32s2/adafruit_feather_esp32s2_C.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.