panel-lvds driver does not work anymore after upgrade to kernel 6.6

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

panel-lvds driver does not work anymore after upgrade to kernel 6.6

3,506 Views
MicMoba
Contributor V

Hi,

I upgrade my Linux kernel from 5.15.52 to 6.6. After upgrading my panel only shows a small stripe. I made no changes at the device tree. When I use the panel-simple driver instead of panel-lvds I got a working display. Does someone know about changes in the driver.

I use a iMX8MP and my panel is connected to LVDS1 interface.

dmesg shows a message but I can't identify the failure

dmesg | grep lvds
[ 0.077630] platform panel-lvds1: Fixed dependency cycle(s) with /ldb-display-controller/lvds-channel@1
[ 2.511277] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds
[ 2.552129] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with panel-lvds1

 

Thanks

 

0 Kudos
Reply
6 Replies

3,484 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Have you checked the dtb? are they changed? which lvds device are you working on?

Regards

0 Kudos
Reply

3,472 Views
MicMoba
Contributor V

yes I checkd the dtb. I convert the dtb back to dts. The new one as the old one. I can't see any differences.

I use a DataModul 10,1“ TFT – WXGA – LVDS panel (TX26D207VM0AAA)

0 Kudos
Reply

2,572 Views
tw22
Contributor I

Failure occurs early during boot. This might indicate clocks problem. Check e. g. clock-names in node ldb read by drivers. What are you using? drm display-subsystem or frame buffers (mxc) ?

0 Kudos
Reply

3,463 Views
MicMoba
Contributor V

Here are my settings. Maybe you find a mistake

 

/ {
    backlight1: backlight1 {
        compatible = "pwm-backlight";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lvds1>;
        default-brightness-level = <6>;
        pwms = <&pwm3 0 50000 0>;
        power-supply = <&reg_lvds1_reg_en>;
        enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
        brightness-levels= <0 4 8 16 32 64 128 255>;
        status = "okay";
    };

    panel_lvds: panel-lvds1 {
        compatible  = "panel-lvds";
        backlight   = <&backlight1>;
        
        width-mm = <218>;
        height-mm = <137>;

        data-mapping = "vesa-24";
        status = "okay";
        
        panel-timing {
            clock-frequency = <71000000>;
            hactive = <1280>;
            hfront-porch = <30>;
            hsync-len = <48>;
            hback-porch = <80>;
            vactive = <800>;
            vfront-porch = <3>;
            vsync-len = <6>;
            vback-porch = <14>;
        };
        
        port {
            panel1_in: endpoint {
                remote-endpoint = <&lvds1_out>;
            };
        };
    };
};
&lcdif2 {
  status = "okay";
};
/* LVDS1 */
&ldb {
    status = "okay";

    lvds-channel@1 {
        #address-cells = <1>;
	#size-cells = <0>;        
        status = "okay";
        primary;
        port@1 {
            reg = <1>;
            lvds1_out: endpoint {
                remote-endpoint = <&panel1_in>;
            };
        };
    };
};

&ldb_phy {
    status = "okay";
};

 

0 Kudos
Reply

2,339 Views
festevam
Contributor I

@MicMoba 

 

This is an old thread, but I faced the same problem.

 

In my case, I had to pass the de-active = <1>; property to fix it.

 

 

958 Views
brood
Contributor IV
I have also been struggling with the same issue for over a week now, and adding this property ('de-active = <1>;') to the panel-timing definition in my device tree finally resolved the issue. My display works now, thanks for this! If I could give you more than 1 Kudo I would
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1922948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Epanel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1922948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20upgrade%20my%20Linux%20kernel%20from%205.15.52%20to%206.6.%20After%20upgrading%20my%20panel%20only%20shows%20a%20small%20stripe.%20I%20made%20no%20changes%20at%20the%20device%20tree.%20When%20I%20use%20the%20panel-simple%20driver%20instead%20of%20panel-lvds%20I%20got%20a%20working%20display.%20Does%20someone%20know%20about%20changes%20in%20the%20driver.%3C%2FP%3E%3CP%3EI%20use%20a%20iMX8MP%20and%20my%20panel%20is%20connected%20to%20LVDS1%20interface.%3C%2FP%3E%3CP%3Edmesg%20shows%20a%20message%20but%20I%20can't%20identify%20the%20failure%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Edmesg%20%7C%20grep%20lvds%0A%5B%200.077630%5D%20platform%20panel-lvds1%3A%20Fixed%20dependency%20cycle(s)%20with%20%2Fldb-display-controller%2Flvds-channel%401%0A%5B%202.511277%5D%20imx8mp-ldb%20ldb-display-controller%3A%20Failed%20to%20create%20device%20link%20(0x180)%20with%20phy-lvds%0A%5B%202.552129%5D%20imx8mp-ldb%20ldb-display-controller%3A%20Failed%20to%20create%20device%20link%20(0x180)%20with%20panel-lvds1%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EThanks%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1922948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2146984%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2146984%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20have%20also%20been%20struggling%20with%20the%20same%20issue%20for%20over%20a%20week%20now%2C%20and%20adding%20this%20property%20('de-active%20%3D%20%26lt%3B1%26gt%3B%3B')%20to%20the%20panel-timing%20definition%20in%20my%20device%20tree%20finally%20resolved%20the%20issue.%20My%20display%20works%20now%2C%20thanks%20for%20this!%20If%20I%20could%20give%20you%20more%20than%201%20Kudo%20I%20would%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2039961%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2039961%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24576%22%20target%3D%22_blank%22%3E%40MicMoba%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThis%20is%20an%20old%20thread%2C%20but%20I%20faced%20the%20same%20problem.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20my%20case%2C%20I%20had%20to%20pass%20the%20de-active%20%3D%20%26lt%3B1%26gt%3B%3B%20property%20to%20fix%20it.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2020199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2020199%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFailure%20occurs%20early%20during%20boot.%20This%20might%20indicate%20clocks%20problem.%20Check%20e.%20g.%20clock-names%20in%20node%20ldb%20read%20by%20drivers.%20What%20are%20you%20using%3F%20drm%20display-subsystem%20or%20frame%20buffers%20(mxc)%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1923349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1923349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHere%20are%20my%20settings.%20Maybe%20you%20find%20a%20mistake%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%2F%20%7B%0A%20%20%20%20backlight1%3A%20backlight1%20%7B%0A%20%20%20%20%20%20%20%20compatible%20%3D%20%22pwm-backlight%22%3B%0A%20%20%20%20%20%20%20%20pinctrl-names%20%3D%20%22default%22%3B%0A%20%20%20%20%20%20%20%20pinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_lvds1%26gt%3B%3B%0A%20%20%20%20%20%20%20%20default-brightness-level%20%3D%20%26lt%3B6%26gt%3B%3B%0A%20%20%20%20%20%20%20%20pwms%20%3D%20%26lt%3B%26amp%3Bpwm3%200%2050000%200%26gt%3B%3B%0A%20%20%20%20%20%20%20%20power-supply%20%3D%20%26lt%3B%26amp%3Breg_lvds1_reg_en%26gt%3B%3B%0A%20%20%20%20%20%20%20%20enable-gpios%20%3D%20%26lt%3B%26amp%3Bgpio2%2020%20GPIO_ACTIVE_LOW%26gt%3B%3B%0A%20%20%20%20%20%20%20%20brightness-levels%3D%20%26lt%3B0%204%208%2016%2032%2064%20128%20255%26gt%3B%3B%0A%20%20%20%20%20%20%20%20status%20%3D%20%22okay%22%3B%0A%20%20%20%20%7D%3B%0A%0A%20%20%20%20panel_lvds%3A%20panel-lvds1%20%7B%0A%20%20%20%20%20%20%20%20compatible%20%20%3D%20%22panel-lvds%22%3B%0A%20%20%20%20%20%20%20%20backlight%20%20%20%3D%20%26lt%3B%26amp%3Bbacklight1%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20width-mm%20%3D%20%26lt%3B218%26gt%3B%3B%0A%20%20%20%20%20%20%20%20height-mm%20%3D%20%26lt%3B137%26gt%3B%3B%0A%0A%20%20%20%20%20%20%20%20data-mapping%20%3D%20%22vesa-24%22%3B%0A%20%20%20%20%20%20%20%20status%20%3D%20%22okay%22%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20panel-timing%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20clock-frequency%20%3D%20%26lt%3B71000000%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20hactive%20%3D%20%26lt%3B1280%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20hfront-porch%20%3D%20%26lt%3B30%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20hsync-len%20%3D%20%26lt%3B48%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20hback-porch%20%3D%20%26lt%3B80%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20vactive%20%3D%20%26lt%3B800%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20vfront-porch%20%3D%20%26lt%3B3%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20vsync-len%20%3D%20%26lt%3B6%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20vback-porch%20%3D%20%26lt%3B14%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20port%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20panel1_in%3A%20endpoint%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20remote-endpoint%20%3D%20%26lt%3B%26amp%3Blvds1_out%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%7D%3B%0A%7D%3B%0A%26amp%3Blcdif2%20%7B%0A%20%20status%20%3D%20%22okay%22%3B%0A%7D%3B%0A%2F*%20LVDS1%20*%2F%0A%26amp%3Bldb%20%7B%0A%20%20%20%20status%20%3D%20%22okay%22%3B%0A%0A%20%20%20%20lvds-channel%401%20%7B%0A%20%20%20%20%20%20%20%20%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%0A%09%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20status%20%3D%20%22okay%22%3B%0A%20%20%20%20%20%20%20%20primary%3B%0A%20%20%20%20%20%20%20%20port%401%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20reg%20%3D%20%26lt%3B1%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20lvds1_out%3A%20endpoint%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20remote-endpoint%20%3D%20%26lt%3B%26amp%3Bpanel1_in%26gt%3B%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%7D%3B%0A%7D%3B%0A%0A%26amp%3Bldb_phy%20%7B%0A%20%20%20%20status%20%3D%20%22okay%22%3B%0A%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1923328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1923328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eyes%20I%20checkd%20the%20dtb.%20I%20convert%20the%20dtb%20back%20to%20dts.%20The%20new%20one%20as%20the%20old%20one.%20I%20can't%20see%20any%20differences.%3C%2FP%3E%3CP%3EI%20use%20a%20DataModul%2010%2C1%E2%80%9C%20TFT%20%E2%80%93%20WXGA%20%E2%80%93%20LVDS%20panel%20(TX26D207VM0AAA)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1923082%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20panel-lvds%20driver%20does%20not%20work%20anymore%20after%20upgrade%20to%20kernel%206.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1923082%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EHave%20you%20checked%20the%20dtb%3F%20are%20they%20changed%3F%20which%20lvds%20device%20are%20you%20working%20on%3F%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E