From patchwork Wed Aug 21 21:52:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13772137 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 4E3D5C52D6F for ; Wed, 21 Aug 2024 21:52:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C059210E6F2; Wed, 21 Aug 2024 21:52:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="WWBaYgE1"; dkim-atps=neutral Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011002.outbound.protection.outlook.com [52.101.70.2]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7ECA310E6F1 for ; Wed, 21 Aug 2024 21:52:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cqIIajOygrfM11wuNK7Nm7h6HJ05BMLhW/60gHFXytZCS2NA+13msHsN1FpSH+yUFdlE+cFA/UOGqf9HT/sOgR7T+E35JKK9rHBoDzqdg7hjAdUKo1PMopoJYa0IX/gheeehYyCQJ6cGkyxiwQ0PtGi0WpfEjvfh7NDOgsG7ASes9J8zZqUUP/jhQfH9vlMgM4aCx50W8tzaA43asoS3+74mEnUq3NM1iqllMEbXaiJXp70Tcn3S2g9d6JQpdNlXUAyOtFlveBpjCRZEReS96pN2LI5KG5XGGylYpjNrQFxK7g/VjvqYzmEOO+26jTu3U2fbiefbHIxyD9TVoajNSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=iqPBA/0UC8hgauW8SlEyUHAs3+DkqvYG/BpxNM94zvQ=; b=aKNn+fOXL4bAG1bjCOavTPKFalKzokjxN3izwy+tz6BM6ghiZXELXzIqwHdNvw/7MxTCaVjuHxIXqe1KfIm5qjLqoXST0iksD2Q0asYTCDQ56SR2F5QKhbzQMo+aAw6fr5/JJj985zX/JEkW/h6MPecAEzY3C/crCqX2nQsiTX9xBfKBTbVEVTIR7lZTORKmlxzvZOMCBk3GH6raxij3jTwqgpjRzCjcbztMCctSiWh4UXR04OgtP1kYwpfmg1sYjm8kTL8Hl5DEv1vUSr4O0V5aKc/2u6EBuhvlUZp9HsquMdZX1AqmU+UNcxmgLnidtneA5vWih1wHiuc5g7iRaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iqPBA/0UC8hgauW8SlEyUHAs3+DkqvYG/BpxNM94zvQ=; b=WWBaYgE1t0gxkxegXBN9pvMDzQ41vUqKCE2KHnasWuDYsVJYTtkLXcfADtglezc3IxUZdLmRcWRk9MhUC58HqkC9VuNI5BzreMX+EwkFNCVmDBeji2P+4HHNLFiet+85nQiCwtRntl6VtGioV3pF++IBaa+uvQ06ncEL3e+seoy3/As7g3RJY3SxG9Dx53e9l0bf/QaGxMMfNSYPKzBUR2xWgEZod0GyX5UwT9c/MVr6OgBcX4LUe19T16+x8Ht0jAbboo9UUkhfBYKwyU3OXeeIt9rZ0I+wgydUMRQwLHs/nRXeXPo5v2gV4dRjOaK0Jfh1E2wxzbnDTCIC+dmT2A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI0PR04MB10566.eurprd04.prod.outlook.com (2603:10a6:800:268::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Wed, 21 Aug 2024 21:52:36 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7875.019; Wed, 21 Aug 2024 21:52:36 +0000 From: Frank Li Date: Wed, 21 Aug 2024 17:52:12 -0400 Subject: [PATCH 2/2] drm/panel: simple: Add support for JDI TX26D202VM0BWA panel Message-Id: <20240821-jdi-v1-2-6e3ce584072a@nxp.com> References: <20240821-jdi-v1-0-6e3ce584072a@nxp.com> In-Reply-To: <20240821-jdi-v1-0-6e3ce584072a@nxp.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liu Ying , Thierry Reding , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li , Dong Aisheng X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1724277142; l=2187; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=GuJ89DU1Af2gXckvRsJT0KI9BvHs7/0RqeoKZOagbCI=; b=dcgXqX0Uz3vU0WJYTVMHNUPCVrll+9kTb4p0UtUsSeg/kA8kRwTf89OgXOMLmIXQMbQoD5AMk LXfsko4k8fsBsTK73z1s9qaQ+RM6anRmeALovUDaLWXsbhCdSzKAo3u X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0080.namprd03.prod.outlook.com (2603:10b6:a03:331::25) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI0PR04MB10566:EE_ X-MS-Office365-Filtering-Correlation-Id: 050bcb11-649b-4be6-490e-08dcc22b91a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|7416014|52116014|376014|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?K1lsK+yA7eRUTSY8j2uKjOeWDhtfV5M?= =?utf-8?q?Fs6b87XQdql/HJuaUu1cWbs5Pj4+Z6i9aKKWNUkDRPvCAQqCuvgL+4qT0y/ZwBlto?= =?utf-8?q?GelM8VdYdBkRc/EaWaMaZaf5cHGv/mwkFPM5/AOgfwGg7/GhyXiQSdGcE02tRnJLh?= =?utf-8?q?jbqEhZLeRNFR1Q4XevhJOJ5lJ3wceo4sOnL3Dwr5yu97R9jqoZB2DkR5oIq41pD/C?= =?utf-8?q?ndXiFixMUxLHJA8AY9VhxzB9LtY7Qi4fI8otYRvfFEFB2SS6yU1YDQ5zl/8wY16To?= =?utf-8?q?+ab0qfpTr1JvG20Td9gTQLwP8nA8DIzkEMJE9HcdZsglC/Z2UbeC2gKq3pQxx50sZ?= =?utf-8?q?kUHOf5R7etVpwFRGKXPEvaVAlHCP2+4edMDZvlnEkINMZ2enrfxNpL2K54z0a00nT?= =?utf-8?q?PywijlMKeNXflBSUnHBKpCSpE1O0I+rDfZjLciBRaQNzlKzQHCLkC2eijpaVrjn+e?= =?utf-8?q?T0NRi8WDzafF3aq4m1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Lzw0aUAcKv07RMbgL3H3Hyg=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(7416014)(52116014)(376014)(366016)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6HwbX2e0OA7eNbTRrJPJYsHB0kuZ?= =?utf-8?q?bJcPTIScIr4FxCPb0RyDm4h7FLPeprgBH0IYfwo/LO9esb+ig3omsgkUnZPmjPStV?= =?utf-8?q?skYpJblqu2lAvXmcgPkR+83vDwkJ0+9tGSQgmdJJpS9S3NwLZCLLNATlUhGAr5zJU?= =?utf-8?q?5w74kALaryI/5J0WcFhX4VuZhZQPsJuHs1PQES1BET/1PIhiDMYbSGLl5I3kXfLPX?= =?utf-8?q?0G7kQUW6v4d/QVSPaWe9lOmnj1N+f2Bg/ebrfMb4EBEUYs12xN9YbIw2EqmjcErDh?= =?utf-8?q?85GG2z9h0pF75HGutL+hpqnk1+dlQnSqBDXhdUk2sERp2nlAgkUvE3aZlcJ0Uigm2?= =?utf-8?q?09eStyBdZJBeEyzRrwgfInfbvsj72sjSZJJhQi69PdH3zBbhDic2hwjxChlreSXcS?= =?utf-8?q?ND7V4djhrqpH1dwY1R5+ncPBWrha4TKsxWbCyW7FyXs4uDmQ1d4sgOpLgAS7fSBQm?= =?utf-8?q?rMHltxP8QTqH76t3aaEL0jQ5qEO95gpGDKvHtLZ0i3T5jm1+SsHFhBUbUMvlszaBP?= =?utf-8?q?MO8IxSnIOQIhw02nBn4lxRp82JrpPyEVewk3BusdMHwJXHk4Oo2yCnmgNp0pgU1kt?= =?utf-8?q?A7hcSTaoGdY8adTqYFjEI7AwYoHedcCGKNFTIr/ucP23zLrTE50ZQC5gc2GO8ZXrv?= =?utf-8?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oFmbqqgf?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 050bcb11-649b-4be6-490e-08dcc22b91a5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 21:52:36.3417 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lpqLz+6zrCzitHmv2+jTstrPU7NN1Huc2PBIRHUEQbNrewbQ/+3eTophc836UNkc1IaKlRt2uUdo0c3mr0x4pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10566 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" From: Liu Ying Add support for Japan Display Inc. 10.1" TX26D202VM0BWA WUXGA(1920x1200) TFT LCD panel with LVDS interface. The panel has dual LVDS channels. Signed-off-by: Liu Ying Signed-off-by: Dong Aisheng Signed-off-by: Frank Li --- drivers/gpu/drm/panel/panel-simple.c | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 86735430462fa..7d975749d84b4 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2769,6 +2769,41 @@ static const struct panel_desc innolux_zj070na_01p = { }, }; +static const struct display_timing jdi_tx26d202vm0bwa_timing = { + .pixelclock = { 151820000, 156720000, 159780000 }, + .hactive = { 1920, 1920, 1920 }, + .hfront_porch = { 76, 100, 112 }, + .hback_porch = { 74, 100, 112 }, + .hsync_len = { 30, 30, 30 }, + .vactive = { 1200, 1200, 1200}, + .vfront_porch = { 3, 5, 10 }, + .vback_porch = { 2, 5, 10 }, + .vsync_len = { 5, 5, 5 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc jdi_tx26d202vm0bwa = { + .timings = &jdi_tx26d202vm0bwa_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 217, + .height = 136, + }, + .delay = { + /* + * The panel spec recommends one second delay to the below + * items. However, it's a bit too long in pratice. Based on + * tests, it turns out 100 milliseconds is fine. + */ + .prepare = 100, + .enable = 100, + .unprepare = 100, + .disable = 100, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, +}; + static const struct display_timing koe_tx14d24vm1bpa_timing = { .pixelclock = { 5580000, 5850000, 6200000 }, .hactive = { 320, 320, 320 }, @@ -4829,6 +4864,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,zj070na-01p", .data = &innolux_zj070na_01p, + }, { + .compatible = "jdi,tx26d202vm0bwa", + .data = &jdi_tx26d202vm0bwa, }, { .compatible = "koe,tx14d24vm1bpa", .data = &koe_tx14d24vm1bpa,