T-Deck Max & Pro support updates (#582)

- Created kernel driver for T-Deck Max & Pro display (needs work, doesn't refresh reliably on T-Deck Pro)
- Created T-Deck Pro device implementation (incubating)
This commit is contained in:
Ken Van Hoeylandt
2026-07-24 00:17:48 +02:00
committed by GitHub
parent 429125734a
commit 29e80cfd65
26 changed files with 1204 additions and 978 deletions
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <tactility/bindings/bindings.h>
#include <drivers/gdeq031t10.h>
DEFINE_DEVICETREE(gdeq031t10, struct Gdeq031t10Config)
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: Apache-2.0
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
#include <tactility/drivers/gpio.h>
/** Waveform/refresh mode used for automatic full-screen refreshes. */
enum Gdeq031t10RefreshMode {
GDEQ031T10_REFRESH_FULL = 0, // ~3s, best quality
GDEQ031T10_REFRESH_FAST = 1, // ~1.0s
GDEQ031T10_REFRESH_SLOW = 2, // ~1.5s, fast LUT with extra settling
GDEQ031T10_REFRESH_PARTIAL = 3 // ~0.5s, full-frame partial-mode refresh (more ghosting)
};
struct Gdeq031t10Config {
struct GpioPinSpec pin_dc;
struct GpioPinSpec pin_reset;
struct GpioPinSpec pin_busy;
int clock_speed_hz;
enum Gdeq031t10RefreshMode refresh_mode;
/** Panel is mounted upside down relative to the reference orientation */
bool mirror_180;
};
#ifdef __cplusplus
}
#endif
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <tactility/module.h>
#ifdef __cplusplus
extern "C" {
#endif
extern struct Module gdeq031t10_module;
#ifdef __cplusplus
}
#endif