Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5368335rdb; Wed, 13 Dec 2023 06:55:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFt+qDogqcliUHLdd2KZw4tGX3tkrrOzCYFhCipP3uSsasFJZcG+0W6tGoAZNTz+Sr/23w5 X-Received: by 2002:a05:6a20:5525:b0:18f:97c:8269 with SMTP id ko37-20020a056a20552500b0018f097c8269mr3666628pzb.115.1702479332588; Wed, 13 Dec 2023 06:55:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702479332; cv=pass; d=google.com; s=arc-20160816; b=n7MqF+umHaYZ0+TIGunHtWFntj5Sstk6IGsoCOxJL+tK9lG96Klglg3dOV90L/WjYO YqTbgFgk/34hPkuutsBrbt7Np4R6+boEHzzVJauJfFBCdq4p/kbVfGzSxkxDwPhN6L+T KKtl7+djzlVaMPU++og71/KOssIbsoPM1rzeB6TYumEt+mfgZ0KgJeaEfY6Thes9EyaF f+X7cM9eern02il/sVsYd/MZ+J0j/2jElcPaY0HIoBdYLvTbTcjVADXqIB+oIMlNKWr9 7VWR8BzmJiA8/ZK0sUMMoCT7bY115U/v7QUjoXSU47n+D0dIKVaoHmG95DFnOG5bkIVB xSPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=IL1PuRaEkbV1IKrXOWWlO/QhOerzEz9fCpiwLoEBpmw=; fh=AsWloBXLMdqqWB8DLHHHOYiFpEb5xHFnQ5Uqh6Wyfzw=; b=frh5ey3f4iDK07QwWzLUp/zh7w0MKFqAQ0zrqWhwvgUfFJZvQHslxd5AuAvOeqsa9y jKTTM9g0+Uaj+buKUrJaoVAUWYVMvVBOJ1t4NAngri+LG1IFuW4vYmc6gmr7xhLT09ax bLXd+HRnFyHWkOHnJ2iJlw1FftpNxpxwchoyLqA2tmQRWq6+LSlq924xZC3XDS/oreCf B1X6Fxxt3+ZgKfAQUu31X8aa/hF+rNw6n+gYqA6BBrx7vhXT/E2oJy1XcnnVJNJrBgJl whmrATDgq9j7j4XCGiVD9JlzT+I4uKgzqeLpGrtbNrte66GHg6XHbkJeRKgDOo5boP80 TbPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@theobroma-systems.com header.s=selector1 header.b=Lk5TjBSC; arc=pass (i=1 spf=pass spfdomain=theobroma-systems.com dkim=pass dkdomain=theobroma-systems.com dmarc=pass fromdomain=theobroma-systems.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=theobroma-systems.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m13-20020a056a00080d00b006d0d83a11a9si741775pfk.100.2023.12.13.06.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:55:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@theobroma-systems.com header.s=selector1 header.b=Lk5TjBSC; arc=pass (i=1 spf=pass spfdomain=theobroma-systems.com dkim=pass dkdomain=theobroma-systems.com dmarc=pass fromdomain=theobroma-systems.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=theobroma-systems.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7BEC48079B7D; Wed, 13 Dec 2023 06:55:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441973AbjLMOyu (ORCPT + 99 others); Wed, 13 Dec 2023 09:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441950AbjLMOyt (ORCPT ); Wed, 13 Dec 2023 09:54:49 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2064.outbound.protection.outlook.com [40.107.6.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D334AB for ; Wed, 13 Dec 2023 06:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Exbk2sOsk5W5oqtwBswse+nXBNTll92aEd2AVjdK4cootEgUgbzlCvjlZTbSsywL2/MaTnR7UlnYPSn9tY+AyxrPzUh82h/8vV9NTA4ldRyUMvTQLBV0RD1B5ph2XncQyOkrsHvfr20crucKLttaJpKQra5mDYou4jCZIj9JwLVpBibwnBcRg/Y7fj/llQxj9deeX13RCU6N7hdwTzZYiinalj4TX9l3sMc0vuy5wgAKgvAuwOVxW7i+Cp0LHRwYhRIdcgZ42Gm/003suTswZDZ8I2MsPvI5QX9Bf/Tj1b8iZwg23nRkycmIdgO1AQNMKOOuo6FJuHUK2C0o0LSNsg== 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=IL1PuRaEkbV1IKrXOWWlO/QhOerzEz9fCpiwLoEBpmw=; b=U+1tPOP8pEq8rsPv2rrbRETVzd2DUoRJ670c0eWmXyzMIwlUxCcCyTsl+ekOz9+vAIRjXS+pz/ti/TFoBW7Za9tuGIZ2qTbzGZ181+81cC4H3/zwaQUDeuxeLj+qcG3GgmNsuV+ovDvoJDw0AWArRXJBvD7PxX1rrsXMTpA9gHJltzvhY05Q+zuzDLlPvfmnGLcnmC5v2vNdoBwfmRpkV8uyrJYQWIn1KJY/bp/L6eYyMLQIvatFshiDXdY7vCdVxjCa6O4Ko3TIM1EQqtGt/sDQlBYOBGF/Fe0XJdm/3QPa39WyWIEqF9LQYkZl/xgV/oBoXi6HW2SVKqT8grEdSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IL1PuRaEkbV1IKrXOWWlO/QhOerzEz9fCpiwLoEBpmw=; b=Lk5TjBSCOdeELgvctqt+oUz80+r3t9x1yH3Dbn49aXAcEPfE6zA+gxiVEFkivxWd85gNhsjdjrlOFuLGEqGMfQ6oHJZpkWSQ/lYy9q1WYrxmBSEu8K78PjSAzbyp7MrJ0ToDMRkyZImebYThXtNz1uu6eRsXWbxDjslIkqzowPgBgJ1bWGsxeBuFg8dbU9u7g8j8DJH23SbMdYpUkAswDcdYmQ+v5gSVDH+bvIdtDQ/cOiW7lJd26M6x4BltvaxjNzah7r0og/PUiPLrJpQuqEJrKckOpEqly8xDZTSgSR5gX1PX49rMjkmuFPIYfqsZq81WCC+XN1iCHV7iz8oIHw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from AM0PR0402MB3537.eurprd04.prod.outlook.com (2603:10a6:208:20::21) by DB8PR04MB7131.eurprd04.prod.outlook.com (2603:10a6:10:fd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Wed, 13 Dec 2023 14:54:53 +0000 Received: from AM0PR0402MB3537.eurprd04.prod.outlook.com ([fe80::e965:1a81:19ac:7bf4]) by AM0PR0402MB3537.eurprd04.prod.outlook.com ([fe80::e965:1a81:19ac:7bf4%5]) with mapi id 15.20.7068.033; Wed, 13 Dec 2023 14:54:52 +0000 From: Farouk Bouabid To: quentin.schulz@theobroma-systems.com, neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch Cc: heiko@sntech.de, victor.liu@nxp.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Farouk Bouabid Subject: [PATCH] drm/panel: ltk050h3146w: Set burst mode for ltk050h3148w Date: Wed, 13 Dec 2023 15:50:45 +0100 Message-Id: <20231213145045.41020-1-farouk.bouabid@theobroma-systems.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR06CA0201.eurprd06.prod.outlook.com (2603:10a6:802:2c::22) To AM0PR0402MB3537.eurprd04.prod.outlook.com (2603:10a6:208:20::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3537:EE_|DB8PR04MB7131:EE_ X-MS-Office365-Filtering-Correlation-Id: 74c83567-83a3-490d-5f5d-08dbfbeb767b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6HR8aeYfpZhINQY/5Nu8h+jXQ9fJNG47TvuS7T4iaPsN7YsVSX+0kA0VUNTKjPlnmQzjG5hpbtuwSPj2Bsmcy3ob+NeSS++In6huG5A+SoXDQYaljoayC7sL8fSSZZysNH1DteG7796jp6TCTp/5uY2FRYPAlbRlBKdKQzP5b/IuQxuwFiV+Qpeu7Q6eW303n+qvfVtpmqW6RbJfjgapW1laQT2Yd0KdcHpDSS5n9gw/rhcaXAsolwsJKNWbeG6J9if+M2EIlG7giwuFz3+YidNYl13F6RqiaC5XOXi6xjbavc/NDAFEnaYiUp/vKlX5YDp2yeCbOO7IjrrdcoNXrJ2XxCzyOy5kKbUo3rFnH8l3/Cl1Up/4rp02c0yvPJFEqi3OTm/8VkZ95J5IHUq73uqBiJJzcYvTzusq5rNnsz1DX8z2kfFnwcpCxeoRWudknpoSoDOBARFGFQqVDRWHfFaS3ex8VW5slye1wVc2tXZRAVYP8NXDFC4DBGtzby2z/DCazHhLhsQ4u7Huz2/2oHbibiBN0kkgtzKsJXhCHyD3hnOtlAlL8N8Qf88bW1HCYQnBpQU0uFp71XqIUCyMV8RunYyUscEk7hGxV1erBmA/lGTQyRDLMbpW1CEWO4GQaAjv5ICCxeUgpn5mFwMD2Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3537.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(376002)(396003)(136003)(366004)(346002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(1076003)(2616005)(26005)(6666004)(6512007)(6506007)(107886003)(86362001)(38100700002)(38350700005)(36756003)(5660300002)(8936002)(8676002)(44832011)(7416002)(4326008)(52116002)(83380400001)(66476007)(66556008)(66946007)(41300700001)(2906002)(6486002)(316002)(478600001)(138113003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RYa7nNEvaj3LMDTFKsdz3y/toXaAPXm7n0/GFz8QjQ4sdEOICbsWCdeoUOXd?= =?us-ascii?Q?M4e/uW+rmNGrytzCEg29GvoJqZD41cpRF0DWbDEMCOxESMaX+8wVvN7LfyMT?= =?us-ascii?Q?G0fIVMlKdvDX8tKBvaytSF2fA1tO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Ux5/TITwyHKYIb1bscJTC78/E+MOr3XkM7FjM5ABXh+ht8eq95aQ25?= =?us-ascii?Q?zH5JQcQDQHBSLt/79Ojw4teWEV855BgCcHsQHZyi+nVW2XyopqEPLmXgRlnO?= =?us-ascii?Q?rmdhLg1JIVk3uPt3pghGb+BFUwUJapwGiH3aXiJwIqPboF3otyovanO94LUq?= =?us-ascii?Q?a8lEElAWsx/NH07sCRuidsMnDdvBqd0VSK7KxV05vjc7GxSfYhN8xCiBgVXk?= =?us-ascii?Q?LFOBkB+EUpAWDQIEIYj63qEb77fmhoX8L+LswwblRuz2AuzsbnfzHI0/fH89?= =?us-ascii?Q?CNUrSgvGYsf3nntRuRY29VebcuGkNLH5zHvAqpiVcNl2TzgewrYDhDocjPDX?= =?us-ascii?Q?VLtPUbJux3Q3XI6fAF9W8iD0+tjbjYoJhZEuO8rBZy5lKhPGp8Kl+UI/ZPlX?= =?us-ascii?Q?UC4FcmXVj69uYeAEQq2xyGGhcYPlwTE3fA7zJNuclbNVFdpXX69wbzhBu76X?= =?us-ascii?Q?xxz6iXMgj6wAKgiCVfVfyVAIZ3Wi8We3q+F9+WSOodGpJfc2rvEwR7IwoI86?= =?us-ascii?Q?OZPuvVNP6QnIkPg4lNvf2LNkLGb25ijKhSu4lefXLNK+xAKJMCr5Sc7FH9MU?= =?us-ascii?Q?GJIYboZ4p0VekZLp1XLZ59I=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74c83567-83a3-490d-5f5d-08dbfbeb767b X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3537.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 14:54:52.8389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MeDaw9DLC3kBZWv7lOowR5ZlnkddM5of9zcnjg64ajZhvZ0yYBuO3NIvZYi69zDCOMvKcun35nRHJzHxNYmDvpmzRVaLxZVOw2jkKwvkQdHHUbblVeF78dO+URLx0mGz X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7131 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:55:04 -0800 (PST) The ltk050h3148w variant expects the horizontal component lane byte clock cycle(lbcc) to be calculated using lane_mbps (burst mode) instead of the pixel clock. Using the pixel clock rate by default for this calculation was introduced in commit ac87d23694f4 ("drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc") and starting from commit 93e82bb4de01 ("drm/bridge: synopsys: dw-mipi-dsi: Fix hcomponent lbcc for burst mode") only panels that support burst mode can keep using the lane_mbps. So add MIPI_DSI_MODE_VIDEO_BURST as part of the mode_flags for the dsi host. Fixes: 93e82bb4de01 ("drm/bridge: synopsys: dw-mipi-dsi: Fix hcomponent lbcc for burst mode") Signed-off-by: Farouk Bouabid --- drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c index 6e3670508e3a..30919c872ac8 100644 --- a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c @@ -326,7 +326,7 @@ static const struct drm_display_mode ltk050h3148w_mode = { static const struct ltk050h3146w_desc ltk050h3148w_data = { .mode = <k050h3148w_mode, .init = ltk050h3148w_init_sequence, - .mode_flags = MIPI_DSI_MODE_VIDEO_SYNC_PULSE, + .mode_flags = MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_VIDEO_BURST, }; static int ltk050h3146w_init_sequence(struct ltk050h3146w *ctx) -- 2.34.1