DTSI changes for mipi_dsi in iMX6dl

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

DTSI changes for mipi_dsi in iMX6dl

Jump to solution
1,058 Views
kunalkulshresth
Contributor III

Hi,

I am facing strange issue where in I see that the framebuffer fb does not gets registered when I give disp_dev as "mipi_dsi". On other hand, when I use this disp_dev as "lcd" fb registers. This piece of code was working earlier for me, and now I am not getting why even the fb is not registered.

Changes I have done in File imx6qdl_sabreauto.dtsi:

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

    mipi_dsi_reset: mipi-dsi-reset {
        compatible = "gpio-reset";
        reset-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
        reset-delay-us = <50>;
        #reset-cells = <0>;
    };

    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 {
    compatible = "fsl,imx6dl-mipi-dsi";
    reg = <0x021e0000 0x4000>;
    interrupts = <0 102 0x04>;
    gpr = <&gpr>;
    clocks = <&clks 138>, <&clks 204>;
    clock-names = "mipi_pllref_clk", "mipi_cfg_clk";
    dev_id = <0>;
    disp_id = <0>;
    lcd_panel = "TRULY-WVGA";
    disp-power-on-supply = <&reg_mipi_dsi_pwr_on>;
    resets = <&mipi_dsi_reset>;
    status = "okay";
};

All other Fbs are disabled. Any hints will be very helpful.

Thanks and regards

Kunal

Tags (1)
0 Kudos
1 Solution
768 Views
kunalkulshresth
Contributor III

Hi Igor,

Thanks for response. Yes, I was missing few things there. The clock frequency configured in the driver was not the one matching with the table. So due to uninitialization of the disp_dev the fb was not getting enabled.

Thanks and regards,

Kunal

View solution in original post

0 Kudos
2 Replies
768 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kunal

one can check if mipi-dsi driver is included in build configuration,

please refer to sect.7.3.2 Menu Configuration Options

attached Linux Manual.

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

769 Views
kunalkulshresth
Contributor III

Hi Igor,

Thanks for response. Yes, I was missing few things there. The clock frequency configured in the driver was not the one matching with the table. So due to uninitialization of the disp_dev the fb was not getting enabled.

Thanks and regards,

Kunal

0 Kudos