How to configure LVDS0 on SABRE SD (IMX6Q)

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

How to configure LVDS0 on SABRE SD (IMX6Q)

Jump to solution
4,663 Views
osmarfrisonjun1
Contributor III

Hi,

I have a SABRE SD and fsl-L3.14.28_1.0.0_iMX6qdls_Bundle.

I had success to configure video to HDMI and LVDS1 by using the commands (U-Boot) bellow

/* HDMI */

setenv mmcargs setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p2 maxcpus=4 rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:off

/* LVDS */

setenv mmcargs setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p2 maxcpus=4 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb1:off

/* HDMI & LVDS */

setenv mmcargs setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p2 maxcpus=4 rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666

I need to use the LVDS0. How can I do to configure it?

I already tried many suggests in the forum, but it doesn't solve my problem.

Thanks.

0 Kudos
1 Solution
2,019 Views
osmarfrisonjun1
Contributor III

Well,

After a short period of time taking care of other problems, I could go back and settle this matter.

For LVDS0 in this kernel, the change was made below:

#######################################################################

...arch/arm/boot/dts/imx6qdl-sabresd.dtsi

&ldb {

    status = "okay";

    lvds-channel@0 {

        fsl,data-mapping = "spwg";

        fsl,data-width = <18>;     

+     primary; 

        status = "okay";

        display-timings {

            native-mode = <&timing0>;

            timing0: hsd100pxn1 {

                clock-frequency = <65000000>;

                hactive = <1024>;

                vactive = <768>;

                hback-porch = <220>;

                hfront-porch = <40>;

                vback-porch = <21>;

                vfront-porch = <7>;

                hsync-len = <60>;

                vsync-len = <10>;

            };

        };

    };

    lvds-channel@1 {

        fsl,data-mapping = "spwg";

        fsl,data-width = <18>;

-     primary;       

        status = "okay";

        display-timings {

            native-mode = <&timing1>;

            timing1: hsd100pxn1 {

                clock-frequency = <65000000>;

                hactive = <1024>;

                vactive = <768>;

                hback-porch = <220>;

                hfront-porch = <40>;

                vback-porch = <21>;

                vfront-porch = <7>;

                hsync-len = <60>;

                vsync-len = <10>;

            };

        };

    };

};

#######################################################################

Just changing "primary" to the lvds-channel@0, the problem was solved.

Regards.

View solution in original post

8 Replies
2,020 Views
osmarfrisonjun1
Contributor III

Well,

After a short period of time taking care of other problems, I could go back and settle this matter.

For LVDS0 in this kernel, the change was made below:

#######################################################################

...arch/arm/boot/dts/imx6qdl-sabresd.dtsi

&ldb {

    status = "okay";

    lvds-channel@0 {

        fsl,data-mapping = "spwg";

        fsl,data-width = <18>;     

+     primary; 

        status = "okay";

        display-timings {

            native-mode = <&timing0>;

            timing0: hsd100pxn1 {

                clock-frequency = <65000000>;

                hactive = <1024>;

                vactive = <768>;

                hback-porch = <220>;

                hfront-porch = <40>;

                vback-porch = <21>;

                vfront-porch = <7>;

                hsync-len = <60>;

                vsync-len = <10>;

            };

        };

    };

    lvds-channel@1 {

        fsl,data-mapping = "spwg";

        fsl,data-width = <18>;

-     primary;       

        status = "okay";

        display-timings {

            native-mode = <&timing1>;

            timing1: hsd100pxn1 {

                clock-frequency = <65000000>;

                hactive = <1024>;

                vactive = <768>;

                hback-porch = <220>;

                hfront-porch = <40>;

                vback-porch = <21>;

                vfront-porch = <7>;

                hsync-len = <60>;

                vsync-len = <10>;

            };

        };

    };

};

#######################################################################

Just changing "primary" to the lvds-channel@0, the problem was solved.

Regards.

2,019 Views
VilemZ
NXP Employee
NXP Employee

Hi,

I'm using this command for LVDS0 and HDMI:

setenv mmcargs "setenv bootargs console=${console},${baudrate} root=${mmcroot} rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 ldb=sin0 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24"

For LVDS1 you can change ldb=sin0 to ldb=sin1.

Best Regards,

Vilem

0 Kudos
2,019 Views
igorpadykov
NXP Employee
NXP Employee

Hi osmarfrisonjunior2

I think you can try command given in as attached Release Notes p.18

i.MX_Linux_Release_Notes  p.18.jpg

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,019 Views
osmarfrisonjun1
Contributor III

Hello igorpadykov,

Thanks for the reply.

I tried your suggestion, but it hasn't had effect (neither LVDS0 or LVDS1). Maybe because this command is for the SABRE-AI. At the previous field (SABRE-SD - page 17) LVDS0 is not mentioned.

I was thinking... If I need to change the Display configurations, I won't be able to do it, because de source code still isn't available.

Might be better to use an earlier version. What do you think?

0 Kudos
2,019 Views
igorpadykov
NXP Employee
NXP Employee

regarding sources, one can look at attached Linux Manual,

it shows drivers locations.

~igor

0 Kudos
2,019 Views
osmarfrisonjun1
Contributor III

Hi

0 Kudos
2,019 Views
osmarfrisonjun1
Contributor III

Hello

This presentation helped me to clarify my ideas.

I did the procedure presented at the "Freescale_Yocto_Project_User's_Guide", and generated my images (included .sdcard) to the target "fsl-image-qt5".

So at this moment, I have all the source code necessary to configure my board.

I am trying understand some things, but I need help to configure my Display. Can you give me a way to do it?

LCD 800x480 LB070WV8 LG

Thanks.

0 Kudos