linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/panel: rm68200: fix mode to 50fps
@ 2020-09-25 14:16 Yannick Fertre
  2020-10-12 15:31 ` Philippe CORNU
  2020-10-16 20:51 ` Sam Ravnborg
  0 siblings, 2 replies; 3+ messages in thread
From: Yannick Fertre @ 2020-09-25 14:16 UTC (permalink / raw)
  To: Yannick Fertre, Philippe Cornu, Antonio Borneo, Thierry Reding,
	Sam Ravnborg, David Airlie, Daniel Vetter, dri-devel,
	linux-kernel

Compute new timings to get a framerate of 50fps with a pixel clock
@54Mhz.

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
---
 drivers/gpu/drm/panel/panel-raydium-rm68200.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
index 2b9e48b0a491..412c0dbcb2b6 100644
--- a/drivers/gpu/drm/panel/panel-raydium-rm68200.c
+++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
@@ -82,15 +82,15 @@ struct rm68200 {
 };
 
 static const struct drm_display_mode default_mode = {
-	.clock = 52582,
+	.clock = 54000,
 	.hdisplay = 720,
-	.hsync_start = 720 + 38,
-	.hsync_end = 720 + 38 + 8,
-	.htotal = 720 + 38 + 8 + 38,
+	.hsync_start = 720 + 48,
+	.hsync_end = 720 + 48 + 9,
+	.htotal = 720 + 48 + 9 + 48,
 	.vdisplay = 1280,
 	.vsync_start = 1280 + 12,
-	.vsync_end = 1280 + 12 + 4,
-	.vtotal = 1280 + 12 + 4 + 12,
+	.vsync_end = 1280 + 12 + 5,
+	.vtotal = 1280 + 12 + 5 + 12,
 	.flags = 0,
 	.width_mm = 68,
 	.height_mm = 122,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel: rm68200: fix mode to 50fps
  2020-09-25 14:16 [PATCH] drm/panel: rm68200: fix mode to 50fps Yannick Fertre
@ 2020-10-12 15:31 ` Philippe CORNU
  2020-10-16 20:51 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe CORNU @ 2020-10-12 15:31 UTC (permalink / raw)
  To: Yannick FERTRE, Antonio BORNEO, Thierry Reding, Sam Ravnborg,
	David Airlie, Daniel Vetter, dri-devel, linux-kernel



On 9/25/20 4:16 PM, Yannick Fertre wrote:
> Compute new timings to get a framerate of 50fps with a pixel clock
> @54Mhz.
> 
> Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
> ---
>   drivers/gpu/drm/panel/panel-raydium-rm68200.c | 12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> index 2b9e48b0a491..412c0dbcb2b6 100644
> --- a/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> +++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> @@ -82,15 +82,15 @@ struct rm68200 {
>   };
>   
>   static const struct drm_display_mode default_mode = {
> -	.clock = 52582,
> +	.clock = 54000,
>   	.hdisplay = 720,
> -	.hsync_start = 720 + 38,
> -	.hsync_end = 720 + 38 + 8,
> -	.htotal = 720 + 38 + 8 + 38,
> +	.hsync_start = 720 + 48,
> +	.hsync_end = 720 + 48 + 9,
> +	.htotal = 720 + 48 + 9 + 48,
>   	.vdisplay = 1280,
>   	.vsync_start = 1280 + 12,
> -	.vsync_end = 1280 + 12 + 4,
> -	.vtotal = 1280 + 12 + 4 + 12,
> +	.vsync_end = 1280 + 12 + 5,
> +	.vtotal = 1280 + 12 + 5 + 12,
>   	.flags = 0,
>   	.width_mm = 68,
>   	.height_mm = 122,
> 

Hi Yannick,
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Thank you,
Philippe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel: rm68200: fix mode to 50fps
  2020-09-25 14:16 [PATCH] drm/panel: rm68200: fix mode to 50fps Yannick Fertre
  2020-10-12 15:31 ` Philippe CORNU
@ 2020-10-16 20:51 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2020-10-16 20:51 UTC (permalink / raw)
  To: Yannick Fertre
  Cc: Philippe Cornu, Antonio Borneo, Thierry Reding, David Airlie,
	Daniel Vetter, dri-devel, linux-kernel

Hi Yannick

On Fri, Sep 25, 2020 at 04:16:18PM +0200, Yannick Fertre wrote:
> Compute new timings to get a framerate of 50fps with a pixel clock
> @54Mhz.
> 
> Signed-off-by: Yannick Fertre <yannick.fertre@st.com>

Thanks, applied to drm-misc-next.
Sorry for taking so long time.

	Sam
> ---
>  drivers/gpu/drm/panel/panel-raydium-rm68200.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> index 2b9e48b0a491..412c0dbcb2b6 100644
> --- a/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> +++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> @@ -82,15 +82,15 @@ struct rm68200 {
>  };
>  
>  static const struct drm_display_mode default_mode = {
> -	.clock = 52582,
> +	.clock = 54000,
>  	.hdisplay = 720,
> -	.hsync_start = 720 + 38,
> -	.hsync_end = 720 + 38 + 8,
> -	.htotal = 720 + 38 + 8 + 38,
> +	.hsync_start = 720 + 48,
> +	.hsync_end = 720 + 48 + 9,
> +	.htotal = 720 + 48 + 9 + 48,
>  	.vdisplay = 1280,
>  	.vsync_start = 1280 + 12,
> -	.vsync_end = 1280 + 12 + 4,
> -	.vtotal = 1280 + 12 + 4 + 12,
> +	.vsync_end = 1280 + 12 + 5,
> +	.vtotal = 1280 + 12 + 5 + 12,
>  	.flags = 0,
>  	.width_mm = 68,
>  	.height_mm = 122,
> -- 
> 2.17.1
> 
> _______________________________________________
> 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-10-16 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 14:16 [PATCH] drm/panel: rm68200: fix mode to 50fps Yannick Fertre
2020-10-12 15:31 ` Philippe CORNU
2020-10-16 20:51 ` Sam Ravnborg

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).