OSDN Git Service

drm/bridge: lt8912b: fix corrupted image output
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 22 Sep 2022 12:43:05 +0000 (14:43 +0200)
committerRobert Foss <robert.foss@linaro.org>
Wed, 28 Sep 2022 14:19:57 +0000 (16:19 +0200)
commit2ab69739209c843a47af82c0620036b233c83688
treefc0c41c2213bcbd277ba6bb36757e2a13ba78ff7
parentd25404a359b24a887db56b52064b754f79921bb7
drm/bridge: lt8912b: fix corrupted image output

Correct I2C address for the register list in lt8912_write_lvds_config(),
these registers are on the first I2C address (0x48), the current
function is just writing garbage to the wrong registers and this creates
multiple issues (artifacts and output completely corrupted) on some HDMI
displays.

Correct I2C address comes from Lontium documentation and it is the one
used on other out-of-tree LT8912B drivers [1].

[1] https://github.com/boundarydevices/linux/blob/boundary-imx_5.10.x_2.0.0/drivers/video/lt8912.c#L296

Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Acked-by: Adrien Grassein <adrien.grassein@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220922124306.34729-4-dev@pschenker.ch
Link: https://patchwork.freedesktop.org/patch/msgid/20220922124306.34729-5-dev@pschenker.ch
drivers/gpu/drm/bridge/lontium-lt8912b.c