moahrs
Posts: 20
Joined: Mon Nov 05, 2018 1:03 am

Developer new TFT LCD driver for Linux RPI

Mon Dec 10, 2018 7:40 pm

Hi,

I was developed a driver, for LCD TFT SSD1289. I know that have many drivers for this LCD develeped, but all is in SPI, this my is using in Paralel.

Well, i developed all comunication, it's working like a charm, and faster (because paralel), tested in a zero pi w, but i do not know, how i developer (sdk, includes, and all necessary) to transform my driver in a driver compatible with linux (installable and usable) by linux...

PS: i do not have access to 74hc4094, but i can put a PIC (12F or 16F) to simulate one, but i have all done in paralel, and all work, i want to use in paralel



Ty all
Moacir Jr.

Andyroo
Posts: 2005
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Developer new TFT LCD driver for Linux RPI

Mon Dec 10, 2018 7:58 pm

Not a simple task :o A screen driver has to be able to handle lots of complex commands from lots of high level GUI systems - I understand the AMD video card driver is around 2.5 million lines of code :o

Have a look at https://sysprogs.com/VisualKernel/tutor ... s/chardev/ for a very very basic character driver.
You may also find this book handy https://www.amazon.co.uk/Linux-Device-D ... 1785280007 for IRQ / Memory and device tree management and https://www.amazon.co.uk/Mastering-Linu ... 1785883054 for general development.

You may do better to put your code into a Python library that folk could use like the InkyPhat 'drivers' from Pimoroni https://github.com/pimoroni/inky-phat and ask people to use it that way to start. It will help you get any bug info.
Need Pi spray - these things are breeding in my house...

moahrs
Posts: 20
Joined: Mon Nov 05, 2018 1:03 am

Re: Developer new TFT LCD driver for Linux RPI

Mon Dec 10, 2018 11:53 pm

Not a simple task :o A screen driver has to be able to handle lots of complex commands from lots of high level GUI systems - I understand the AMD video card driver is around 2.5 million lines of code :o
This is for linux Raspberry pi too? I thought it was more easier in raspberry pi, since have so much lcd tft drivers released...

Ty for response, i will do a review in my idea.


Ty a lot,
Moacir Jr.

User avatar
Gavinmc42
Posts: 2753
Joined: Wed Aug 28, 2013 3:31 am

Re: Developer new TFT LCD driver for Linux RPI

Tue Dec 11, 2018 5:45 am

Parallel interface LCD is supported, 8/9/16/18 bits
Look for DPI drivers.
There is some source code in the Linux Kernel sources.
Check to see if the SSD1289 is not already supported.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

moahrs
Posts: 20
Joined: Mon Nov 05, 2018 1:03 am

Re: Developer new TFT LCD driver for Linux RPI

Tue Dec 11, 2018 10:14 am

Parallel interface LCD is supported, 8/9/16/18 bits
Look for DPI drivers.
There is some source code in the Linux Kernel sources.
Check to see if the SSD1289 is not already supported.
Realy, in linux-rpi-4.14.y for raspberry pi, i found ssd1289.. i will verify.. Ty for reply...


Ty a Lot
Moacir Jr.

User avatar
Gavinmc42
Posts: 2753
Joined: Wed Aug 28, 2013 3:31 am

Re: Developer new TFT LCD driver for Linux RPI

Wed Dec 12, 2018 12:33 am

Also keep an eye on Eric Anholt's stuff.
Support for small LCDs is getting better as the trend is towards only updating changed pixels.
This is faster than rewriting the whole display.

There are some drivers out there already, notro's stuff?
Google for TinyDRM
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ghans
Posts: 7839
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Developer new TFT LCD driver for Linux RPI

Wed Dec 12, 2018 5:44 am

Have a look at "tinydrm":
https://github.com/notro/tinydrm/wiki

tinydrm was explicitly designed for writing simpler LCD drivers, especially on the Raspberry Pi.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Other projects”