mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/panel: boe-bf060y8m-aj0: Correct display pixel clock
@ 2026-11-08 21:32 Dang Huynh
  2026-12-03 19:22 ` Neil Armstrong
  0 siblings, 1 reply; 2+ messages in thread
From: Dang Huynh @ 2026-11-08 21:32 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Sam Ravnborg,
	AngeloGioacchino Del Regno
  Cc: dri-devel, linux-kernel, phone-devel, Dang Huynh

The driver has been using the wrong pixel clock ever since it's
submission.

The panel is 60Hz, but the mainline driver ran at 165268 Hz
which is 61Hz and the following formula can confirm this:
(1080 + 36 + 24 + 96) * (2160 + 16 + 1 + 15) * 61 / 1000

This causes the panel to show heavy signs of ghost touches, making
the display unusable for anything practical.

After the pixel clock is corrected, the display no longer show any
sign of ghost touches.

Fixes: a19125a28112 ("drm/panel: Add BOE BF060Y8M-AJ0 5.99" AMOLED panel driver")
Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
---
 drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
index 84c21c62a43e..b1f428e0808d 100644
--- a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
+++ b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
@@ -168,7 +168,7 @@ static int boe_bf060y8m_aj0_unprepare(struct drm_panel *panel)
 }
 
 static const struct drm_display_mode boe_bf060y8m_aj0_mode = {
-	.clock = 165268,
+	.clock = (1080 + 36 + 24 + 96) * (2160 + 16 + 1 + 15) * 60 / 1000,
 	.hdisplay = 1080,
 	.hsync_start = 1080 + 36,
 	.hsync_end = 1080 + 36 + 24,

---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261109-pro1x-display-pixelclock-8b00f09972fd

Best regards,
--  
Dang Huynh <dang.huynh@mainlining.org>

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

* Re: [PATCH] drm/panel: boe-bf060y8m-aj0: Correct display pixel clock
  2026-11-08 21:32 [PATCH] drm/panel: boe-bf060y8m-aj0: Correct display pixel clock Dang Huynh
@ 2026-12-03 19:22 ` Neil Armstrong
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Armstrong @ 2026-12-03 19:22 UTC (permalink / raw)
  To: Dang Huynh, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Sam Ravnborg,
	AngeloGioacchino Del Regno
  Cc: dri-devel, linux-kernel, phone-devel

On 11/8/26 22:32, Dang Huynh wrote:
> The driver has been using the wrong pixel clock ever since it's
> submission.
> 
> The panel is 60Hz, but the mainline driver ran at 165268 Hz
> which is 61Hz and the following formula can confirm this:
> (1080 + 36 + 24 + 96) * (2160 + 16 + 1 + 15) * 61 / 1000
> 
> This causes the panel to show heavy signs of ghost touches, making
> the display unusable for anything practical.
> 
> After the pixel clock is corrected, the display no longer show any
> sign of ghost touches.
> 
> Fixes: a19125a28112 ("drm/panel: Add BOE BF060Y8M-AJ0 5.99" AMOLED panel driver")
> Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
> ---
>   drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> index 84c21c62a43e..b1f428e0808d 100644
> --- a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> +++ b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
> @@ -168,7 +168,7 @@ static int boe_bf060y8m_aj0_unprepare(struct drm_panel *panel)
>   }
>   
>   static const struct drm_display_mode boe_bf060y8m_aj0_mode = {
> -	.clock = 165268,
> +	.clock = (1080 + 36 + 24 + 96) * (2160 + 16 + 1 + 15) * 60 / 1000,
>   	.hdisplay = 1080,
>   	.hsync_start = 1080 + 36,
>   	.hsync_end = 1080 + 36 + 24,
> 
> ---
> base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
> change-id: 20261109-pro1x-display-pixelclock-8b00f09972fd
> 
> Best regards,
> --
> Dang Huynh <dang.huynh@mainlining.org>

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil

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

end of thread, other threads:[~2026-12-03 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 21:32 [PATCH] drm/panel: boe-bf060y8m-aj0: Correct display pixel clock Dang Huynh
2026-12-03 19:22 ` Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®