Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: swahren on August 23, 2015, 11:44:03 AM

Title: MOD-LCD6610
Post by: swahren on August 23, 2015, 11:44:03 AM
Last week i bougth me a MOD-LCD6610 in order to play a little with the FBTFT (http://lxr.free-electrons.com/source/drivers/staging/fbtft/) framework. Yesterday i started writing a driver for the Epson S1D15G00 LCD controller, because this code (https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/iMX233/MOD-LCD6610) looks very hacky to me.

Unfortunately it seems that nobody tested the FBTFT framework on MXS platform, because FBTFT crashed with a NULL pointer dereference during boot :-( So i will need to fix these issue first, before i can post any results.
Title: Re: MOD-LCD6610
Post by: lambda on August 23, 2015, 10:17:32 PM
I tried FBTFT with MOD-LCD3310 about a year ago. I compiled FBTFT as
a module (using the openwrt toolchain) and the module loaded fine.
However I didn't get any output on the display, not with FBTFT nor
with the code from olimex. So either I bricked the display or got
something else wrong. Since I never used SPI before and don't have
any other SPI hardware this was difficult to debug for me and I
gave up and used MOD-LCD1x9 instead.

However I will be very interested to read about your results.
Title: Re: MOD-LCD6610
Post by: swahren on August 23, 2015, 11:14:44 PM
Debugging SPI usually requires at least a logic analyzer and the MOD-LCD6610 doesn't support any SPI data read (only data write).
Title: Re: MOD-LCD6610
Post by: swahren on September 14, 2015, 11:59:01 PM
Since my bugfixes for fbtft has been applied to today, i pushed the a initial working version of my driver:

https://github.com/lategoodbye/linux-lcd6610

Edit:

Here the necessary kernel config options:

CONFIG_FB_TFT=y
CONFIG_FB_TFT_S1D15G00=m


Here the modprobe call:

modprobe fb_s1d15g00
Title: Re: MOD-LCD6610
Post by: swahren on November 01, 2015, 08:03:48 PM
After the last changes in my repo, it is possible to connect the display direct to Olinuxino board via UEXT connection.

Next steps would to rebase and submit the driver to mainline.
Title: Re: MOD-LCD6610
Post by: lambda on November 08, 2015, 05:24:05 PM
Nice!