Open redrathnure opened 1 year ago
They will not. How they hacked their SPI TFT to the Linux kernel is a complete mess. They took the ili9431 (which is a fixed, 240x320 pixel resolution TFT driver circuit) kernel driver from fbtft, changed the WIDTH and HEIGHT macro according to their resolution (320x480) and released the binary kernel module. I am in the process of reverse engineering and solving the whole mess correctly but the time I can spend on it is limited. The ILI9341 driver is still in the staging section of the 6.0 kernel so I don't see any obstacle in making it available in the same (disgusting) way they did, but I yet have to find a correct solution.
I think you could find MKS patches to Armbian and kernel here: https://github.com/makerbase-mks/armbian-build LCD changes are in userpatches/kernel/rockchip64-legacy/kernel-rockchip64-legacy.patch
Thanks, @majekw, this closes the GPL violation bug
Thanks for the info. However, I expect more support from a supplier who makes money from this hardware.
@compihu, @majekw I tried to apply patches to the current and edge kernels. https://github.com/redrathnure/armbian-mkspi/tree/custom/mkspi_23.02.0-trunk.0073. The same not really nice way to patch ILI9341 driver, however it works.
@redrathnure, The tft is an fb_ili9481, not a 9341. It works out of the box as soon as I modify the device tree accordingly. (Don't ask why they messed with a driver for a similar chip with a different resolution instead of using the proper one...)
oh, this great news! Could you share example of proper device tree declaration?
@redrathnure, As far as I can see from your commits, you've already figured it out...
Yes, it works, thank you for the hint.
Newest Armbian use 6.x kernel and MKS PI-TS35 does not works anymore. Any plans to update MKS-PI-Armbian image? And it would be nice to publish instructions how to enable MKS PI-TS35 screen with new Armbian (or other distro).