Linux LVDS 參數配置


  • 參考:

    https://blog.csdn.net/u014770862/article/details/76274951

  • 找到 LVDS datasheet 的屏幕參數表格,如下:

  • 由上圖我們可以看到

    CLK == 71.1MHz 的時候, 
    Tv - Tvd == 23
    Th - Thd == 160
    
  • 在 Linux devicetree 里面,關於 LVDS 的配置如下

    542                timing2: timing2 {
    543                         clock-frequency = <71100000>;
    544                         hactive = <1280>;
    545                         vactive = <800>;
    546                         hback-porch = <75>;
    547                         hfront-porch = <75>;
    548                         vback-porch = <13>;
    549                         vfront-porch = <5>;
    550                         hsync-len = <10>;
    551                         vsync-len = <5>;
    552                         hsync-active = <0>;
    553                         vsync-active = <0>;
    554                         de-active = <0>;
    555                         pixelclk-active = <0>;
    556                 };
    
    這里 CLK 就填上面的 CLK
    hactive  vactive 就是分辨率
    (hback-porch + hfront-porch + hsync-len) == (Th - Thd)
    (vbach-porch + vfront-porch + vsync-len) == (Tv - Tvd)
    pixelclk-active 是時鍾旋轉,1 的時候,時鍾旋轉,0 不旋轉。
    


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM