ST意法半导体
直播中

djfldsthtr

8年用户 952经验值
擅长:光电显示
私信 关注
[问答]

如何给HDMI接口增加1280x800模式呢

大家好~
我的定制板有 RGB(LTDC) 和 HDMI 显示接口。
我们想在同一时间显示相同的屏幕。(重复模式)
因此,LTDC 接口连接到本地 LCD 和 HDMI 发射器(sii9022)。
  •         pinctrl-names = "defaut", "sleep";
  •         pinctrl-0 = <;
  •         pinctrl-1 = <;
  •         status = "okay";
  •         /* USER CODE BEGIN ltdc */
  •     port {
  •                 #address-cells = <1>;
  •                 #size-cells = <0>;
  •         ltdc_ep0_out: endpoint@0 {
  •                         reg = <0>;
  •             remote-endpoint = <&sii9022_in>;
  •                 };
  •         };
  •         /* USER CODE END ltdc */
  • };
我们可以成功显示两个屏幕,如下图所示。

然而,不幸的是我的 LCD 分辨率是 1280x800。
而linux平台没有这种HDMI分辨率模式。
所以我的 LCD 显示如下...

因此,我想给HDMI增加1280x800模式。

回帖(1)

h1654155275.5651

2022-12-6 11:42:17
What is the criteria for modetest to accept a modeline
It seems that some of the ones my monitor is reporting ought to be within the range, but I'm only seeing

Modeline 46:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5

Whereas the following are rejected for various reasons - I can understand the CLOCK_HIGH ones, but not so much the CLOCK_RANGE ones - they appear to be lower than the dot-clock in the accepted modeling...

[ 2622.968539] [drm:drm_mode_addfb2] [FB:36]
[ 2623.683425] [drm:drm_mode_addfb2] [FB:38]
[ 3167.141720] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:29:HDMI-A-1]
[ 3167.163438] [drm:drm_add_display_info] non_desktop set to 0
[ 3167.163489] [drm:drm_add_edid_modes.part.19] ELD: no CEA Extension found
[ 3167.163504] [drm:drm_add_display_info] non_desktop set to 0
[ 3167.163774] [drm:drm_mode_debug_printmodeline] Modeline 37:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x9
[ 3167.163791] [drm:drm_mode_prune_invalid] Not using 1920x1080 mode: CLOCK_HIGH
[ 3167.163814] [drm:drm_mode_debug_printmodeline] Modeline 41:"1360x768" 60 85500 1360 1424 1536 1792 768 771 777 795 0x40 0x5
[ 3167.163826] [drm:drm_mode_prune_invalid] Not using 1360x768 mode: CLOCK_RANGE
[ 3167.163847] [drm:drm_mode_debug_printmodeline] Modeline 42:"1680x1050" 0 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x40 0x9
[ 3167.163858] [drm:drm_mode_prune_invalid] Not using 1680x1050 mode: CLOCK_HIGH
[ 3167.163878] [drm:drm_mode_debug_printmodeline] Modeline 43:"1280x800" 0 71000 1280 1328 1360 1440 800 803 809 823 0x40 0x9
[ 3167.163890] [drm:drm_mode_prune_invalid] Not using 1280x800 mode: CLOCK_RANGE
[ 3167.163910] [drm:drm_mode_debug_printmodeline] Modeline 44:"1280x1024" 0 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5
[ 3167.163921] [drm:drm_mode_prune_invalid] Not using 1280x1024 mode: CLOCK_HIGH
[ 3167.163942] [drm:drm_mode_debug_printmodeline] Modeline 45:"1280x960" 0 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5
[ 3167.163954] [drm:drm_mode_prune_invalid] Not using 1280x960 mode: CLOCK_HIGH
[ 3167.163974] [drm:drm_mode_debug_printmodeline] Modeline 48:"800x600" 0 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 3167.163985] [drm:drm_mode_prune_invalid] Not using 800x600 mode: CLOCK_RANGE
[ 3167.164005] [drm:drm_mode_debug_printmodeline] Modeline 49:"800x600" 0 36000 800 824 896 1024 600 601 603 625 0x40 0x5
[ 3167.164017] [drm:drm_mode_prune_invalid] Not using 800x600 mode: CLOCK_RANGE
[ 3167.164037] [drm:drm_mode_debug_printmodeline] Modeline 50:"640x480" 0 25175 640 656 752 800 480 490 492 525 0x40 0xa
[ 3167.164048] [drm:drm_mode_prune_invalid] Not using 640x480 mode: CLOCK_RANGE
[ 3167.164068] [drm:drm_mode_debug_printmodeline] Modeline 51:"720x400" 0 28320 720 738 846 900 400 412 414 449 0x40 0x6
[ 3167.164080] [drm:drm_mode_prune_invalid] Not using 720x400 mode: CLOCK_RANGE
[ 3167.164100] [drm:drm_mode_debug_printmodeline] Modeline 52:"1024x768" 0 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 3167.164111] [drm:drm_mode_prune_invalid] Not using 1024x768 mode: CLOCK_RANGE
[ 3167.164133] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:29:HDMI-A-1] probed modes :
[ 3167.164154] [drm:drm_mode_debug_printmodeline] Modeline 46:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 3167.164248] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:31:DSI-1]
[ 3167.164334] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:31:DSI-1] probed modes :
[ 3167.164357] [drm:drm_mode_debug_printmodeline] Modeline 35:"480x800" 50 29700 480 578 610 708 800 815 825 839 0x48 0x0


Is it because of the "ELD: no CEA Extension found" ? I notice that in the wiki there is a line

HDMI: DVI dual 0, max TMDS clock 225000 kHz

... which I appear to be missing. I'm not sure if that comes from the monitor, or is configurable somehow...
举报

更多回帖

发帖
×
20
完善资料,
赚取积分