[PATCH] drm/panel: mantix: Set the pixel clocks for 60 Hz

Sebastian Krzyszkowiak posted 1 patch 1 month, 3 weeks ago
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] drm/panel: mantix: Set the pixel clocks for 60 Hz
Posted by Sebastian Krzyszkowiak 1 month, 3 weeks ago
These are 60 Hz panels, but the currently set pixel clocks result in modes
with refresh rates of 63 Hz and ~63.41 Hz.

Adjust the clocks to target 60 Hz.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
---
 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 13352cb4ad77..3d454ac7a1ec 100644
--- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@ -168,7 +168,7 @@ static const struct drm_display_mode default_mode_mantix = {
 	.vsync_start = 1440 + 130,
 	.vsync_end   = 1440 + 130 + 8,
 	.vtotal	     = 1440 + 130 + 8 + 106,
-	.clock	     = 85298,
+	.clock	     = 81237,
 	.flags	     = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
 	.width_mm    = 65,
 	.height_mm   = 130,
@@ -183,7 +183,7 @@ static const struct drm_display_mode default_mode_ys = {
 	.vsync_start = 1440 + 175,
 	.vsync_end   = 1440 + 175 + 8,
 	.vtotal	     = 1440 + 175 + 8 + 50,
-	.clock	     = 85298,
+	.clock	     = 80706,
 	.flags	     = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
 	.width_mm    = 65,
 	.height_mm   = 130,

---
base-commit: 2961f841b025fb234860bac26dfb7fa7cb0fb122
change-id: 20260218-mantix-pixel-clock-7ff880cbaedf

Best regards,
-- 
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Re: [PATCH] drm/panel: mantix: Set the pixel clocks for 60 Hz
Posted by Neil Armstrong 1 month, 1 week ago
Hi,

On Wed, 18 Feb 2026 20:47:23 +0100, Sebastian Krzyszkowiak wrote:
> These are 60 Hz panels, but the currently set pixel clocks result in modes
> with refresh rates of 63 Hz and ~63.41 Hz.
> 
> Adjust the clocks to target 60 Hz.
> 
> 

Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)

[1/1] drm/panel: mantix: Set the pixel clocks for 60 Hz
      https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/fd77ff14801570f546a777c52fbe22ac8c3ea0fb

-- 
Neil
Re: [PATCH] drm/panel: mantix: Set the pixel clocks for 60 Hz
Posted by Neil Armstrong 1 month, 1 week ago
On 2/18/26 20:47, Sebastian Krzyszkowiak wrote:
> These are 60 Hz panels, but the currently set pixel clocks result in modes
> with refresh rates of 63 Hz and ~63.41 Hz.
> 
> Adjust the clocks to target 60 Hz.
> 
> Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
> ---
>   drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
> index 13352cb4ad77..3d454ac7a1ec 100644
> --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
> +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
> @@ -168,7 +168,7 @@ static const struct drm_display_mode default_mode_mantix = {
>   	.vsync_start = 1440 + 130,
>   	.vsync_end   = 1440 + 130 + 8,
>   	.vtotal	     = 1440 + 130 + 8 + 106,
> -	.clock	     = 85298,
> +	.clock	     = 81237,
>   	.flags	     = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
>   	.width_mm    = 65,
>   	.height_mm   = 130,
> @@ -183,7 +183,7 @@ static const struct drm_display_mode default_mode_ys = {
>   	.vsync_start = 1440 + 175,
>   	.vsync_end   = 1440 + 175 + 8,
>   	.vtotal	     = 1440 + 175 + 8 + 50,
> -	.clock	     = 85298,
> +	.clock	     = 80706,
>   	.flags	     = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
>   	.width_mm    = 65,
>   	.height_mm   = 130,
> 
> ---
> base-commit: 2961f841b025fb234860bac26dfb7fa7cb0fb122
> change-id: 20260218-mantix-pixel-clock-7ff880cbaedf
> 
> Best regards,

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

Thanks,
Neil