I am trying to setup LVDS display on IMX6D which is working only through LVDS1 channel. The display is LG lb070wv8-sl02 (datasheet attached). I have changed imx6qdl-sabresd.dtsi like this:
mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB24";
default_bpp = <24>;
int_clk = <0>;
late_init = <0>;
status = "okay";
};
&ldb {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx6q-ldb";
gpr = <&gpr>;
primary;
lvds-channel@0 {
fsl,data-mapping = "spwg";
fsl,data-width = <18>;
status = "disabled";
display-timings {
native-mode = <&timing0>;
timing0: hsd100pxn1 {
clock-frequency = <65000000>;
hactive = <1024>;
vactive = <768>;
hback-porch = <220>;
hfront-porch = <40>;
vback-porch = <21>;
vfront-porch = <7>;
hsync-len = <60>;
vsync-len = <10>;
};
};
};
lvds-channel@1 {
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
primary;
status = "okay";
display-timings {
native-mode = <&timing1>;
timing1: LB070WV8_SL02_800X480 {
clock-frequency = <34000000>;
hactive = <800>;
vactive = <480>;
hback-porch = <160>;
hfront-porch = <80>;
vback-porch = <25>;
vfront-porch = <15>;
hsync-len = <256>;
vsync-len = <45>;
};
};
};
};
And I've also changed bootargs in uboot like this:
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw video=mxcfb0:dev=ldb,if=RGB24 ldb=sin1 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off
Looking into fbset it seems that it shows the right values, if I understand correctly:
# fbset
mode "800x480-46"
# 34.001 MHz, H: 26.235 kHz, V: 46.434 Hz
geometry 800 480 800 480 24
timings 29411 160 80 25 15 256 45
accel false
rgba 8/16,8/8,8/0,0/0
endmode
Here is the dmesg logs concerning fb:
[ 0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw video=mxcfb0:dev=ldb,if=RGB24 ldb=sin1 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off
[ 1.118132] mxc_sdc_fb fb@0: registered mxc display driver ldb
[ 1.118496] mxc_sdc_fb fb@1: Can't get fb option for mxcfb1!
[ 1.118840] mxc_sdc_fb fb@2: Can't get fb option for mxcfb2!
[ 1.119178] mxc_sdc_fb fb@3: Can't get fb option for mxcfb3!
[ 3.856214] mxc_sdc_fb fb@0: registered mxc display driver ldb
[ 4.497348] mxc_sdc_fb fb@0: timeout when waiting for flip irq
The only thing concerning me here is "timeout when waiting for flip irq" message, but I don't know if this could cause the display to not initialize correctly and what stands behind this.
Could you please help me at least with the steps to identify the issue causing the display to not work, because I don't know where else to look. Thanks.
I am using uboot-imx lf_v2023.04 and linux-imx lf-6.1.1-1.0.1