hi guys, I found there is this mipi display driver in path “fenix/build/linux/drivers/amlogic/media/vout/lcd/lcd_extern” I wnted to know support for this driver like has anyone done bring up using any of this driver or working on it right now.
I have started working for today using bellow sources and environment. if anyone has some hints or guide. I will be grateful if you can share with me on this post.
environment parameters:
== ENV CONFIG =======================
VERSION=1.0.10
KHADAS_BOARD=VIM3L
LINUX=4.9
UBOOT=2015.01
DISTRIBUTION=Debian
DISTRIB_RELEASE=buster
DISTRIB_TYPE=lxde
DISTRIB_ARCH=arm64
INSTALL_TYPE=EMMC
COMPRESS_IMAGE=no
== ONE LINE CONFIG ==================
source env/setenv.sh -q -s KHADAS_BOARD=VIM3L LINUX=4.9 UBOOT=2015.01 DISTRIBUTION=Debian DISTRIB_RELEASE=buster DISTRIB_TYPE=lxde DISTRIB_ARCH=arm64 INSTALL_TYPE=EMMC COMPRESS_IMAGE=no
- source or guide I am following:
I will update if I get any success. peace out 
was finally able to reach probe st7701 driver 
khadas@Khadas:~$ dmesg | grep lcd
[ 0.554407] lcd: driver version: 20181012(5-g12a)
[ 0.554548] lcd: detect mode: tablet, fr_auto_policy: 0, key_valid: 0
[ 0.554555] lcd: detect lcd_clk_path: 1
[ 0.554857] lcd: lcd_clktree_probe
[ 0.554865] lcd: status: 3, LCD_STATUS_ENCL_ON = 2, LCD_STATUS_ON = 3
[ 0.554872] vout: vout1: register server: lcd_vout_server
[ 0.554878] vout: vout2: register server: lcd_vout2_server
[ 0.554890] lcd: lcd_get_config from dts
[ 0.554906] lcd: error: failed to get null
[ 0.554938] lcd: , mipi, 0bit, 1080x1920
[ 0.554955] lcd: error: Out of clock range, reset to default setting
[ 0.554966] lcd: pixel_clk = 0.000MHz, bit_rate = 0.000MHz
[ 0.554972] lcd: error: mipi_dsi_phy_config: dsi_ui is 0
[ 0.555268] lcd: lcd_fops_create OK
[ 0.555274] PDEBUG: lcd_notifier_register
[ 0.555323] lcd: request lcd_vsync_irq successful
[ 0.555360] lcd: request lcd_vsync2_irq successful
[ 0.555366] lcd: lcd_probe ok
[ 0.556075] lcd: lcd is already enabled
[ 0.556080] lcd: lcd interface is already enabled
[ 0.556085] lcd: clear mute
[ 2.327099] lcd extern: key_valid: 0
[ 2.327102] lcd extern: lcd_extern_get_config from dts
[ 2.327124] lcd extern: load config: mipi_ST7701[1]
[ 2.327425] lcd extern: error: mipi_ST7701: get init_off type failed, step 0
[ 2.327445] DEBUG_NAME_lcd: lcd_extern_add_driver, 1613 : name : 2
[ 2.327448] DEBUG_NAME_lcd: lcd_extern_add_driver, 1622 : , MIPI
[ 2.327451] DEBUG_NAME_LCD lcd : lcd_extern_add_mipi, 1535 : name : mipi_ST7701
[ 2.327455] [DEBUG] lcd_extern_add_mipi lcd st7701
[ 2.327458] [DEBUG] mipi_st7701 : aml_lcd_extern_mipi_st7701_probe[DEBUG]
[ 2.327464] lcd extern: add driver mipi_ST7701
[ 2.327496] lcd extern: aml_lcd_extern_probe ok
The tasks that remain are
-
- add some more parameters like here.
[0.55489] lcd: lcd_get_config from dts
[0.554906] lcd: error: failed to get null
[0.55438] lcd:, mipi, 0 bit, 1080x1920
-
- find out of the 4 MIPI lanes of VIM3L which 2 will remain on.
-
- convert init sequence form function (
W_D (0x40);
) format to assembly (0x15 1 0x40
) format where I currently don’t know which hex values to put. I will look at the datasheet of the display driver.
@numbqq @Gouwa Could you tell me which files set MIPI lane on the source side?