50c0a14a93
- Added kernel base drivers for: display, pointer (touch, mouse, etc.), keyboard, adc, power supply and backlight - Implement new kernel driver modules: `st7789-module` and `gt911-module` - Implement ESP32 ADC "oneshot" kernel driver - Implement ESP32 backlight kernel driver with ledc API - Implemented `battery-sense` driver that allows for voltage measurement and creates a power supply child device - Updated github actions - Updated flash scripts - Fix for esp32 legacy driver conflict with ADC - Created separate `lilygo-tdeck` and `lilygo-tdeck-plus` devices - Created `lilygo-module` with LilyGO kernel drivers - Fix for intermittent errors in build related to code generation of `devicetree.c` - `lvgl-module` can now map kernel drivers onto LVGL devices - Created `KernelDisplayApp` as a mirror of `HalDisplayApp` (formerly `DisplayApp`) - Removed `struct` and `enum` prefix in a lot of kernel driver cpp source files - `lilygo-tdeck` and `lilygo-tdeck-plus` are now fully relying on kernel drivers and don't use any of the old HAL
64 lines
1.6 KiB
Devicetree
64 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_sdspi.h>
|
|
#include <tactility/bindings/display_placeholder.h>
|
|
#include <tactility/bindings/pointer_placeholder.h>
|
|
#include <tactility/bindings/esp32_uart.h>
|
|
|
|
/ {
|
|
compatible = "root";
|
|
model = "CYD 2432S024R";
|
|
|
|
wifi0 {
|
|
compatible = "espressif,esp32-wifi-pinned";
|
|
status = "disabled";
|
|
};
|
|
|
|
gpio0 {
|
|
compatible = "espressif,esp32-gpio";
|
|
gpio-count = <40>;
|
|
};
|
|
|
|
spi0 {
|
|
compatible = "espressif,esp32-spi";
|
|
host = <SPI2_HOST>;
|
|
pin-mosi = <&gpio0 13 GPIO_FLAG_NONE>;
|
|
pin-miso = <&gpio0 12 GPIO_FLAG_NONE>;
|
|
pin-sclk = <&gpio0 14 GPIO_FLAG_NONE>;
|
|
cs-gpios = <&gpio0 15 GPIO_FLAG_NONE>, // Display
|
|
<&gpio0 33 GPIO_FLAG_NONE>; // Touch
|
|
|
|
display@0 {
|
|
compatible = "display-placeholder";
|
|
};
|
|
|
|
touch@1 {
|
|
compatible = "pointer-placeholder";
|
|
};
|
|
};
|
|
|
|
spi1 {
|
|
compatible = "espressif,esp32-spi";
|
|
host = <SPI3_HOST>;
|
|
pin-mosi = <&gpio0 23 GPIO_FLAG_NONE>;
|
|
pin-miso = <&gpio0 19 GPIO_FLAG_NONE>;
|
|
pin-sclk = <&gpio0 18 GPIO_FLAG_NONE>;
|
|
cs-gpios = <&gpio0 5 GPIO_FLAG_NONE>;
|
|
|
|
sdcard@0 {
|
|
compatible = "espressif,esp32-sdspi";
|
|
frequency-khz = <20000>;
|
|
};
|
|
};
|
|
|
|
uart1 {
|
|
compatible = "espressif,esp32-uart";
|
|
port = <UART_NUM_1>;
|
|
pin-tx = <&gpio0 1 GPIO_FLAG_NONE>;
|
|
pin-rx = <&gpio0 3 GPIO_FLAG_NONE>;
|
|
};
|
|
}; |