IMX8QM Linux imx_5.4.24_2.1.0 HDMI HOW TO OUTPUT 1920x1080@30 clock =74250

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8QM Linux imx_5.4.24_2.1.0 HDMI HOW TO OUTPUT 1920x1080@30 clock =74250

926 Views
zhouch
Contributor II
n imx8qm Linux IMX_ 5.4.24_ 2.1.0 source code.
 
I want the HDMI output of the chip 1920x1080@30 And 74250 clocks.
 
But now only HDMI is implemented 1920x1080@60 And 148500 clocks.
 
Many attempts have been made to modify uboot and kenerl, but they cannot affect the actual output clock of the chip.
 
 how to modify it    output 1920x1080@30 And 74250 clocks
 
PLease help me 
Tags (2)
0 Kudos
Reply
4 Replies

899 Views
zhouch
Contributor II

 想要 1080p@30fps 的输出 

mode->clock / 2 的操作, 强制pixclock 像素时钟修改为 74.25MHz,
达到 30Hz 的效果。

 

 

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
old mode 100644
new mode 100755
index 3f50b886..5be2f60
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -2330,7 +2330,8 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
if (quirks & EDID_QUIRK_135_CLOCK_TOO_HIGH)
timing->pixel_clock = cpu_to_le16(1088);

- mode->clock = le16_to_cpu(timing->pixel_clock) * 10;
+ mode->clock = le16_to_cpu(timing->pixel_clock) * 10 / 2;
+ printk("mode->clock %d, is / 2, 1080p30fps for hdmi\n", mode->clock);

mode->hdisplay = hactive;
mode->hsync_start = mode->hdisplay + hsync_offset;
@@ -4911,7 +4912,7 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid)

if (quirks & EDID_QUIRK_FORCE_12BPC)
connector->display_info.bpc = 12;
-
+ printk("num_modes %d , edid->features 0x%x, quirks 0x%x\n", num_modes, edid->features, quirks);
return num_modes;
}
EXPORT_SYMBOL(drm_add_edid_modes);

0 Kudos
Reply

912 Views
joanxie
NXP TechSupport
NXP TechSupport

do you mean HDMI output port or MIPI DSI to HDMI port? and did you check if your HDMI display can support 1080p@30 or not?

 

0 Kudos
Reply

884 Views
zhouch
Contributor II

 

only use HDMI  , HDMI output port can  output  1920x1080@30   clock =74250  

zhouch_0-1657879490637.png

 

but  when LVDS and HDMI are used together   can not  work   

 

zhouch_2-1657879362490.png

zhouch_3-1657879399751.png

 

got any advice 

 

 

 

 



 

0 Kudos
Reply

867 Views
joanxie
NXP TechSupport
NXP TechSupport

did you check weston.ini? how did your bsp set this? how about change the resolution in the weston.ini, does it work?

 

0 Kudos
Reply