Enable LVDS display in uboot imx8mp

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

Enable LVDS display in uboot imx8mp

545 Views
srinu_inaganti1
Contributor II

 

We're currently working on enabling an LVDS display in U-Boot(2021.04) for an IMX8MP board. We followed a guide on the NXP community website (https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Add-i-MX8MP-LVDS-driver-in-uboot/ta-p/14...), but we're using an LVDS panel instead of an LVDS to HDMI bridge. Consequently, we made some modifications to the U-Boot device tree files and added the panel as a simple panel.

Here's a snippet of the device tree changes we made:

 

backlight: backlight {
    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>;
};

panel1: panel1 {
    compatible = "edt,etml1010g3dra";
    backlight = <&backlight>;
    power-supply = <&reg_lvds1_reg_en>;
    port {
        panel1_in: endpoint {
            remote-endpoint = <&lvds1_out>;
        };
    };
};

 

 

This configuration works fine in the Linux kernel, but when we compile and run it on the board, it's unable to probe the backlight and panel drivers. After adding some debug logs, we found that the pwm_backlight_of_to_plat call is failing to get the PWM, which leads to the probing failure of all three video devices.

We're seeking suggestions or ideas from anyone who might know how to solve this issue. Any help would be greatly appreciated!

#IMX8MP

Regards,

Srinu Inaganti

Tags (2)
0 Kudos
Reply
1 Reply

525 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @srinu_inaganti1

Thank you for contacting NXP Support.

Please test your drivers on the BSP version recommended by the community article.

Have a great day!

0 Kudos
Reply