Page 1 of 1

SPI LCD as a framebuffer

Posted: Sun May 21, 2017 2:42 pm
by kekerman
I want to be able do display something on the LCD, but only through a framebuffer. I googled a bit and found out that many people done that, but no one posted a step by step solution. I have a display like this one - https://www.youtube.com/watch?v=pax7kA2gCFs and http://www.haoyuelectronics.com/Attachm ... le-A-1.jpg

I am a linux newbie, so hacking kernel is a bit too difficult I think ;) Does anyone know how to acces this lcd by a framebuffer?

Vonger made a post about connecting only http://vonger.cn/?p=8216 yet I don't know why we need to combine mosi and miso to sda. Can't I just connect MOSI to SDA?

Re: SPI LCD as a framebuffer

Posted: Mon May 22, 2017 9:04 pm
by noblepepper
Nice picture, I don't waste my time watching YouTube videos about tech stuff. A model number and spec sheet would be useful.

IIRC Vonger's blog post is about connecting a non standard display, I would avoid that and use a 3/2.5v 4 wire spi display that uses a controller chip supported by the frame buffer you want to use. They abound on eBay for few $$.

The only framebuffer I found with even a chance of getting in mainstream kernel is fbtft it isn't hard to get working on a system with fully functional spi (vocore 1 works)

The 7628 has a hardware limit on spi transfer size that prevented using a framebuffer or much of anything else the last time I tried. Since then I found this patch that works for using flashrom over spidev. It should work for fbtft but I haven't tried.

Until there is a working dma/spi driver performance will be unimpressive.

Re: SPI LCD as a framebuffer

Posted: Tue May 23, 2017 1:21 am
by Vonger
@kekerman I can only find 3-wires lcd screen, ILI94xx only 3wires :) lucky me, use a resistor I can make it work.
@nobblepepper step by step, we will have dma spi later :)

actually vocore2 spi is much faster, it send one spi package 32 bytes, but vocore send package byte one by one, even it is able to send different length of spi package but time cost on compose the package.

Re: SPI LCD as a framebuffer

Posted: Tue May 23, 2017 3:07 pm
by kekerman
So I should compile source from http://vocore.io/v2.html with fbtft for my screen driver and it should just work? Anything I write to framebuffer will be sent to the screen, right?

Re: SPI LCD as a framebuffer

Posted: Mon Jun 05, 2017 8:41 am
by Vonger
I will write a tutorial step by step, actually I am newbie to it too.
10K is necessary, convert 4pin spi to 3 pin spi.

Re: SPI LCD as a framebuffer

Posted: Mon Jun 05, 2017 12:13 pm
by kekerman
Ok, great. Thanks ^^