All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: simple: switch AUO g185han01 typical clock to 135MHz
@ 2018-11-05 17:08 Lucas Stach
  2018-11-06 11:24 ` Lucas Stach
  2018-11-06 11:30 ` Philipp Zabel
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2018-11-05 17:08 UTC (permalink / raw)
  To: Thierry Reding; +Cc: kernel, dri-devel, patchwork-lst

While 144MHz is listed in the datasheet as the typical pixel clock
this leads to a vrefresh rate of 64Fps, which is not what most people
expect. Change this to 135MHz to provide a more common 60Fps refresh
rate.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpu/drm/panel/panel-simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 97964f7f2ace..2243151c4c34 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -661,7 +661,7 @@ static const struct panel_desc auo_g133han01 = {
 };
 
 static const struct display_timing auo_g185han01_timings = {
-	.pixelclock = { 120000000, 144000000, 175000000 },
+	.pixelclock = { 120000000, 135000000, 175000000 },
 	.hactive = { 1920, 1920, 1920 },
 	.hfront_porch = { 18, 60, 74 },
 	.hback_porch = { 12, 44, 54 },
-- 
2.19.1

_______________________________________________
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/panel: simple: switch AUO g185han01 typical clock to 135MHz
  2018-11-05 17:08 [PATCH] drm/panel: simple: switch AUO g185han01 typical clock to 135MHz Lucas Stach
@ 2018-11-06 11:24 ` Lucas Stach
  2018-11-06 11:30 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Lucas Stach @ 2018-11-06 11:24 UTC (permalink / raw)
  To: Thierry Reding; +Cc: dri-devel, kernel, patchwork-lst

Am Montag, den 05.11.2018, 18:08 +0100 schrieb Lucas Stach:
> While 144MHz is listed in the datasheet as the typical pixel clock
> this leads to a vrefresh rate of 64Fps, which is not what most people
> expect. Change this to 135MHz to provide a more common 60Fps refresh
> rate.

Please ignore this patch. The clock rate is fine, it's just the
blanking that is too small due to a confusion of dual/single LVDS in
the patch introducing this panel. I'll send a revised patch to fix
this.

Regards,
Lucas

> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c
> b/drivers/gpu/drm/panel/panel-simple.c
> index 97964f7f2ace..2243151c4c34 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -661,7 +661,7 @@ static const struct panel_desc auo_g133han01 = {
>  };
>  
>  static const struct display_timing auo_g185han01_timings = {
> -	.pixelclock = { 120000000, 144000000, 175000000 },
> +	.pixelclock = { 120000000, 135000000, 175000000 },
>  	.hactive = { 1920, 1920, 1920 },
>  	.hfront_porch = { 18, 60, 74 },
>  	.hback_porch = { 12, 44, 54 },
_______________________________________________
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/panel: simple: switch AUO g185han01 typical clock to 135MHz
  2018-11-05 17:08 [PATCH] drm/panel: simple: switch AUO g185han01 typical clock to 135MHz Lucas Stach
  2018-11-06 11:24 ` Lucas Stach
@ 2018-11-06 11:30 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Philipp Zabel @ 2018-11-06 11:30 UTC (permalink / raw)
  To: Lucas Stach, Thierry Reding; +Cc: dri-devel, kernel, patchwork-lst

On Mon, 2018-11-05 at 18:08 +0100, Lucas Stach wrote:
> While 144MHz is listed in the datasheet as the typical pixel clock
> this leads to a vrefresh rate of 64Fps, which is not what most people
> expect. Change this to 135MHz to provide a more common 60Fps refresh
> rate.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 97964f7f2ace..2243151c4c34 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -661,7 +661,7 @@ static const struct panel_desc auo_g133han01 = {
>  };
>  
>  static const struct display_timing auo_g185han01_timings = {
> -	.pixelclock = { 120000000, 144000000, 175000000 },
> +	.pixelclock = { 120000000, 135000000, 175000000 },
>  	.hactive = { 1920, 1920, 1920 },
>  	.hfront_porch = { 18, 60, 74 },
>  	.hback_porch = { 12, 44, 54 },

Looking at the datasheet, the typical horizontal blanking is given as
128 clocks per LVDS channel. Since hactive is doubled for dual-LVDS, the
blanking intervals should be doubled as well.
With that, (960+128)*2 * (1080+20) * 60 = 143.616 MHz.
That would be about 60.16 Hz at 144 MHz.

regards
Philipp
_______________________________________________
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:[~2018-11-06 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05 17:08 [PATCH] drm/panel: simple: switch AUO g185han01 typical clock to 135MHz Lucas Stach
2018-11-06 11:24 ` Lucas Stach
2018-11-06 11:30 ` Philipp Zabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.