Skip to content

Commit cea7008

Browse files
Cong Yangdianders
authored andcommitted
drm/panel: boe-tv101wum-nl6: Fine tune Himax83102-j02 panel HFP and HBP
The refresh reported by modetest is 60.46Hz, and the actual measurement is 60.01Hz, which is outside the expected tolerance. Adjust hporch and pixel clock to fix it. After repair, modetest and actual measurement were all 60.01Hz. Modetest refresh = Pixel CLK/ htotal* vtotal, but measurement frame rate is HS->LP cycle time(Vblanking). Measured frame rate is not only affecte by Htotal/Vtotal/pixel clock, also affected by Lane-num/PixelBit/LineTime /DSI CLK. Assume that the DSI controller could not make the mode that we requested(presumably it's PLL couldn't generate the exact pixel clock?). If you use a different DSI controller, you may need to readjust these parameters. Now this panel looks like it's only used by me on the MTK platform, so let's change this set of parameters. Fixes: 1bc2ef0 ("drm/panel: Support for Starry-himax83102-j02 TDDI MIPI-DSI panel") Signed-off-by: Cong Yang <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Douglas Anderson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20231120020109.3216343-1-yangcong5@huaqin.corp-partner.google.com
1 parent 8d6ef26 commit cea7008

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,11 +1767,11 @@ static const struct panel_desc starry_qfh032011_53g_desc = {
17671767
};
17681768

17691769
static const struct drm_display_mode starry_himax83102_j02_default_mode = {
1770-
.clock = 161600,
1770+
.clock = 162850,
17711771
.hdisplay = 1200,
1772-
.hsync_start = 1200 + 40,
1773-
.hsync_end = 1200 + 40 + 20,
1774-
.htotal = 1200 + 40 + 20 + 40,
1772+
.hsync_start = 1200 + 50,
1773+
.hsync_end = 1200 + 50 + 20,
1774+
.htotal = 1200 + 50 + 20 + 50,
17751775
.vdisplay = 1920,
17761776
.vsync_start = 1920 + 116,
17771777
.vsync_end = 1920 + 116 + 8,

0 commit comments

Comments
 (0)