feat(lilygo-tdeck-max): wire up the MIA-M10Q GPS (#634)

This commit is contained in:
Crazypedia
2026-08-29 11:51:35 -04:00
committed by GitHub
parent bcbf18e363
commit e466b183cc
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -7,4 +7,5 @@ dependencies:
- Drivers/tca8418-module - Drivers/tca8418-module
- Drivers/sy6970-module - Drivers/sy6970-module
- Drivers/bq27220-module - Drivers/bq27220-module
- Drivers/gps-generic-module
dts: lilygo,tdeck-max.dts dts: lilygo,tdeck-max.dts
@@ -8,8 +8,10 @@
#include <tactility/bindings/esp32_spi.h> #include <tactility/bindings/esp32_spi.h>
#include <tactility/bindings/esp32_sdspi.h> #include <tactility/bindings/esp32_sdspi.h>
#include <tactility/bindings/esp32_pwm_ledc.h> #include <tactility/bindings/esp32_pwm_ledc.h>
#include <tactility/bindings/esp32_uart.h>
#include <tactility/bindings/esp32_usbdevice.h> #include <tactility/bindings/esp32_usbdevice.h>
#include <tactility/bindings/pwm_backlight.h> #include <tactility/bindings/pwm_backlight.h>
#include <tactility/bindings/gpio_hog.h>
#include <bindings/sx1262.h> #include <bindings/sx1262.h>
#include <bindings/xl9555.h> #include <bindings/xl9555.h>
#include <bindings/cst66xx.h> #include <bindings/cst66xx.h>
@@ -17,6 +19,7 @@
#include <bindings/tca8418.h> #include <bindings/tca8418.h>
#include <bindings/sy6970.h> #include <bindings/sy6970.h>
#include <bindings/bq27220.h> #include <bindings/bq27220.h>
#include <gps_generic/bindings.h>
// Reference: https://github.com/Xinyuan-LilyGO/T-Deck-MAX // Reference: https://github.com/Xinyuan-LilyGO/T-Deck-MAX
// lib/TDeckMaxBoard/src/TDeckMaxBoard.h, docs/pinmap.md // lib/TDeckMaxBoard/src/TDeckMaxBoard.h, docs/pinmap.md
@@ -47,6 +50,12 @@
xl9555 { xl9555 {
compatible = "xlsemi,xl9555"; compatible = "xlsemi,xl9555";
reg = <0x20>; reg = <0x20>;
gps_power {
compatible = "gpio-hog";
pin = <&xl9555 2 GPIO_FLAG_NONE>;
mode = <GPIO_HOG_MODE_OUTPUT_HIGH>;
};
}; };
// Vendor docs label this chip "CST328", but the vendor HynTouch driver probes // Vendor docs label this chip "CST328", but the vendor HynTouch driver probes
@@ -187,4 +196,19 @@
compatible = "espressif,esp32-usbdevice-msc"; compatible = "espressif,esp32-usbdevice-msc";
}; };
}; };
uart_gps {
compatible = "espressif,esp32-uart";
port = <UART_NUM_2>;
pin-tx = <&gpio0 16 GPIO_FLAG_NONE>;
pin-rx = <&gpio0 2 GPIO_FLAG_NONE>;
gps {
compatible = "tactility,gps-generic";
status = "disabled";
baud-rate = <38400>;
model = <GPS_MODEL_UBLOX10>;
};
};
}; };