mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 02:45:05 +00:00
* IMU Updates Updated BMI270 and MPU6886 with the mount-matrix. Updated devices i can test with the mount-matrix. papers3, stackchan (cores3), sticks3, tab5, waveshare-s3-lcd-13, waveshare-s3-lcd-128 Devices not changed and not tested because i don't own them are: MPU6886 - core2, stickc-plus2. BMI270 - cardputer-adv * Update device.properties * No USB here! CH343P
99 lines
2.3 KiB
Plaintext
99 lines
2.3 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include <tactility/bindings/root.h>
|
|
#include <tactility/bindings/esp32_ble.h>
|
|
#include <tactility/bindings/esp32_wifi_pinned.h>
|
|
#include <tactility/bindings/esp32_gpio.h>
|
|
#include <tactility/bindings/esp32_i2c_master.h>
|
|
#include <tactility/bindings/esp32_spi.h>
|
|
#include <bindings/qmi8658.h>
|
|
#include <tactility/bindings/esp32_sdspi.h>
|
|
#include <tactility/bindings/esp32_pwm_ledc.h>
|
|
#include <tactility/bindings/pwm_backlight.h>
|
|
#include <bindings/cst816t.h>
|
|
#include <bindings/gc9a01.h>
|
|
|
|
// Reference: https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28
|
|
/ {
|
|
compatible = "root";
|
|
model = "Waveshare S3 Touch LCD 1.28";
|
|
|
|
wifi0 {
|
|
compatible = "espressif,esp32-wifi-pinned";
|
|
};
|
|
|
|
ble0 {
|
|
compatible = "espressif,esp32-ble";
|
|
};
|
|
|
|
gpio0 {
|
|
compatible = "espressif,esp32-gpio";
|
|
gpio-count = <49>;
|
|
};
|
|
|
|
i2c0 {
|
|
compatible = "espressif,esp32-i2c-master";
|
|
port = <I2C_NUM_0>;
|
|
clock-frequency = <400000>;
|
|
pin-sda = <&gpio0 6 GPIO_FLAG_NONE>;
|
|
pin-scl = <&gpio0 7 GPIO_FLAG_NONE>;
|
|
|
|
qmi8658 {
|
|
compatible = "qst,qmi8658";
|
|
reg = <0x6B>;
|
|
mount-matrix = <0 1 0
|
|
1 0 0
|
|
0 0 1>;
|
|
};
|
|
|
|
touch0 {
|
|
compatible = "hynitron,cst816t";
|
|
reg = <0x15>;
|
|
x-max = <240>;
|
|
y-max = <240>;
|
|
mirror-x;
|
|
mirror-y;
|
|
pin-reset = <&gpio0 13 GPIO_FLAG_NONE>;
|
|
pin-interrupt = <&gpio0 5 GPIO_FLAG_NONE>;
|
|
};
|
|
};
|
|
|
|
display_backlight_pwm {
|
|
compatible = "espressif,esp32-pwm-ledc";
|
|
pin = <&gpio0 2 GPIO_FLAG_NONE>;
|
|
period-ns = <3906250>;
|
|
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 9 GPIO_FLAG_NONE>;
|
|
pin-mosi = <&gpio0 11 GPIO_FLAG_NONE>;
|
|
pin-miso = <&gpio0 12 GPIO_FLAG_NONE>;
|
|
pin-sclk = <&gpio0 10 GPIO_FLAG_NONE>;
|
|
|
|
display@0 {
|
|
compatible = "galaxycore,gc9a01";
|
|
horizontal-resolution = <240>;
|
|
vertical-resolution = <240>;
|
|
shape = <DISPLAY_SHAPE_CIRCLE>;
|
|
mirror-y;
|
|
invert-color;
|
|
bgr-order;
|
|
pin-dc = <&gpio0 8 GPIO_FLAG_NONE>;
|
|
pin-reset = <&gpio0 14 GPIO_FLAG_NONE>;
|
|
backlight = <&display_backlight>;
|
|
};
|
|
};
|
|
};
|