integration of MIPI LCD on imx6DL Nougat Source

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

integration of MIPI LCD on imx6DL Nougat Source

1,370 Views
prasannakulkarni
Contributor IV

Hi All,

        We want to integrate mipi lcd display on our imx6dl custom board. 5 years back I have made it work successfully on ICS Source. but now bcoz of DTS concept in kernel am little confused. Currently kernel logo is getting displayed properly but it gets spoiled when android bootanimation comes up. I have shared the pics of both kindly help in solving the issue.

        In imx6qdl-sabresd.dtsi all fb are disabled with that only it is working this much. even i tried to map fb0 to mipi_dsi dev but no effect. so i have kept it very minimal.

this is my dtsi file wrt mipi. no change is made wrt to dtsi file. only I have added the appropriate mipi display timings in drivers/video/fbdev/mxc/mxcfb_hx8369_wvga.c file thats all. and bootargs am using like this.

"setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=mipi_dsi video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=448M"

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 {
        dev_id = <0>;
        disp_id = <1>;
        lcd_panel = "TRULY-WVGA";
        disp-power-on-supply = <&reg_mipi_dsi_pwr_on>;
        reset-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
        reset-delay-us = <50>;
        status = "okay";
};

mxcfb1: fb@0 {
                compatible = "fsl,mxc_sdc_fb";
                disp_dev = "ldb";
                interface_pix_fmt = "RGB666";
                default_bpp = <16>;
                int_clk = <0>;
                late_init = <0>;
                status = "disabled";
        };

        mxcfb2: fb@1 {
                compatible = "fsl,mxc_sdc_fb";
                disp_dev = "hdmi";
                interface_pix_fmt = "RGB24";
                mode_str ="1920x1080M@60";
                default_bpp = <24>;
                int_clk = <0>;
                late_init = <0>;
                status = "disabled";
        };

        mxcfb3: fb@2 {
                compatible = "fsl,mxc_sdc_fb";
                disp_dev = "lcd";
                interface_pix_fmt = "RGB565";
                mode_str ="CLAA-WVGA";
                default_bpp = <16>;
                int_clk = <0>;
                late_init = <0>;
                status = "disabled";
        };

        mxcfb4: fb@3 {
                compatible = "fsl,mxc_sdc_fb";
                disp_dev = "ldb";
                interface_pix_fmt = "RGB666";
                default_bpp = <16>;

                int_clk = <0>;
                late_init = <0>;
                status = "disabled";
        };

        lcd@0 {
                compatible = "fsl,lcd";
                ipu_id = <0>;
                disp_id = <0>;
                default_ifmt = "RGB565";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_ipu1>;
                status = "disabled";
        };
 

Labels (4)
0 Kudos
5 Replies

1,073 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prasanna

what kernel was used in the case, as Nougat  is available

with L4.9.11 and L4.1.15 according to description below, one can try both

i.MX Software|NXP 

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

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 Kudos

1,073 Views
prasannakulkarni
Contributor IV

Hi igorpadyko,

  our kernel version is 4.9.17. but I am not understanding the dtsi !! all the fb0-4 are disabled, still mipi display works.  how the link is made b/w mipi and fb? without anychange in the dtsi am getting proper kernel logo means display is configured properly right? what I have changed is bootargs and drivers/video/fbdev/mxc/mxcfb_hx8369_wvga.c file in kernel. how the driver is called for mipi? any reference for mipi_dsi?

0 Kudos

1,073 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prasanna

could you try L4.9.11, which is oficially supported by nxp kernel. For description of mipi-dsi

driver one can refer to sect.6.4 MIPI DSI attached Linux Manual.

Best regards
igor

0 Kudos

1,073 Views
prasannakulkarni
Contributor IV

Hi igorpadykov,

    Have you seen my attachments, display images ? after Android boot animation why display is getting spoiled any suggestions? If at all config. problem means how kernel logo is displaying properly.

0 Kudos

1,073 Views
igorpadykov
NXP Employee
NXP Employee

yes I looked at attached files, unfortunately there is little use of them. Please try to reproduce

issue on NXP reference board. Note, NXP has special service for helping customers with integration:

NXP Professional Services|NXP 

Best regards
igor

0 Kudos