From patchwork Wed May 29 14:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 13679011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93D76C25B75 for ; Wed, 29 May 2024 14:43:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF3C110E6D6; Wed, 29 May 2024 14:43:12 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=wolfvision.net header.i=@wolfvision.net header.b="D2Tq/dpj"; dkim-atps=neutral Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2110.outbound.protection.outlook.com [40.107.6.110]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2A62310E6D6 for ; Wed, 29 May 2024 14:43:06 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pq7zdX+twPPtFTIhIQHdJNEskGFK5MYWSs4bahRWRUiGvbz/0aepZbBiujFVCESgfQG7D9/7ls63PWEDVm3/iIs4tfE+PyofPlTnl0s8VMg+e4V09wsJ//yG6E7eKr+GuP2MPmbX3GTl/2vankbcf7QuqJTljbHgylqXv61eZPCR2U70Cg/e6/gezVAW9/4X7xA7Fyipo5nsRqKRyyX39NoDurrDOedcZJ7VOLReJPLR1/jNieGWvhS7QrsTBpfN/TDSpIuqYYHIk1CmctWXSdT9n4s0v9jGhV3/sylyPsTCmVFpo1HuSQ4u15WjhZR5DcgbBI34FsRvPpKryvOCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rz96EoX3AtRpsKGrGsztEfVQHGHCJDm1xT1qRaefvVU=; b=D94bJiqPkqzBzutsNIOzMDmecf6IBPLy1DfeIYNjgjHvMGnkYOBVQFY4cbqklWNiLt2m0TIIlLSnl8zXVW/YVabZXwJcEJPo8MN4k3v6XEONknYUyHH4rk9EhCx3RO1kKMNLW/zgaS57m9hbFO8GDmibYyATF4OQP/zo4nfO1hL3sUHFzmPZbOxOWCrRLtR7V6lCu1bSXOXktIS+F1ZjqOFrAjhq4mUIovYB0QsEynCJ9eWmZUXHT/9yWRYf7RR8XqSkU3DRDaMk5w/yHd7rPgOWOJl89P5twmKHrtvJbXXVV2TrZikCDoHSQhHo6H73BubKRAwAdijF303Wrvp+Fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rz96EoX3AtRpsKGrGsztEfVQHGHCJDm1xT1qRaefvVU=; b=D2Tq/dpj1kDfh5oZSM4pSpxZXEvU9xnkwlls5q+OHFX4YBMuZGuOULFd7v8I5PzUz1FZ85edeVHZY4uQrnGqCIDyDJ8RjKOxMrqulha+IYGHNn8IO9Tvse8DfeCxBXIMhYCsAM/frLH6uT9hjnatumdT1lX7SblRwL6DyKWPErY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4539.eurprd08.prod.outlook.com (2603:10a6:10:cf::22) by PAWPR08MB9032.eurprd08.prod.outlook.com (2603:10a6:102:335::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Wed, 29 May 2024 14:43:01 +0000 Received: from DBBPR08MB4539.eurprd08.prod.outlook.com ([fe80::87a9:a8d0:96fa:19e1]) by DBBPR08MB4539.eurprd08.prod.outlook.com ([fe80::87a9:a8d0:96fa:19e1%6]) with mapi id 15.20.7611.030; Wed, 29 May 2024 14:43:01 +0000 From: Gerald Loacker Date: Wed, 29 May 2024 16:42:46 +0200 Subject: [PATCH v2 2/3] drm/panel: sitronix-st7789v: tweak timing for jt240mhqs_hwt_ek_e3 panel Message-Id: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v2-2-e4821802443d@wolfvision.net> References: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v2-0-e4821802443d@wolfvision.net> In-Reply-To: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v2-0-e4821802443d@wolfvision.net> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Gerald Loacker X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716993775; l=1092; i=gerald.loacker@wolfvision.net; s=20230502; h=from:subject:message-id; bh=SgQKKk8DdC1+p6jCLboYf/sQyhl/ChKYXh4hBSZ9y1o=; b=/8bLHVR8252DmgbPFg+iU43MDibu9RDFfzZ04uGHySktBuXsKvMjt8SqlSttpZHiciJKkuJdl +LUIJDt7jCnAsNb4gXmPeVXtLClofgzMN+xOaAROPiQghls494/oFXP X-Developer-Key: i=gerald.loacker@wolfvision.net; a=ed25519; pk=UXhp+obGMUOjknszonesnb29P6a2Kk/K5eBuz62ggVE= X-ClientProxiedBy: VI1P190CA0041.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:1bb::8) To DBBPR08MB4539.eurprd08.prod.outlook.com (2603:10a6:10:cf::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR08MB4539:EE_|PAWPR08MB9032:EE_ X-MS-Office365-Filtering-Correlation-Id: feb0da7e-66d7-4625-54b2-08dc7feda196 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|366007|1800799015|52116005|376005|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NC8KxH3SA8zZsGMQlSLS1Av3aX7fHLK?= =?utf-8?q?0iFjEhRgCRTfYVmd4V42+GrzLxXTEjNyd2cuQhXe22fEHjnlmcLSSG1dmWJ2nTeUl?= =?utf-8?q?/XasOg0g587ByLLiPTXfbkBHF8IsqpsmY7NkZxHIxfxuh1ls448fufEeSR5Wn1OzB?= =?utf-8?q?3GyNbgxC3t1Dn314VDT1uq0zoYtY3H0gag2YhzyjYo4U8fqzlGnNkqNQ5t6KXk3Ub?= =?utf-8?q?T5n+vB++Zm8UJ6GKAR3FBo9NUPtEAp5tj3BxCXWQW7Ae002br2Jv1+1+M1c9CCSb0?= =?utf-8?q?9nI4wo7sREjNPGcqWehXPsRORzf3EMqlVcjUriEIz9HcDBW99I0mMbZOq1h5QEhs0?= =?utf-8?q?mcR2smzFThT1NWP8ROWhsoMbTNMB6pShdkkNXOTgF8XObNyhAPm4WsWV/GBOfwES/?= =?utf-8?q?qz+x8QWxS+ZXXOXFqSC30h5lhaiTvfHnh9cR7qTtut11aANAFvaIWK85B+1dDIMSf?= =?utf-8?q?t3DHcWjRA/13nYJDgYzqsUBGj2ojMturk59ZwFhioYMjrAKUFrnVAmqy+63qQUObq?= =?utf-8?q?JCNULwp1alqUamDLQTeAfuijluxs23/0XwUyNa+9BRQbAk+GTrNEEc4DtrZRtXYHw?= =?utf-8?q?b+TGEHRFCrZdf518rpoqmR9BW0zpiI9Xn/N7Lgtn+r97YpHNtO7SEDQPmTFkJX3dZ?= =?utf-8?q?ZR7MHNt6gmh2mGzX/D6L8r+YUgwrO+Q1sysLzexs1vFYwIygCPgst3IqGZSAieFqR?= =?utf-8?q?hnaZls57bQp76CM2AfKm4sTl48tvKeNE61co0pwlRq2FBdM0Tts5fc0RKhV2yWthb?= =?utf-8?q?XvHRdOOGcRu934/ExFA3CNy4SVfbdBc80O52v5vG01eWkNSa37puLXMFvBrKY5boW?= =?utf-8?q?Xd0lSPmIgZy5+B5ljPchd+s1LZ6rCd/6zXkjh8bSToR8ZJBlCgUDW39rkGr7X1/+D?= =?utf-8?q?tIKBnYid5ixTYBLT0o12J4LvGEfBupB7JvBvLUwI74lPmjuyg6jWLrzmaLrlmR07T?= =?utf-8?q?IBxNJ+e5rm/zWHk1lh2apPnag5GjqQTCb0b2jZpuPqtfmBMiAaNBw/GEJK08BM6Qc?= =?utf-8?q?gZ7xdiR0fu3AyySSQC3aZHQ3YBVPOGnGTP7tNbhv5R+AIYnFaRU5NvUe6V9CKlMxY?= =?utf-8?q?hk7d5Ds+WV6V/7wdOlRi39c3PDjDOVkKNi2o3+MiSQfW5DxF+eM/ZxKgGOvYQXb4V?= =?utf-8?q?i8RHdM8FVxxvhQ9lzxJ0qkpyfRjTQLESB+jBMeR868AAx0xyJey1a5z0ZYurqNqRg?= =?utf-8?q?gq0/VSqeyjb7lV2TY/FvsjyTJNDVybtdX4mZV6q83Lc6rrtrDC82GmfooGnE/UVr6?= =?utf-8?q?HILljLk9BS61T7nsLNxHRrIS/KCtq41rwlg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4539.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(52116005)(376005)(7416005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-M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iwt2qnrjv5SO6JmBCYC2U4yBZ3HIXDWmKefV1bG1cDUPwYPXslb?= =?utf-8?q?3deH2Jadm4AOhzwco6DhuS2I1rj+2m0U2752nNbsvBemX4w1GtRkAUqRzpuqwGo7D?= =?utf-8?q?/OAmrSBYMCDq7ndYBFukcNy2UV9XAEqBd+/SkarzsrF7N0DZj1c9ZvOOXUoT7au8i?= =?utf-8?q?XNJBDLfqQGaDaGBrWCO5wIRSWE4rI5V3viEfiOn46PLY+Er4nnproe0uiX0CKRHC/?= =?utf-8?q?8NVvz8Z5+cone8+N3BpT4WlL37IBe1pqh+8qVEVswoM68qtUoELrD/zv2bKzEXiPm?= =?utf-8?q?KGijwb/SVKlR8/S9MSQUxjofgRYw3Vc0byLBOyuT5zRpbrgQm0mtJuimNw8U1EmNo?= =?utf-8?q?6nIdezWaKqtpa6dJXnC7A09sj4HGK+z1g3Of3munZFmeQmmya9C0YIt/9qaquQOWU?= =?utf-8?q?VAtLuw0Y+egO1Bl9g9FPbAcCohV5ooj/qq1Ll0Sgl7NJyC1rS6ePqbnXLHtg3iLMO?= =?utf-8?q?ezdhcqfbSArk42YCr+4AfW+mzLw8odU5YECKzxrYlfPt8WMC2uNQwL/lpXPloml4R?= =?utf-8?q?etlJPGX/KNXDx73vtQMcKDd6OST+aeijQXhTxhobQa9m5JQ0AjcbZlRm5i68inwQ9?= =?utf-8?q?LH4rSK7CwSvfDt9eKKIZMV7oYN7sHOYE5qdfDXZrosw9/Sfcj90TphKX+HshKtLSk?= =?utf-8?q?W0Tw+iMy9gAogHeFRdv0FXYsWUhInuZVBQ=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: feb0da7e-66d7-4625-54b2-08dc7feda196 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4539.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 14:42:57.5566 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8qeLc3tqj/63rLraYtDFlf1fjhhahTX+VLh3lZFcNCaGyDjm8JFI8rl1SjUi/EQhlohuGf6CE1DzFcNW5+7i5MT9y1kCM/CTJA/B1wHt4Cc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9032 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use the default timing parameters to get a refresh rate of about 60 Hz for a clock of 6 MHz. Fixes: 0fbbe96bfa08 ("drm/panel: sitronix-st7789v: add jasonic jt240mhqs-hwt-ek-e3 support") Signed-off-by: Gerald Loacker Acked-by: Jessica Zhang --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index 32e5c0348038..c7e3f1280404 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -282,9 +282,9 @@ static const struct drm_display_mode et028013dma_mode = { static const struct drm_display_mode jt240mhqs_hwt_ek_e3_mode = { .clock = 6000, .hdisplay = 240, - .hsync_start = 240 + 28, - .hsync_end = 240 + 28 + 10, - .htotal = 240 + 28 + 10 + 10, + .hsync_start = 240 + 38, + .hsync_end = 240 + 38 + 10, + .htotal = 240 + 38 + 10 + 10, .vdisplay = 280, .vsync_start = 280 + 48, .vsync_end = 280 + 48 + 4,