Add LILYGO T-Deck Max variant#10680
Draft
h3lix1 wants to merge 1 commit into
Draft
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a LILYGO T-Deck Max ESP32-S3 variant that follows the T-Deck Pro shape where the hardware matches, then wires in the Max-specific power expander, CST328/HynTouch touch controller, SY6970 charger, frontlight, ES8311 audio path, DRV2605 haptics rail, SD, GPS, keyboard, and internal antenna default.
This firmware PR depends on the protobuf hardware-model PR: meshtastic/protobufs#942
Why this is necessary
The T-Deck Max is close enough to T-Deck Pro to reuse its e-ink/keyboard behavior, but its board control is materially different. The Max routes core peripherals through an XL9555 expander, uses SY6970 charging instead of BQ25896 on the tested hardware, adds an e-paper frontlight, exposes three capacitive bezel keys, and needs the LoRa antenna select pinned to the internal antenna for the first implementation.
Without a dedicated variant, the firmware either reports the wrong hardware model or leaves important rails and reset lines in vendor-default states.
What changed
env:t-deck-maxwith hardware model139, T-Deck Pro e-ink geometry, 16 MB flash, PSRAM, SD, GPS, TCA8418 keyboard, DRV2605 haptics, ES8311 audio, and the local HynTouch driver sources.T_DECK_MAXarchitecture mapping tomeshtastic_HardwareModel_T_DECK_MAX.DeviceUIConfig.screen_brightness.HAS_PPMcharger path while preserving the BQ25896 path.flowchart LR A["ESP32-S3"] --> B["XL9555 expander"] B --> C["LoRa rail + internal antenna"] B --> D["GPS / IMU / haptics rails"] B --> E["Touch + keyboard reset"] B --> F["ES8311 select + amp enable"] A --> G["E-ink + PWM frontlight"] A --> H["TCA8418 keyboard"] A --> I["CST328/HynTouch"] A --> J["SY6970 + BQ27220"]How it works
variants/esp32s3/t-deck-max/variant.cppruns before the normal board bring-up. It parks chip-select lines high, starts the XL9555, enables only the rails needed for Meshtastic runtime, and leaves the A7682E modem power off.src/platform/extra_variants/t_deck_max/variant.cppthen finishes touch and audio setup after the base platform is initialized.The touch driver keeps coordinate touch separate from the three bezel keys. The current key mapping is vendor-order based: heart -> user/action, circle -> select, paper airplane -> send ping.
The frontlight path is opt-in through
HAS_EINK_FRONTLIGHTso existing boards that usePIN_EINK_BLas panel power are not affected.Validation
trunk fmton all touched source and variant files.git diff --checkplatformio project config --json-outputshowsenv:t-deck-max.~/.platformio/penv/bin/platformio run -e t-deck-maxReviewer notes
The generated firmware header contains
T_DECK_MAX = 139so this draft can compile once the protobuf change lands or the generated outputs are refreshed from that protobuf commit. Theprotobufssubmodule pointer is intentionally not moved to a fork-only commit.Known dependency: until meshtastic/protobufs#942 lands and firmware regenerates from that protobuf source,
protobufs/meshtastic/mesh.protoin this checkout will not containT_DECK_MAX. That is expected for this draft split; the final firmware PR should update the submodule/generated outputs after the protobuf PR is merged upstream.LTE/A7682E runtime support is intentionally out of scope. The modem pins and expander controls are named, but the modem rail stays off by default.