drm/bridge: tc358768: fix PLL target frequency
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 27 Apr 2023 14:29:28 +0000 (16:29 +0200)
committerRobert Foss <rfoss@kernel.org>
Fri, 5 May 2023 18:11:30 +0000 (20:11 +0200)
commitffd2e4bbea626d565b9817312b0fcfb382fecb88
tree65f132bdc9ef0f9c3c8bfa4a29604902edde17c1
parent6a4020b4c63911977aaf8047f904a300d15de739
drm/bridge: tc358768: fix PLL target frequency

Correctly compute the PLL target frequency, the current formula works
correctly only when the input bus width is 24bit, actually to properly
compute the PLL target frequency what is relevant is the bits-per-pixel
on the DSI link.

No regression expected since the DSI format is currently hard-coded as
MIPI_DSI_FMT_RGB888.

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230427142934.55435-4-francesco@dolcini.it
drivers/gpu/drm/bridge/tc358768.c