Interface MIPI-DSI to imx6 DualLite

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Interface MIPI-DSI to imx6 DualLite

跳至解决方案
5,202 次查看
jigneshpatel
Contributor III

Hi,

I am trying to interface MIPI-DSI lcd panel with Imx6 Dual lite processor. attached LCD data sheet for reference.

In my default device tree LVDS and HDMI display is already configured and added for MIPI-DSI in dtsi as following:

"
mxcfb1: fb@0 {
    compatible = "fsl,mxc_sdc_fb";
    disp_dev = "mipi_dsi";
    interface_pix_fmt = "RGB24";
    mode_str ="TRULY-WVGA";
    default_bpp = <24>;
    int_clk = <0>;
    late_init = <0>;
     status = "okay";
};

&mipi_dsi {
    status = "okay";
    ipu_id = <0>;
    csi_id = <1>;
    v_channel = <0>;
    lanes = <2>;
    pinctrl-names = "default";
    lcd_panel = "TRULY-WVGA";
    pinctrl-0 = <&pinctrl_mipi_dsi_reset>;
};
"

I have successfully build it and install it. but i am getting following error on debug.

"
mxc_sdc_fb fb@0: get mxcfb of property fail
mxc_sdc_fb: probe of fb@0 failed with error -22
mxc_sdc_fb fb@1: Can't get fb option for mxcfb1!
"

As error shows issue is in driver probe and register.

Please help to write proper device probe for MIPI-DSI.

Thanks,

Jignesh Patel

标签 (3)
1 解答
4,366 次查看
jigneshpatel
Contributor III

Thanks for guidance,

Finally my MIPI DSI driver and mxc_sdc_fb driver probed, now next is LCD integration.

Issue is boorargs, uboot has LVDS interface. After changing mipi_dsi in videoargs,  driver is registered.

Thanks,

Jignesh Patel

在原帖中查看解决方案

0 项奖励
回复
6 回复数
4,367 次查看
jigneshpatel
Contributor III

Thanks for guidance,

Finally my MIPI DSI driver and mxc_sdc_fb driver probed, now next is LCD integration.

Issue is boorargs, uboot has LVDS interface. After changing mipi_dsi in videoargs,  driver is registered.

Thanks,

Jignesh Patel

0 项奖励
回复
4,366 次查看
jaymind
Contributor IV

Hi Jignesh,

Can you please share your corrected bootargs/videoargs here?

Because I am also facing similar issue,

[ 0.405405] mxc_mipi_dsi fb@0: failed to read of property dev_id

After adding dev_id = <0>; and disp_id = <0>; both values in mxcfb1: fb@0 and &mipi_dsi both nodes another error is generating as below:

mxc_mipi_dsi fb@0: failed to get platform resource 0

My current dtsi node details:

mxcfb1: fb@0 {
compatible = "fsl,imx6q-mipi-dsi";
disp_dev = "mipi_dsi";
dev_id = <0>; //added new
disp_id = <0>; //added new, disp_id = <1>;
interface_pix_fmt = "RGB24";
lcd_panel = "TRULY-WVGA";
mode_str ="TRULY-WVGA";
default_bpp = <24>;
int_clk = <0>;
late_init = <0>;
status = "okay";
};


&mipi_dsi {
compatible = "fsl,imx6q-mipi-dsi";
dev_id = <0>;
disp_id = <1>;
lcd_panel = "TRULY-WVGA";
// disp-power-on-supply = <&reg_mipi_dsi_pwr_on>;
reset-gpios = <&gpio6 4 GPIO_ACTIVE_LOW>;
reset-delay-us = <50>;
status = "okay";
};

But, I am not sure whether I need to add dev_id and disp_id at both places or not?

Which another configuration in dtsi I am missing for correct LCD interface?

Please share your suggestions.

Do let me know if more information require.

Regards,

Jaymin

0 项奖励
回复
4,312 次查看
jigneshpatel
Contributor III

@jaymind,

 

It may the issue of compatible driver found by linux. syntax should be compatible = "fsl,mxc_sdc_fb";

in your case uboot args = " setenv bootargs ${bootargs}  video=mxcfb0:dev=mipi_dsi; "  in your config file.

 

Thanks,

Jignesh Patel

 

0 项奖励
回复
4,366 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jignesh

one can try with nxp bsps (rebuilding all from scratch) as it uses different

names, for example : "dev_id , disp_id", v_channel used for mipi_csi

imx6qdl-sabresd.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

imx6dl.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
4,366 次查看
jigneshpatel
Contributor III

Thanks igor for guiding,

 

Now I have changed my device tree as given link as below:

 

    mxcfb1:fb@0{
        compatible = "fsl,imx6q-mipi-dsi";
        disp_dev = "mipi_dsi";
        interface_pix_fmt = "RGB24";
        lcd_panel = "TRULY-WVGA";
        mode_str ="TRULY-WVGA";
        default_bpp = <24>;
        int_clk = <0>;
        lete_init = <0>;
        status = "okay";
    };

 

    &mipi_dsi {
        compatible = "fsl,imx6q-mipi-dsi";
        dev_id = <0>;
        disp_id = <1>;
        lcd_panel = "TRULY-WVGA";
        disp-power-on-supply = <&reg_mipi_dsi_pwr_on>;
        reset-gpios = <&gpio5 15 GPIO_ACTIVE_LOW>;
        reset-delay-us = <50000>;
        status = "okay";
    };


But still i am getting error:

    mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed
    mxc_mipi_dsi fb@0: failed to read of property dev_id
    mxc_mipi_dsi: probe of fb@0 failed with error -22


Error is from mipi_dsi.c file.Why it gives the error of dev_id.

 

Is any other configuration is required for MIPI-DSI and mxcfb1?

 

Thanks,
Jignesh Patel

0 项奖励
回复
4,366 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jignesh

recommended to use nxp linux where these settings work fine

linux-imx - i.MX Linux kernel 

Linux L4.14.78_1.0.0 Documentation

Best regards
igor

0 项奖励
回复