Closed g0ierli closed 2 years ago
I looked at the fbtft_device entry:
.name = "ili9481",
.spi = &(struct spi_board_info) {
.modalias = "fb_ili9481",
.max_speed_hz = 32000000,
.mode = SPI_MODE_0,
.platform_data = &(struct fbtft_platform_data) {
.display = {
.regwidth = 16,
.buswidth = 8,
.backlight = 1,
},
.bgr = true,
.gpios = (const struct fbtft_gpio []) {
{ "reset", 25 },
{ "dc", 24 },
{ "led", 22 },
{},
},
}
}
It says regwidth=16. So I looked at the display schematics and yes it has a 16-bit shift register.
Try adding regwidth = <16>;
to the device tree.
Thank you very much.
The behavior of the display changed, and the text seems to be wrapped now and some lines are missing, but the cursor is blinking in the very last line under the word 'distribution':
Subsequently, I also tried to switch width/height:
And it's working now. Thank you very much for your help.
Hello,
I'm using a Waveshare 3.5 "pico" display (https://www.waveshare.com/wiki/Pico-ResTouch-LCD-3.5) which has an ILI9488 driver. However, before Kernel 5.4, i had no problem using the device by overriding the init option of the ILI9481:
/etc/modprobe.d/fbtft.conf:
I tried to experiment with the following dts and messing around with width, height and rotate:
Although the correct init sequence is shown in dmesg:
the display output is very errornous. Switching width/height doesn't give me any useful image:
Any idea, how to debug this or how to implement my own driver or override an existing driver without much effort? Any help is appreciated!