Jump to content

BPI-M1+ with small LCD in Vanilla kernel


Bongho Lee

Recommended Posts

On legacy kernel, Armbian_5.10_Bananapipro_Debian_jessie_3.4.112.7z,

if I use /boot/script.bin with https://github.com/LeMaker/fex_configuration/raw/master/bin/banana_pi_35lcd.bin, my lcd works properly.

 

But on Vanilla kernel, Armbian_5.10_Bananapipro_Debian_jessie_4.5.2.7z,

if I change /boot/script.bin with https://github.com/LeMaker/fex_configuration/raw/master/bin/banana_pi_35lcd.bin, my lcd doesn't work.

 

What should I check more?

Link to comment
Share on other sites

Well, there are few things to clear out - script.bin is a hardware config for legacy kernel (3.4.x). When you change kernel to vanilla, this conf becomes obsolete.

 

Configuration in vanilla kernels is placed in DT. We haven't prepare configuration for Vanilla kernel, but here is a patch: 

 

https://github.com/igorpecovnik/lib/blob/master/patch/kernel/sunxi-next/bananapipro_lemaker_lcd.patch.disabled

 

but is untested.

Link to comment
Share on other sites

Can I put the LCD information in boot.cmd file without compile?

 

I tried to compile with below patch file. But the LCD still doesn't work.

 

lib/patch/u-boot/u-boot-next/u-boot_v2016.05_Bananapro_defconfig.patch

diff --git a/configs/Bananapro_defconfig b/configs/Bananapro_defconfig
index 40588b9..4f4a07b 100644
--- a/configs/Bananapro_defconfig
+++ b/configs/Bananapro_defconfig
@@ -28,3 +28,9 @@
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_AXP_ALDO4_VOLT=2500
 CONFIG_USB_EHCI_HCD=y
+CONFIG_VIDEO_LCD_MODE="x:320,y:240,depth:24,pclk_khz:7000,le:38,ri:20,up:15,lo:4,hs:30,vs:3,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="PH12"
+CONFIG_VIDEO_LCD_BL_EN="PH8"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
+CONFIG_VIDEO_LCD_BL_PWM_ACTIVE_LOW=n
+CONFIG_VIDEO_LCD_PANEL_LVDS=y
Link to comment
Share on other sites

Well, there are few things to clear out - script.bin is a hardware config for legacy kernel (3.4.x). When you change kernel to vanilla, this conf becomes obsolete.

 

Configuration in vanilla kernels is placed in DT. We haven't prepare configuration for Vanilla kernel, but here is a patch: 

 

https://github.com/igorpecovnik/lib/blob/master/patch/kernel/sunxi-next/bananapipro_lemaker_lcd.patch.disabled

 

but is untested.

 

That device being enabled in that patch is a touch screen decoder, isn't it? Not an LCD screen. Or is that link wrong now?

 

The ft5x06 is the only device mentioned in both sections of the patch. It looks like an I2C interface except that PH7 and PH9 aren't I2C interface pins according to the A20 User Manual, so there must be a bit-bang I2C driver? Or is something else going on?

 

The BananaPro schematic (Rev 1.1, August 22, 2013) says those are connected to LCD0_IO0 (ball B4) and LCD0_IO2 (ball D4), and they go to connector CON2. The named signals on that connector don't make sense: LCD0_IO0 <-->ADCX2 and LCD0_IO2 <--> FLASH ... !? 

 

CON2 looks like bad information. Looking at the other signal names on CON2, those don't make sense with what they're connected to. FMINL and FMINR are signals on the processor that aren't multiplexed, so those names on CON2 aren't -- can't be -- according to the label. CON2 and CON5 are mirror images of eachother. CON5 looks as though it could actually be right, CON2 must be wrong.

 

Has all this been discussed elsewhere?

 

That patch appears to ONLY affect the I2C interface to the FT5X06 capacitive touch panel, not the LCD.

 

Is there an actual patch to enable the LCD for the vanilla kernel?

 

Thanks

Chris

Link to comment
Share on other sites

As expected since with mainline kernel you must setup any LCD in u-boot (the patch Igor mentioned is adding the TS controller to the device tree): http://linux-sunxi.org/LCD

 

All of the files in that sunxi.org LCD link are fex files --- not applicable to the Vanilla kernel. Is there a link for LCD support for the Vanilla kernel? Is there a way to do that? 

 

Thanks,

 

Chris

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines