簡體   English   中英

嵌入式Linux的LVDS屏幕

[英]LVDS screen for embedded Linux

我正在嘗試在嵌入式Linux 3.14.52上添加LVDS屏幕。

屏幕的分辨率為800x480,那么他將使用LDB-WVGA。 但是我在設備樹中找不到wvga的任何“時序結構”。 有XGA,WXGA,fullHD的結構。

我需要為wvga添加時序結構嗎? 如果是,此結構是否必須特定於我的屏幕?

最好的祝福,

如下更改lvds0結構,

lvds-channel@0 {
        reg = <0>;
        fsl,data-mapping = "spwg"; /* "jeida"; */
        fsl,data-width = <18>;
        crtc = "ipu2-di1";
        primary;
        status = "okay";

        display = <&display0_wvga>;

        display0_wvga: display_wvga_800x480 {
            display-timings {
                native-mode = <&timing_wvga>;

                /* Custom WVGA Timing Structure */
                timing_wvga: 800x480 {
                    clock-frequency = <33200000>; // 33.20 MHz
                    hactive = <800>;
                    vactive = <480>;
                    hback-porch = <40>;
                    hfront-porch = <88>;
                    vback-porch = <1>;
                    vfront-porch = <23>;
                    hsync-len = <60>;
                    vsync-len = <10>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    pixelclk-active = <0>;
                };
            };

        };

        display1_svga: display_svga_800x600 {
            display-timings {
                native-mode = <&timing_svga>;

                /* LDB-AM-800600LTNQW-A0H */
                timing_svga: 800x600 {
                    clock-frequency = <55000000>;
                    hactive = <800>;
                    vactive = <600>;
                    hback-porch = <112>;
                    hfront-porch = <32>;
                    vback-porch = <3>;
                    vfront-porch = <17>;
                    hsync-len = <80>;
                    vsync-len = <4>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    pixelclk-active = <0>;
                };
            };

        };

        display2_xga: display_xga_1024x768 {
            display-timings {
                native-mode = <&timing_xga>;

                /* Standard XGA timing */
                timing_xga: 1024x768 {
                    clock-frequency = <65000000>;
                    hactive = <1024>;
                    vactive = <768>;
                    hback-porch = <160>;
                    hfront-porch = <24>;
                    vback-porch = <29>;
                    vfront-porch = <3>;
                    hsync-len = <136>;
                    vsync-len = <6>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    pixelclk-active = <0>;
                };
            };

        };

        display3_wxga: display_wxga_1200x800 {
            display-timings {
                native-mode = <&timing_wxga>;

                timing_wxga: 1200x800 {
                    clock-frequency = <68930000>;
                    hactive = <1280>;
                    vactive = <800>;
                    hback-porch = <64>;
                    hfront-porch = <64>;
                    vback-porch = <5>;
                    vfront-porch = <5>;
                    hsync-len = <40>;
                    vsync-len = <6>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    pixelclk-active = <0>;
                };
            };

        };

        display4_fullhd: display_fullhd_1920x1080 {
            display-timings {
                native-mode = <&timing_fullhd>;

                timing_fullhd: 1920x1080 {
                    clock-frequency = <138500000>;
                    hactive = <1920>;
                    vactive = <1080>;
                    hback-porch = <80>;
                    hfront-porch = <48>;
                    vback-porch = <23>;
                    vfront-porch = <3>;
                    hsync-len = <32>;
                    vsync-len = <5>;
                    hsync-active = <0>;
                    vsync-active = <0>;
                    pixelclk-active = <0>;
                };
            };
        };
    };

據我所知,它應該起作用。 檢查並反饋。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM