MLK-17537-1: drm/bridge: Correct the ADV7533 init
authorRobert Chiras <robert.chiras@nxp.com>
Mon, 26 Nov 2018 11:46:14 +0000 (13:46 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1a48959bfc1de8f3501d2eac6a8e5f9c60c976f1
treeb7a412786f21e8ff9940d74ce387e410fee4c6b0
parent25f5fa6bfec8426f7b30c7b72835748cef8e5724
MLK-17537-1: drm/bridge: Correct the ADV7533 init

According to the Analog Devices configuration script, there are some
steps that need to be made when configuring the ADV for a specific mode.
Some of those steps were missing from driver, so this patch takes care
of this.
Also, in mode_fixup, the driver is trying to reconfigure the DSI lanes
from 4 to 3, when pixel clock is lower than 80MHz, which is not
necessary. the lanes property represents the maximum available lanes on
that devices and should not differ from a mode to another.
The DSI host is the one who should predict how many lanes it could use
to drive a display mode, so remove this from ADV driver.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/bridge/adv7511/adv7511.h
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c
drivers/gpu/drm/bridge/adv7511/adv7533.c