drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc
authorLiu Ying <victor.liu@nxp.com>
Mon, 21 Aug 2023 03:40:04 +0000 (11:40 +0800)
committerRobert Foss <rfoss@kernel.org>
Mon, 16 Oct 2023 09:38:43 +0000 (11:38 +0200)
commitac87d23694f44af44a98d21dd77016f2756b6b1b
treef9460806141f613aa0f9bc3420f39399bef8d431
parent5a67ec8c64ec88b5c34060b347ccec4a31af3369
drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc

To get better accuration, use pixel clock rate to calculate lbcc instead of
lane_mbps since the pixel clock rate is in KHz while lane_mbps is in MHz.
Without this, distorted image can be seen on a HDMI monitor connected with
i.MX93 11x11 EVK through ADV7535 DSI to HDMI bridge in 1920x1080p@60 video
mode.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230821034008.3876938-6-victor.liu@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c