Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ jobs:
{ id: m5stack-core2, arch: esp32 },
{ id: m5stack-cores3, arch: esp32s3 },
{ id: m5stack-papers3, arch: esp32s3 },
{ id: m5stack-stackchan, arch: esp32s3 },
{ id: m5stack-stickc-plus, arch: esp32 },
{ id: m5stack-stickc-plus2, arch: esp32 },
{ id: m5stack-sticks3, arch: esp32s3 },
{ id: m5stack-tab5, arch: esp32p4 },
{ id: unphone, arch: esp32s3 },
{ id: waveshare-esp32-s3-geek, arch: esp32s3 },
Expand Down
9 changes: 9 additions & 0 deletions Buildscripts/DevicetreeCompiler/source/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ def generate_devicetree_c(filename: str, items: list[object], bindings: list[Bin
file.write("};\n")
# Gather module symbols
module_symbol_names = []
# Device's own module goes first (started before its dependency modules)
if config.dts:
device_dir = os.path.dirname(os.path.normpath(config.dts))
device_name = os.path.basename(device_dir)
if device_name:
device_module_name = device_name.replace('-', '_')
if not device_module_name.endswith("_module"):
device_module_name += "_module"
module_symbol_names.append(device_module_name)
for dependency in config.dependencies:
dependency_name = os.path.basename(os.path.normpath(dependency))
module_symbol_name = f"{dependency_name.replace('-', '_')}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ struct DtsDevice dts_devices[] = {
DTS_DEVICE_TERMINATOR
};

extern struct Module data_module;

struct Module* dts_modules[] = {
&data_module,
NULL
};
7 changes: 7 additions & 0 deletions Buildscripts/TactilitySDK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ idf_component_register(
"Libraries/TactilityC/include"
"Libraries/TactilityKernel/include"
"Libraries/lvgl/include"
"Modules/lvgl-module/include"
"Drivers/bm8563-module/include"
"Drivers/bmi270-module/include"
"Drivers/mpu6886-module/include"
"Drivers/pi4ioe5v6408-module/include"
"Drivers/qmi8658-module/include"
"Drivers/rx8130ce-module/include"
REQUIRES esp_timer
)

Expand Down
5 changes: 5 additions & 0 deletions Devices/btt-panda-touch/bigtreetech,panda-touch.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>

Expand All @@ -9,6 +10,10 @@
compatible = "root";
model = "BigTreeTech Panda Touch";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/btt-panda-touch/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spiRam=true
spiRamMode=OCT
spiRamSpeed=120M
esptoolFlashFreq=120M
bluetooth=true

[display]
size=5"
Expand Down
5 changes: 5 additions & 0 deletions Devices/cyd-4848s040c/cyd,4848s040c.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_spi.h>
Expand All @@ -9,6 +10,10 @@
compatible = "root";
model = "CYD 4848S040C";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/cyd-4848s040c/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ flashSize=16MB
spiRam=true
spiRamMode=OCT
spiRamSpeed=80M
bluetooth=true

[display]
size=4"
Expand Down
5 changes: 5 additions & 0 deletions Devices/cyd-8048s043c/cyd,8048s043c.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_uart.h>
Expand All @@ -10,6 +11,10 @@
compatible = "root";
model = "CYD 8048S043C";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/cyd-8048s043c/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRam=true
spiRamMode=OCT
spiRamSpeed=80M
esptoolFlashFreq=80M
bluetooth=true

[display]
size=4.3"
Expand Down
1 change: 1 addition & 0 deletions Devices/elecrow-crowpanel-advance-28/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=2.8"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_spi.h>
Expand All @@ -10,6 +11,10 @@
compatible = "root";
model = "Elecrow CrowPanel Advance 2.8";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/elecrow-crowpanel-advance-35/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=3.5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_spi.h>
Expand All @@ -10,6 +11,10 @@
compatible = "root";
model = "Elecrow CrowPanel Advance 3.5";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/elecrow-crowpanel-advance-50/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_spi.h>
Expand All @@ -10,6 +11,10 @@
compatible = "root";
model = "Elecrow CrowPanel Advance 5.0";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/elecrow-crowpanel-basic-50/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=5.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_spi.h>
Expand All @@ -10,6 +11,10 @@
compatible = "root";
model = "Elecrow CrowPanel Basic 5.0";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/guition-jc1060p470ciwy/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spiRam=true
spiRamMode=OCT
spiRamSpeed=200M
esptoolFlashFreq=80M
bluetooth=true

[display]
size=7"
Expand Down
5 changes: 5 additions & 0 deletions Devices/guition-jc1060p470ciwy/guition,jc1060p470ciwy.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_i2s.h>
Expand All @@ -17,6 +18,10 @@
compatible = "root";
model = "Guition JC1060P470C-I-W-Y";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <57>;
Expand Down
1 change: 1 addition & 0 deletions Devices/guition-jc3248w535c/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=3.5"
Expand Down
5 changes: 5 additions & 0 deletions Devices/guition-jc3248w535c/guition,jc3248w535c.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_i2s.h>
Expand All @@ -11,6 +12,10 @@
compatible = "root";
model = "Guition JC3248W535C";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/guition-jc8048w550c/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spiRam=true
spiRamMode=OCT
spiRamSpeed=80M
esptoolFlashFreq=80M
bluetooth=true

[display]
size=5"
Expand Down
5 changes: 5 additions & 0 deletions Devices/guition-jc8048w550c/guition,jc8048w550c.dts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_i2s.h>
Expand All @@ -11,6 +12,10 @@
compatible = "root";
model = "Guition JC8048W550C";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
1 change: 1 addition & 0 deletions Devices/heltec-wifi-lora-32-v3/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ flashSize=8MB
spiRam=false
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=0.96"
Expand Down
5 changes: 5 additions & 0 deletions Devices/heltec-wifi-lora-32-v3/heltec,wifi-lora-32-v3.dts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>

/ {
compatible = "root";
model = "Heltec WiFi LoRa 32 V3";

ble0 {
compatible = "espressif,esp32-ble";
};

gpio0 {
compatible = "espressif,esp32-gpio";
gpio-count = <49>;
Expand Down
3 changes: 2 additions & 1 deletion Devices/lilygo-tdeck/Source/devices/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
.touch = createTouch(),
.backlightDutyFunction = driver::pwmbacklight::setBacklightDuty,
.resetPin = GPIO_NUM_NC,
.lvglSwapBytes = false
.lvglSwapBytes = false,
.buffSpiram = true
};

auto spi_configuration = std::make_shared<St7789Display::SpiConfiguration>(St7789Display::SpiConfiguration {
Expand Down
4 changes: 2 additions & 2 deletions Devices/lilygo-tdeck/lilygo,tdeck.dts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/dts-v1/;

#include <tactility/bindings/root.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_gpio.h>
#include <tactility/bindings/esp32_i2c.h>
#include <tactility/bindings/esp32_i2s.h>
#include <tactility/bindings/esp32_ble.h>
#include <tactility/bindings/esp32_spi.h>
#include <tactility/bindings/esp32_uart.h>

Expand All @@ -25,7 +25,7 @@
i2c_internal: i2c0 {
compatible = "espressif,esp32-i2c";
port = <I2C_NUM_0>;
clock-frequency = <400000>;
clock-frequency = <100000>;
pin-sda = <&gpio0 18 GPIO_FLAG_NONE>;
pin-scl = <&gpio0 8 GPIO_FLAG_NONE>;
};
Expand Down
1 change: 1 addition & 0 deletions Devices/lilygo-tdisplay-s3/device.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spiRamMode=OCT
spiRamSpeed=120M
tinyUsb=true
esptoolFlashFreq=120M
bluetooth=true

[display]
size=1.9"
Expand Down
Loading
Loading