-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waveshare 10.1" LCD DSI on Rock 4B+ #328
Comments
RaspberryPi driver originally used different timings which seems to be a bit better on Rock 4B+ - it does not swap the colors but the image is still shifted. It seems that the first line is not started at (0,0) which shifts the whole content. However, modifying the timings except of the resolution, clock and back-porch on total has absolutely no influence on the image. I.e. it makes no difference if I use 1280+40 or 1280+156.
|
I managed to get it running. I am attaching the patch to include Waveshare driver in the kernel 5.10 and device tree overlay. It uses gt9xx module for touch input which is included in the Radxa kernel. However, it seems that this module requires "touch-gpio" and "reset-gpio" pins to be defined else it results in long exception trace during the boot (but still works). But the Waveshare LCD does not use these pins. The module could be replaced with Goodix-TS driver which is also included but not enabled in Radxa kernel. This driver would require patching to support polling (+changing the name not to be in conflict with gt9xx driver). 0001-Add-panel-driver-for-Waveshare-DSI-touchscreens.patch Device tree overlay:
|
I'm trying to make the Waveshare 10.1" LCD DSI to work on Rock 4B+ by porting the driver from Raspberry 6.1 kernel. I modified the code and the modules builds and loads properly. The image on LCD appears but it is shifted about 2 cm to the right (while the right edge overflows to the left) and colors are swapped. I'm trying to modify the timings but no luck. The display resolution is 1280x800.
Any advice how to fix the image misalignment? When comparing 7" RPi LCD driver code, I see the timings are a bit different in Radxa Kernel. When I tune the timings by this, it fixed the swapped colors but not the image position.
This is the display: https://www.waveshare.com/10.1inch-dsi-lcd-c.htm
I'm using this code: https://github.com/raspberrypi/linux/blob/rpi-6.1.y/drivers/gpu/drm/panel/panel-waveshare-dsi.c
These are the timings that the driver uses on Raspberry Pi:
The text was updated successfully, but these errors were encountered: