Interfacing

LVDS LeMaker 5" LCD with Kernel 4.x

6 553
Hi Guys,

does anyone of you have activated LCD in u-boot and DeviceTree in Kernel 4.x?
Background is. I was using Bananian till V 16.x. Switched to armbian with Kernel 4.x. Now Kernel isn't using fex - file anymore. So I aksed in armbian forum and got the hint that fex files are no longer supported and I have to activate LCD in u-boot and Devicetree.
I need some support or tutorials.
Would be glad about any hint.
Sry, only info available is for fex file
  1. http://wiki.lemaker.org/BananaPro/Pi:LCD_Module
Copy the Code




You may convert the FEX file to a DTS one.
I found at least this one : https://github.com/mripard/sunxi-babelfish but I didn't test it yet.

Please keep us updated.

Edited by MartinKeppler at Aug 31, 2016 07:26

Hi destroyedlolo,

thanks for reply. I'll begin to test it now and keep you up to date.
I also found some links about changing config for the u-boot to use lcd ...

http://linux-sunxi.org/LCD
http://docs.armbian.com/Developer-Guide_Build-Preparation/
http://docs.armbian.com/Hardware_Allwinner/

But at the moment, I ain't got a clue wich of these thousands of configs in the source I have to use.

Read us soon.

I opended a thread at armbians forum.
You also can follow my way to find a solution here: http://forum.armbian.com/index.p ... -u-boot-kernel-472/

Edited by MartinKeppler at Sep 30, 2016 09:06

So, now I can tell you how to enable LCD in u-boot and DT.

First getting the source of armbian from https://github.com/igorpecovnik/lib
Open the file sources/u-boot/v2016.09/configs/Bananapi_defconfig and add:
  1. CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:30000,le:40,ri:40,up:29,lo:13,hs:48,vs:3,sync:3,vmode:0"
  2. CONFIG_VIDEO_LCD_POWER="PH12"
  3. CONFIG_VIDEO_LCD_BL_EN="PH8"
  4. CONFIG_VIDEO_LCD_BL_PWM="PB2"
Copy the Code

Now LCD is enabled in u-boot. But it will not switch on backlight, because backlight uses pwm and pwm is disabled per default in DT. So you also have to add in your DTS:
  1. &pwm {
  2.       pinctrl-names = "default";
  3.       pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>;
  4.       status = "okay";
  5. };
Copy the Code

Ready!
But be aware, LCD only turns on if there is no HDMI Monitor plugged in!!

Ok, hopping some one else of you can use this stuff.

Ludagad  
CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:24,pclk_khz:30000,le:40,ri:40,up:29,lo:13,hs:48,vs:3,sync:3,vmode:0"


Nice job on finding this info Martin!

Going down the same road myself and there is next to no info. I need to run a non-LeMaker LVDS display, so can you post some links on what the different params stand for?

You have to log in before you can reply Login | Sign Up

Points Rules