LVDS 相关功能调式
LVDS 相關(guān)調(diào)式總結(jié),絕對硬核,學(xué)到就是賺到
bsp 調(diào)式調(diào)式總是槍槍林彈雨的進行中,最磨人的莫過于寄存器的調(diào)式了,最近遇到camera不支持熱插拔的case,linux 平臺驗證ok,但是qnx 就是不支持,又看不到源碼,真的是無能為力。
言歸正傳,今天講講LVDS 相關(guān)調(diào)式技巧
1、LVDS 相關(guān)timing 參數(shù)配置 (linux qnx)
下面截圖是一般手冊上描述的參數(shù)配置,分辨率為 1920x720
無論是LVDS 還是 并口camera 都涉及一個視頻的有效性的計算:
H total= H active + Hbp + Hfp+Hpw
Vtotal= V active + Vbp + Vfp + Vpw
CLK = H total * V total * 60 /1000000
但是實際調(diào)試的時候需要注意:Hpw 是否包含在Hbp里面,這個不明確的情況下最好與廠商確認,
如果是量產(chǎn)項目一定要細致不能放過任何一個細節(jié),不然后面量產(chǎn)之后會導(dǎo)致花屏等各種各樣的問題存在,切記切記
?
2、LVDS 對應(yīng)的兩種接口格式(VESA? JEIDA)
注意:格式如果配置不對也會產(chǎn)生各種各樣的花屏問題產(chǎn)生
想了解VESA與JEIDA 區(qū)別的可以去自行百度看一下,這里簡單說一下就是RGB的排列方式不一樣也可以理解為大端小端的情況
kernel 中的相關(guān)配置大致如下: 分區(qū)對應(yīng)為 spwg 與 jeida?
?
3.mode的選擇:
?/*
?* ? ?"ldb=spl0/1" ? ? ? -- ? ? ?split mode on DI0/1
?* ? ?"ldb=dul0/1" ? ? ? -- ? ? ?dual mode on DI0/1
?* ? ?"ldb=sin0/1" ? ? ? -- ? ? ?single mode on LVDS0/1
?* ? ?"ldb=sep0/1" ? ? ? -- ? ? ?separate mode begin from LVDS0/1
?*
?* ? ?there are two LVDS channels(LVDS0 and LVDS1) which can transfer video
?* ? ?datas, there two channels can be used as split/dual/single/separate mode.
?*
?* ? ?split mode means display data from DI0 or DI1 will send to both channels
?* ? ?LVDS0+LVDS1.
?* ? ?dual mode means display data from DI0 or DI1 will be duplicated on LVDS0
?* ? ?and LVDS1, it said, LVDS0 and LVDS1 has the same content.
?* ? ?single mode means only work for DI0/DI1->LVDS0 or DI0/DI1->LVDS1.
?* ? ?separate mode means you can make DI0/DI1->LVDS0 and DI0/DI1->LVDS1 work
?* ? ?at the same time.
?*/
根據(jù)如上說明,uboot參數(shù)中可以配置ldb的這四種模式,并且在設(shè)備樹中,對于單通道和雙通道也有以下配置:
- split-mode: Provide this bool property if your board uses LDB split
mode to drive a high resolution display, say 1080P@60. In this
mode, two LVDS channels will drive one display.
- dual-mode: Provide this bool property if your board uses LDB dual
mode to drive two displays. In this mode, one display engine will
drive two displays which have the same timings and display content.
對于大分辨率雙通道lvds來說,需要配置設(shè)備樹中:
lvds屬性split-mode,
并且clock-frequency為datasheet中DCLK×2
還需要在uboot參數(shù)中添加:
ldb=spl0/1
?
總結(jié)
以上是生活随笔為你收集整理的LVDS 相关功能调式的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: usb如何枚举
- 下一篇: 【kernel 中内存分配那点事】