From patchwork Tue May 28 08:32:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 13676304 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 BF573C25B78 for ; Tue, 28 May 2024 08:33:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41E0A10E5B6; Tue, 28 May 2024 08:33:45 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=wolfvision.net header.i=@wolfvision.net header.b="kNREzoFi"; dkim-atps=neutral Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2090.outbound.protection.outlook.com [40.107.21.90]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0006E10E5B6 for ; Tue, 28 May 2024 08:33:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jrFrMT6Ggx7XK63TDsGrCUuR7Vrmlkey4CsDyxJBS2RoVy4Cs07T3k5CKKNNCujs2uFxf7ojv5r39xW8GIjxAm/45MLjtv3yPgFUOYK4dFiG7o5MqFWk9NrU7XP+Ajrdb+x+XmFlvZkTnTOw3LSsCbOJQQtZoQIFysQrGRxa/WfQnGdL/qwjk49Vq1Cjvc7zEvYMxyhij5Qsp94vSKrv61pFzXkQO2xSCx3Dvy0bmnAtiNYmWoSgj+CcQGFf1emqKd4U2NIGC5pfHK29A7ZacENfIxaPuskHgHpbRqw5Pz64UAM4yHGqIKw/gA8DMY8+6zUCzX2FEq3g3YjODx/uOw== 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=9opRFzleX7w0RsgDIjAUz6Mwuc/zJwkYCLstivxccEc=; b=e8rm0SSKN4DAyq3ODI320DK2QSrVfd+n57m1+iBZTijsBcV/17Ps9XtxLbSmNd9pK4iwqFLCjt3SIMaQqT9RquIXQ2Slewdv3cCtVHmN8M3kCbCApKkcbUqHS1aliJn+R+0sg51bkpqlTbX1ojnHo7ZH+No8T2kWdoIpSQyXzPzqL3pMa5ITZ0QIUCH+0Y7OwpPyWVQ1nLHaHdvGqt4GkRuSVxfLGMC+KohKELlV1GeMYTqCaENR/xmSnW0aAQ9jJWjUT+OlMXaUlGbIJ3x67fLgtPeC0zZ4rcrL6tCQtbJ3ozTY9PXXIopG5mjpTyg9WPAjlAk7nmsS50Vc+GzfAQ== 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=9opRFzleX7w0RsgDIjAUz6Mwuc/zJwkYCLstivxccEc=; b=kNREzoFi22xIJjJqtIu46Iluv0I8+xwRZNboVgb3CutTyjt1kf4zxYfiBu3mxqjzbNOxCuGusi1UXdcNBW3E4c66oulcGkrtSjadDPdyaY7FOGeJP6Z8fOPugFYKPI2MmIx88Ok/HbVN6IbJWBw7Urj9xijyVHZjJdYc7RhLgzo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) by PAVPR08MB9745.eurprd08.prod.outlook.com (2603:10a6:102:31c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29; Tue, 28 May 2024 08:33:39 +0000 Received: from VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::1f7f:ed46:6440:8b38]) by VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::1f7f:ed46:6440:8b38%4]) with mapi id 15.20.7611.025; Tue, 28 May 2024 08:33:39 +0000 From: Gerald Loacker Date: Tue, 28 May 2024 10:32:55 +0200 Subject: [PATCH RESEND 2/3] drm/panel: sitronix-st7789v: tweak timing for jt240mhqs_hwt_ek_e3 panel Message-Id: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v1-2-f8351d4a8d4b@wolfvision.net> References: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v1-0-f8351d4a8d4b@wolfvision.net> In-Reply-To: <20240409-bugfix-jt240mhqs_hwt_ek_e3-timing-v1-0-f8351d4a8d4b@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=1716885217; l=998; i=gerald.loacker@wolfvision.net; s=20230502; h=from:subject:message-id; bh=L75Ahzdg028IAtu+zqtyqJPYqEpvooArWModEJr1xcs=; b=BSgOJyDgREps6kb/Pqy/+VdWQBrz1dtFJZHYE88aZIg0WohfR3iyGO5KR7UUM3E7O0gYbVdI4 fLK8OBW/2WRBlzG2ThFcP3pnSK0oc+OCuMi7AIudHNVxPuewEoxJf9A X-Developer-Key: i=gerald.loacker@wolfvision.net; a=ed25519; pk=UXhp+obGMUOjknszonesnb29P6a2Kk/K5eBuz62ggVE= X-ClientProxiedBy: VI1PR08CA0251.eurprd08.prod.outlook.com (2603:10a6:803:dc::24) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|PAVPR08MB9745:EE_ X-MS-Office365-Filtering-Correlation-Id: 428d94f1-8b05-481e-7963-08dc7ef0df7d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|376005|366007|1800799015|52116005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?TgzkcOYfKd7pC9qlIvfmrm2BXRQfH/5?= =?utf-8?q?Iv6mS2ZUMOQ74xXziPb4UfFt2Z1f2OJddPPP4rPToR/nvx6bjnI4zZEJr+HOer0zO?= =?utf-8?q?mRkICZCrTMjq5OHMwADSXputre0aaf7zPg9N8pDmsDxGe3GIlp3Pdcx65KPGb7e69?= =?utf-8?q?u3sgB62YWqDs7MnVb4CzGY85F8K1yOlOtnxAiBKqfH96Bd65vGyY1LqlQjnUdlEVY?= =?utf-8?q?aPYfOuoAHA8lfvT4f7oUQtZbctHnBdp+e5OPCYlt/kpWmvsFegruVw3k/Vxe90AK7?= =?utf-8?q?VYerSRJa1b7ZweGquTLkE9th5knzdI/JCWiD9qfSYuhZx9AYXWEF0vgMHJRzA/qiz?= =?utf-8?q?C0m/XGZb+BG1RQHJ7gvvKGRofPpium7uaUWStxhbPocvwkiVexnIsxIOrfDoKBFKX?= =?utf-8?q?w0E4JW19Cbr7JoqVE6XKI0VDbZ/iUdf2USICUJF3t6XXKKiPcIEQKuizXy5O/Uon/?= =?utf-8?q?sYW95JYaYoHx7/yATsJG1QnlnC0CnvENYQZ7cBG/jby12xep+KH7Q6vT6CsQUrtZx?= =?utf-8?q?RfSXQ8oDJ4CO3xZ7C9wudIpbnV5AJyvICjlMdNs2R+3r4WPOZ+XxPtltvoFbgZ7jO?= =?utf-8?q?xRFjsLQEE2yudvg2xrnh8nwNjRyQycsZEgz4MWANbHvYB9XbITy42I+tq5bmSZCBO?= =?utf-8?q?oauf7ELiGkeSAQ9b1amaSNG8OJ7Z2hgCN9uFFCS9517NXHEHwNqJfr4YZQjte+V+J?= =?utf-8?q?Vk+5X91EjGv6HEDgFjcXNfyR4nEBb74C/n5jB2DojiJwFrvMg/e7L7+cdU3aYA87I?= =?utf-8?q?x0wNPNUAOPbI6jwLWPv4e8NksVu6G0QsvW/qBKleBX/V5EndWt5POTAf/buElZmkn?= =?utf-8?q?3EyljbnzlAMhGjJWreSwulW84Gohcieci/D2EIjNNzQPYgwWPWL3XBfxiA+slzWv+?= =?utf-8?q?Uz/kyRTeomFOsKU3hCt7QpR5/Kl3QVqDTHMTthkjT3RrFPzj47JkyJedoxtYnyvRl?= =?utf-8?q?GGqrraQTOUgFJ4T0Cfqr0/vu4DUwf4+ErSIOwlili51iANerz3Od0lwTROtWGlwAE?= =?utf-8?q?fso9fCUxsU0q+rBfODedFg+bRnITRx3Ryyg/XCWcFKwub/qSlVSHBKGcgzeMK9cpg?= =?utf-8?q?4xIeuprZQ9epcI1U4Sm4feENuFgXjtoDgYjQjXBLY/k98bNQhJTRTkd2ELw071Zi4?= =?utf-8?q?a2P3CIeZa6n7TqmdtGtEilPVx4EPgNLr7KN+JnLeEBogMo15x+r1qecMZx/k2cB6w?= =?utf-8?q?77Rjp9gqlkvSJRhFl/TqcuZuF6cP9LAbdc9o1X84AZ4YBNButtX8g2Z4lXelpbZIr?= =?utf-8?q?QzErcag/0Mw1MdbkC5QKfaAAFzZ5wA+DVVg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB4544.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(7416005)(376005)(366007)(1800799015)(52116005)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-Chun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X6pHd2mGKDeV1y1C59N9iTo2hceoA6G6dndzGiE13cUVXYqS8TqqotCa1?= =?utf-8?q?m98HghviyELHn+MGac85ShIcQHURCqxD95291Kxwmk0Y2ERD9r0RgQO4B7qcDP03B?= =?utf-8?q?0z6DDWXIYAJ8OKO8/1w7k+49GDplJUdJV2HCzlS1yw8/cx0OLx7rTDBTMvWNI8tBr?= =?utf-8?q?hJF9e8RPasO7eup2YXZS8G7taypANpfl3RwPu+xoKjE0s83DE/E2zArWK9r4ipe/+?= =?utf-8?q?nQkmyDPBLs4ahZ2RULLaX9Hpe31wxfVBKq6+nirgE/55TrE8m1PqlXYQyS8DWNyyE?= =?utf-8?q?W2UzL5VBzCOtjQUNbchpzPoVUG4FM3ErXb2ldDD0b6lsYhGdGKtA/AbOiL9u9Z4ZT?= =?utf-8?q?yXPpd72fG5AoVlgW00Zb14wRz5SrJJnHg2m+0rSGUmZR2eIoBARH123vGvyafZcnN?= =?utf-8?q?PmjPyC9cJEVlXXm34twDjALhZKpv9cnGfFf1U5IzI1nd4m+9cxdnc0MQhMTqc8RMT?= =?utf-8?q?QHiYg4siGCfwUqpgTlHMwqRR2UwgX0NUSjJdXxiIjYAq2oJc6pPrlHOI97RK0xiB2?= =?utf-8?q?EqzDDRoOYF/ioOYWhEi37lrFmP639LWhaAGMM4KMKMFghTzJ0nFaqz02y6mI8hszn?= =?utf-8?q?somSfjy5l5coDL1i5A60QW960yMxGeXj1jcrEUxgJSPMm0Nx1cbi8rxC+15NKu5bY?= =?utf-8?q?LrWyW9wn+9rrN403cBjYgLNz+mX084sP3Q=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 428d94f1-8b05-481e-7963-08dc7ef0df7d X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 08:33:38.7266 (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: /eJdrEueBXlTTAfLz92FwVE6xCN2ZUWjyLwVXwpWqcYl9tS9eW22ES0hKfAZ7YRVAvFOp3YaAtXTxMlEF0Z+xdEY4ppz0GOQh6nrBPWNoB8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9745 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. Signed-off-by: Gerald Loacker --- 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,