OSDN Git Service

drm/sun4i: lvds: Invert the LVDS polarity
authorMaxime Ripard <maxime@cerno.tech>
Sat, 4 Jul 2020 13:38:03 +0000 (15:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 27 Aug 2020 15:55:50 +0000 (17:55 +0200)
commit3bc46a083fa9f475dd2e0ab8717d9839b070b8d9
tree8483e975108bd545dddb3954d49178eb94affdec
parentcd6da0b113512b15a4d35f355f9ecd8858297369
drm/sun4i: lvds: Invert the LVDS polarity

The LVDS controller can invert the polarity / lanes of the LVDS output.
The default polarity causes some issues on some panels.

However, U-Boot has always used the opposite polarity without any reported
issue, and the only currently supported LVDS panel in-tree (the TBS A711)
seems to be able to work with both settings.

Let's just use the same polarity than U-Boot to be more consistent and
hopefully support all the panels.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Cc: Ondrej Jirman <megous@megous.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200704133803.37330-1-maxime@cerno.tech
drivers/gpu/drm/sun4i/sun4i_tcon.c