This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS61165: Driver Issue in Linux Kernel 5.15.75

Part Number: TPS61165

Tool/software:

We are using nxp imx8mp SoM with Yocto Kirkstone Kernel 5.15.75. There is no such driver for TPS61165 in kernel 5.15.75 so we used your published https://git.ti.com/cgit/mlp-open-source/kernel/tree/drivers/video/backlight/tps611xx_bl.c?h=master integrated it in kernel 5.15.75. But when we enable it in in device tree such as

backlight: backlight {
            compatible = "ti,tps61165_bl"; // Ensure this matches the driver's compatible string
            rfa-enable; // Enables the Request for Acknowledge feature if supported by the driver
            es-gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>; // Specify the actual GPIO controller and pin number used for EasyScale communication
            status = "okay";
        };

    panel {
        backlight = <&backlight>;
        compatible = "lex, LCX07", "panel-lvds";
        width-mm = <153>;
        height-mm = <92>;
        label = "lcx07";
        data-mapping = "vesa-24";
        status = "okay";

        panel-timing {
            clock-frequency = <37000000>;
            hactive = <800>;
            vactive = <480>;
            hback-porch = <180>;
            hfront-porch = <160>;
            vback-porch = <23>;
            vfront-porch = <12>;
            hsync-len = <35>;
            vsync-len = <10>;
            hsync-active = <0>;
            vsync-active = <0>;
            de-active = <1>;
        };

        port {
            panel_in: endpoint {
                remote-endpoint = <&lvds_out>;
            };
        };
    };

It does not boot and gets in endless loop as:
[    4.130702] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    4.143483] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    4.154098] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.163034] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    4.171007] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    4.183811] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    4.194135] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.202774] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    4.210794] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    4.223157] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    4.233751] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.242369] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    4.250377] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    4.262522] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    4.272841] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.281444] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    4.289413] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)
[    4.301599] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    4.312269] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    4.320929] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[    4.328906] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops lcdifv3_crtc_ops)

It boots when I comment the line backlight=&backlight in panel definition. Thanks.