A20 MICRO 15.6" LCD integration

Started by qmetrix, October 07, 2015, 06:05:26 PM

Previous topic - Next topic

qmetrix

We try do use the 15.6" LCD display with mainline kernel using simplefp.
HDMI output is working normally.

Our u-boot config looks like this:

CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN7I=y
CONFIG_DRAM_CLK=384
CONFIG_MMC0_CD_PIN="PH1"
CONFIG_MMC3_CD_PIN="PH11"
CONFIG_MMC_SUNXI_SLOT_EXTRA=3
CONFIG_VIDEO_VGA=y
CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-micro"
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_SPL=y
CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8)"
# CONFIG_CMD_IMLS is not set
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_FPGA is not set
CONFIG_ETH_DESIGNWARE=y
CONFIG_USB_EHCI_HCD=y
CONFIG_VIDEO_LCD_MODE="x:1366,y:768,depth:18,pclk_khz:70000,le:53,ri:20,up:22,lo:17,hs:1,vs:1,sync:3,vmode:0"
CONFIG_VIDEO_LCD_DCLK_PHASE=0
CONFIG_VIDEO_LCD_PANEL_LVDS=y
CONFIG_VIDEO_LCD_POWER="PH8"
CONFIG_VIDEO_LCD_BL_EN="PH7"
CONFIG_VIDEO_LCD_BL_PWM="PB2"


the startup sequence looks like this:

U-Boot 2015.10-rc4+dfsg1-1qmet0.1qmet0.2 (Oct 07 2015 - 09:53:32 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Setting up a 1366x768 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 2 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found


For us it looks like the device is initializing the display but it stays dark.
What are we missing in the config or is misconfigured?
Can anybody give us a hint?


Mark13

#1
i'm exactly at that point and wonder if the starter or any member has found a solution
to get the 15.6 LVDS Display running with recent u-boot and device tree.

Theres nothing bad on following sunxi fex instructions, it is just not my way
and so far I got things running without.(like the 7" and 10" LCD)

I try to use now an A20-Olinuxino-Lime or Lime2 together with a 15.6FHD.

Problem is like above:
- no output on the display
- black screen after short initial pulse
- system boots properly

that is my u-boot video config so far:

CONFIG_I2C0_ENABLE=y
CONFIG_I2C1_ENABLE=y
CONFIG_I2C2_ENABLE=y
# CONFIG_I2C3_ENABLE is not set
# CONFIG_I2C4_ENABLE is not set
CONFIG_AXP_GPIO=y
CONFIG_VIDEO=y
CONFIG_VIDEO_HDMI=y
CONFIG_VIDEO_VGA=y
CONFIG_VIDEO_COMPOSITE=y
CONFIG_VIDEO_LCD_MODE="x:1920,y:1080,depth:16,pclk_khz:6734,le:88,ri:36,up:4,lo:4,hs:1,vs:1,sync:3,vmode:0"
CONFIG_VIDEO_LCD_DCLK_PHASE=0
CONFIG_VIDEO_LCD_POWER="PD25"
CONFIG_VIDEO_LCD_RESET=""
CONFIG_VIDEO_LCD_BL_EN=""
CONFIG_VIDEO_LCD_BL_PWM="PB2"
CONFIG_VIDEO_LCD_BL_PWM_ACTIVE_LOW=y
# CONFIG_VIDEO_LCD_PANEL_I2C is not set
CONFIG_VIDEO_LCD_IF_LVDS=y
# CONFIG_SUNXI_DE2 is not set
# CONFIG_VIDEO_LCD_PANEL_PARALLEL is not set
CONFIG_VIDEO_LCD_PANEL_LVDS=y
# CONFIG_VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828 is not set
# CONFIG_VIDEO_LCD_PANEL_EDP_4_LANE_1620M_VIA_ANX9804 is not set
# CONFIG_VIDEO_LCD_PANEL_HITACHI_TX18D42VM is not set
# CONFIG_VIDEO_LCD_TL059WV5C0 is not set


Thanks.