gpt4 book ai didi

linux - 用于嵌入式 Linux 的 LVDS 屏幕

转载 作者:太空宇宙 更新时间:2023-11-04 12:49:23 24 4
gpt4 key购买 nike

我正在尝试在嵌入式 Linux 3.14.52 上添加 LVDS 屏幕。

屏幕分辨率为 800x480 那么他将使用 LDB-WVGA。但是我在设备树中找不到 wvga 的任何“时序结构”。有 XGA、WXGA、全高清的结构。

我需要为 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>;
};
};
};
};

据我所知,它应该有效。检查反馈。

关于linux - 用于嵌入式 Linux 的 LVDS 屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37706597/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com