How do I configure the device tree for a display (1366x768, 60Hz)

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

How do I configure the device tree for a display (1366x768, 60Hz)

1,160 Views
trsystems
Contributor II

I'm trying to configure the device tree for a new display (1366x768, 60hz). I want to use it under Linux 3.10.53 as framebuffer device. With the following configuration I get a distored image:

display_fb1: fb@0 {

    compatible = "fsl,mxc_sdc_fb";

    disp_dev = "ldb";

    interface_pix_fmt = "RGB24";

    default_bpp = <32>;

    int_clk = <0>;

    late_init = <0>;

    status = "okay";

};

&ldb {

    status = "disabled";

    lvds-channel@1 {

        crtc = "ipu2-di1";

        fsl,data-mapping = "spwg";

        fsl,data-width = <24>;

        status = "okay";

        primary;

        display-timings {

            AUO15Zoll1366x768: AUOG156XW01V1 {

                clock-frequency = <76000000>;

                hactive = <1366>;

                vactive = <768>;

                hback-porch = <0>;

                hfront-porch = <0>;

                vback-porch = <0>;

                vfront-porch = <0>;

                hsync-len = <194>;

                vsync-len = <38>;

                de-active = <1>;

            };

        };

    };

};

If I only change the hactive value to 1364 or 1368 for example the image looks okay. How do I get it to work with a value of 1366?

Labels (1)
0 Kudos
4 Replies

678 Views
igorpadykov
NXP Employee
NXP Employee

Hi Oliver

device tree timings should be filled with data from LCD datasheet, please

use example below

https://community.freescale.com/thread/373763

Best regards

igor

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

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

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

0 Kudos

678 Views
trsystems
Contributor II

That's what I did:

DisplayTimings.png

And that's how it looks like :-(

Penguins.png

0 Kudos

678 Views
igorpadykov
NXP Employee
NXP Employee

one can try suggestions given on

i.MX6 Solo LVDS noise

~igor

0 Kudos

678 Views
trsystems
Contributor II

I read the thread but they have a different issue. In my case the penguins are only distored with a resolution of 1366x768. When I change the resolution to 1364x768 or 1368x768 it looks perfect.

0 Kudos