d896657bf9
Device migrations: - cyd-4848S040c - guition-jc1060p470ciwy - guition-jc2432w328c - guition-jc3248w535c (known issue with display and touch, Shadowtrance will look into it) - guition-jc8048w550c - heltec-wifi-lora-32-v3 - lilygo-tdeck-max (excluding graphics) - lilygo-tdisplay - lilygo-tdisplay-s3 - lilygo-tdongle-s3 - lilygo-tlora-pager Driver migrations: - Implemented haptic driver interface in kernel - AXS15231b - BQ25896 - BQ27220 - CST328 - CST6xx - DRV2605 - JD9165 - Custom LilyGO driver for T-Lora Pager - SSD1306 - ST7701 - ST7735 - SY6970 - TCA8418 Fixes/improvements: - Boot app: support for multiple power devices, improved UI - lvgl_devices and related code: fixes for mapping - Support for arrays in dts parser
69 lines
1.6 KiB
Devicetree
69 lines
1.6 KiB
Devicetree
/dts-v1/;
|
|
|
|
#include <tactility/bindings/root.h>
|
|
#include <tactility/bindings/esp32_wifi_pinned.h>
|
|
#include <tactility/bindings/esp32_gpio.h>
|
|
#include <tactility/bindings/esp32_spi.h>
|
|
#include <tactility/bindings/esp32_pwm_ledc.h>
|
|
#include <tactility/bindings/pwm_backlight.h>
|
|
#include <bindings/st7789.h>
|
|
#include <bindings/button_control.h>
|
|
|
|
/ {
|
|
compatible = "root";
|
|
model = "LilyGO T-Display";
|
|
|
|
wifi0 {
|
|
compatible = "espressif,esp32-wifi-pinned";
|
|
status = "disabled";
|
|
};
|
|
|
|
gpio0 {
|
|
compatible = "espressif,esp32-gpio";
|
|
gpio-count = <49>;
|
|
};
|
|
|
|
display_backlight_pwm {
|
|
compatible = "espressif,esp32-pwm-ledc";
|
|
pin = <&gpio0 4 GPIO_FLAG_NONE>;
|
|
period-ns = <1953125>;
|
|
ledc-timer = <0>;
|
|
ledc-channel = <0>;
|
|
};
|
|
|
|
display_backlight {
|
|
compatible = "pwm-backlight";
|
|
// Off by default so display power-on won't show the screen from before the last power loss.
|
|
// The display backlight is turned on during the boot process.
|
|
status = "disabled";
|
|
pwm = <&display_backlight_pwm>;
|
|
};
|
|
|
|
spi0 {
|
|
compatible = "espressif,esp32-spi";
|
|
host = <SPI2_HOST>;
|
|
cs-gpios = <&gpio0 5 GPIO_FLAG_NONE>;
|
|
pin-mosi = <&gpio0 19 GPIO_FLAG_NONE>;
|
|
pin-sclk = <&gpio0 18 GPIO_FLAG_NONE>;
|
|
|
|
display@0 {
|
|
compatible = "sitronix,st7789";
|
|
horizontal-resolution = <135>;
|
|
vertical-resolution = <240>;
|
|
gap-x = <52>;
|
|
gap-y = <40>;
|
|
invert-color;
|
|
pixel-clock-hz = <62500000>;
|
|
pin-dc = <&gpio0 16 GPIO_FLAG_NONE>;
|
|
pin-reset = <&gpio0 23 GPIO_FLAG_NONE>;
|
|
backlight = <&display_backlight>;
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "tactility,button-control";
|
|
pin-primary = <&gpio0 35 GPIO_FLAG_NONE>;
|
|
pin-secondary = <&gpio0 0 GPIO_FLAG_NONE>;
|
|
};
|
|
};
|