dt: Fix touchscreen

For some reason, the ecspi SS1 line appears on the output when
selecting GPIO in the pinmux.

Also, the x-axis is inverted, and pressure values upon press hover
around 250.
This commit is contained in:
Markus Koch 2024-12-21 13:49:31 +01:00
parent 7218a9965a
commit 237cd1ffb4
2 changed files with 6 additions and 2 deletions

View File

@ -60,6 +60,6 @@ For future updates via SSH, look into `scripts/upload_and_flash.sh`.
* Backlight (configured active by bootloader for now)
* Notification LEDs (not populated on HW anyways)
* Broken
* Touchscreen does report any events
* Touchscreen mapping is off (offset and skewed), prossibly fixable in libinput via transformation matrix.
* Speaker-amp (gpiochip4,2) not turned on automatically (needs to be activated using gpioset for now)

View File

@ -128,6 +128,10 @@
spi-max-frequency = <1000000>;
touchscreen-min-pressure = <128>;
touchscreen-max-pressure = <512>;
touchscreen-inverted-x;
wakeup-source;
};
};
@ -242,7 +246,7 @@
MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000
MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000
MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000
MX53_PAD_EIM_D19__ECSPI1_SS1 0x80000000
MX53_PAD_EIM_D19__GPIO3_19 0x80000000 /* Should normally be MX53_PAD_EIM_D19__ECSPI1_SS1, but for some reason ecspi controls the SS via GPIO. */
>;
};