integration of mipi display with imx6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

integration of mipi display with imx6

4,131 Views
sindhujakapugan
Contributor III

Hi,

i am trying to enable mipi dsi display with imx6sabresd.

 my display has thses pins:

MIPI_1P,MIPI_1N,MIPI_2P,MIPI_2N,MIPI_3P,MIPI_3N,Reset pin .

can any one inform to how to interface this display with imx6sabresd.

driver for mipi display.

and any example of devicetree.

here i am attaching my display datasheet also.

Labels (2)
0 Kudos
Reply
4 Replies

2,508 Views
jaymind
Contributor IV

Hello,

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 configurations I am missing for correct LCD interface in the dtsi?

Please share the suggestions.

Do let me know if more information required.

Regards,

Jaymin

0 Kudos
Reply

2,508 Views
igorpadykov
NXP Employee
NXP Employee

Hi sindhuja

example of dts file:

linux/arch/arm/boot/dts/imx6qdl-sabresd.dtsi

linux-imx.git - i.MX Linux Kernel 

also may be useful to check attached Chapter 7
MIPI DSI Driver Linux Manual and link

MIPI DSI display problems 

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

0 Kudos
Reply

2,508 Views
sindhujakapugan
Contributor III

Hi igor,

Thanks for your reply.

modified the dtsi based on sabresd dtsi file. after checking the log i got this error.

dtsi file:

reg_mipi_dsi_pwr_on: mipi_dsi_pwr_on {
            compatible = "regulator-fixed";
            regulator-name = "mipi_dsi_pwr_on";
            gpio = <&gpio6 14 0>;
            enable-active-high;
        };
     mipi_dsi_reset: mipi-dsi-reset {
        compatible = "gpio-reset";
        reset-gpios = <&gpio5 27 1>;//GPIO_ACTIVE_LOW>;
        reset-delay-us = <1000>;
        #reset-cells = <0>;
    };
    mxcfb1: fb@0 {
        
        compatible = "fsl,mxc_sdc_fb";
        disp_dev = "mipi_dsi";
        interface_pix_fmt = "RGB565";
        mode_str = "TRULY-WVGA";
        default_bpp = <24>;
        int_clk = <0>;
        lete_init = <0>;
        status = "okay";
    };

mipi_phy: mipi-phy {
        compatible = "fsl,imx6dl-mipi-dsi";
        lcd_panel = "TRULY-WVGA-TFT3P5581E";
        ipy_id =<0>;
        dev_id=<0>;
        disp_id=<0>;
        phy_data_lanes = <2>;
        max_phy_clock = <5000000>;
        phy_mode = "rgb";
 &mipi_dsi {
    pinctrl-names = "default";
    compatible = "fsl,imx6q-mipi-dsi";
    reg = <0x021e0000 0x4000>;
    interrupts = <0 102 0x04>;
    gpr = <&gpr>;
    clocks = <&clks 138>, <&clks 204>;
    clock-names = "mipi_pllref_clk", "mipi_cfg_clk";
    //pinctrl-0 = <&pinctrl_mipi_dsi_reset>;
    dev_id=<0>;
    disp_id=<0>;//1
    lcd_panel = "TRULY-WVGA";
    resets = <&mipi_dsi_reset>;
    mipi-phy = <&mipi_phy>;
    status = "okay";
};  

This is the error i am getting:

root~# dmesg | grep mipi

 mipi_dsi_pwr_on: no parameters

 21e0000.mipi supply disp-power-on not found, using dummy regulator

mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed

 mxc_mipi_dsi mipi-phy.23: failed to get platform resource 0

mipi_dsi_pwr_on: disabling

root:~# dmesg | grep mxc_sdc_fb

 mxc_sdc_fb fb.18: get mxcfb of property fail

mxc_sdc_fb: probe of fb.18 failed with error -22

Error opening /dev/fb0: No such file or directory

Need help to solve this error.

0 Kudos
Reply

2,508 Views
enrico_papi
Contributor II

Hi Sindhuja ,

how you were able to find the reset-gpios = <&gpio5 27 1> value for your board?

Where the value "gpio5 27" you used comes from?

I'm searching which GPIO should be used in the "mipi_dsi_reset" node of the devicetree.

Looking into the i.MX6 reference manual the MIPI DSI Host controller does not have a reset pin.

Does anyone have more information about it?

Thank you.

0 Kudos
Reply