* [PATCH] drm/sun4i: lvds: Invert the LVDS polarity
@ 2020-07-04 13:38 Maxime Ripard
2020-08-25 17:13 ` Chen-Yu Tsai
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2020-07-04 13:38 UTC (permalink / raw)
To: Chen-Yu Tsai, Maxime Ripard; +Cc: Ondrej Jirman, linux-arm-kernel, dri-devel
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.
Cc: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index 359b56e43b83..e44635ebd510 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
@@ -474,9 +474,7 @@ static void sun4i_tcon0_mode_set_lvds(struct sun4i_tcon *tcon,
SUN4I_TCON0_BASIC2_V_TOTAL(mode->crtc_vtotal * 2) |
SUN4I_TCON0_BASIC2_V_BACKPORCH(bp));
- reg = SUN4I_TCON0_LVDS_IF_CLK_SEL_TCON0 |
- SUN4I_TCON0_LVDS_IF_DATA_POL_NORMAL |
- SUN4I_TCON0_LVDS_IF_CLK_POL_NORMAL;
+ reg = SUN4I_TCON0_LVDS_IF_CLK_SEL_TCON0;
if (sun4i_tcon_get_pixel_depth(encoder) == 24)
reg |= SUN4I_TCON0_LVDS_IF_BITWIDTH_24BITS;
else
--
2.26.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/sun4i: lvds: Invert the LVDS polarity
2020-07-04 13:38 [PATCH] drm/sun4i: lvds: Invert the LVDS polarity Maxime Ripard
@ 2020-08-25 17:13 ` Chen-Yu Tsai
2020-08-27 16:04 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Chen-Yu Tsai @ 2020-08-25 17:13 UTC (permalink / raw)
To: Maxime Ripard; +Cc: Ondrej Jirman, linux-arm-kernel, dri-devel
On Sat, Jul 4, 2020 at 9:38 PM Maxime Ripard <maxime@cerno.tech> wrote:
>
> 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.
>
> Cc: Ondrej Jirman <megous@megous.com>
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/sun4i: lvds: Invert the LVDS polarity
2020-08-25 17:13 ` Chen-Yu Tsai
@ 2020-08-27 16:04 ` Maxime Ripard
0 siblings, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2020-08-27 16:04 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: Ondrej Jirman, linux-arm-kernel, dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 794 bytes --]
On Wed, Aug 26, 2020 at 01:13:33AM +0800, Chen-Yu Tsai wrote:
> On Sat, Jul 4, 2020 at 9:38 PM Maxime Ripard <maxime@cerno.tech> wrote:
> >
> > 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.
> >
> > Cc: Ondrej Jirman <megous@megous.com>
> > Signed-off-by: Maxime Ripard <maxime@cerno.tech>
>
> Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Applied, thanks!
Maxime
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-08-28 7:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-04 13:38 [PATCH] drm/sun4i: lvds: Invert the LVDS polarity Maxime Ripard
2020-08-25 17:13 ` Chen-Yu Tsai
2020-08-27 16:04 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).