From patchwork Wed May 11 05:28:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12845805 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 22FF4C433FE for ; Wed, 11 May 2022 05:28:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 47E3A10E8CD; Wed, 11 May 2022 05:28:58 +0000 (UTC) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2061.outbound.protection.outlook.com [40.92.21.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D34210E8CD for ; Wed, 11 May 2022 05:28:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I8sPoQJhL+zoQP0cz66vcJ+Y3o6GzJYfFIMKc4b9zu7xTlyd7RU4NKpbKKxae3IJlEffe+EAM8CxPkKHUn2mWJr7jFs5vIh8TvimY/QT/dDWGrdNSoNix9/mPal2ZBFz4QYXZ+8a3fqTx3ZN6K/oT2wFrRewB0xUNI8efEdcOLugjwRPbZ29B1iibNFAsJCsULbeYt0VaMr2A9jnhrQxHcvo99JIpnlHuITwYSPK9QAPqDw6F97ALPEiacZzyqGLEnxr4sS4OVcsV5tCbnLYPwQ+45JQaAYsN2F7QZZxKnHedwsrHLAF5xYgFO7oFJvJDvsagj43RiZJvyctYPrC+Q== 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=jr2+nIJXsubpn4lXODYpyzZb1j6JxLYIRAvc08h0dZE=; b=BaJxSdrjQv3hzBN+Lf6ekeQ+Pm7d6ckzrkjfJi1aXIB5s6eN6Yil2WPqDHJKf7x9kDOPQ1Muy9pYDy3/bw1xPLiLBtodVzD/rOzUX5Pn8vb9+TVyn900JK4SNw6JG0eYmGl8BRQgJu5bzbKqGomJquYcNexXfxFFhLyjlzpI2hGdCStWdigRVVhEU7cV6iQtsgCoTHN5nsiyxKUOOH6XRmX8jkniRbTzNr1n7r3pjhDc584XhCF+tgtSroUL1lFalcBazsNkMY+BYO1Ez8buO1Wk5syIA3TVW4ugOGRCwAoJ9acckTo6a2bruKc2KFfXkffAY6YrIqKaJKmUgxXhTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) by DM6PR02MB5787.namprd02.prod.outlook.com (2603:10b6:5:179::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Wed, 11 May 2022 05:28:53 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16%9]) with mapi id 15.20.5227.023; Wed, 11 May 2022 05:28:53 +0000 From: Joel Selvaraj To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Shawn Guo , Stanislav Jakubek , Krzysztof Kozlowski , Corentin Labbe , Oleksij Rempel , Linus Walleij , Hao Fang Subject: [PATCH v2 3/3] drm/panel: introduce ebbg,ft8719 panel Date: Wed, 11 May 2022 10:58:11 +0530 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: X-TMN: [bR7lAE48UvFEVokb48T6e9aO8JyyzZnWh01BVItj4VS0+hD9cMxLjeRdUthABXWg] X-ClientProxiedBy: PN2PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:27::7) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa8a5568-834a-41d0-b4d0-08da330f231c X-MS-TrafficTypeDiagnostic: DM6PR02MB5787:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q2Yjljpc1/aQlQaHQ6og2m+qa107RZn1fY31SeMcUFm63H2pMoxvMUvXYbxOxprG+ULpEe8r6FQMsLX5YS2masM5Z/V/VU/OabqSncvpqNnf5By9J41Yn9JlOLaOy/K7eAokCyY9aHBqD2TaTCvxSk62CXsSsozCGQSm/do9Wshi16cZx4DIskSrBlTOdY1puK6Sl3CYmReDJcmHKD6PLwIDkGoSIFU3RHFgf8MCG7pIe0tSrybdXFWfLXFycH5mMnasRjLEP+KFWowbhoDt+JC22vJ1BssHrIQKm9E6JX02kLjJ9FtTfALfAe3KeqOrHpcbONt7BZl7rBTRk3CHB9sq0LX0qSJJ7QiQkioe4gmVdMmB5MK5VtTBduB0Xd0aj3jrety14u6KhGRSbBOR0LG3sJAMcBpXaQbkIp1cZE7qRYgy9jYmOvpTfo8MCwgdiiLKPryen7Bf8exMeC4Y3Zc21kU0gqqPcE4fY5rq8dq72NMci7Ktmp7rFZv8fEFYBDNOsoH9mPod7rxrpm2dsSGKML0hcsc8ZPWnv7OQxWhlgzVK30oZUg3Ox7ycVbzifeHlcKnWoNZMF4mXTZO8Nwmd1PnoQL3tOa4KAXV6m/UYAV4DDk5E27O6xmhw9FDe X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FFtkom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sua8bmTg+gNgCHeT0infyI493CaWFKXGxWoZyjw1TWojDe6KwAcXwnnTdZjQj0ULwmzIkD+kLuRedHm8/wCQ/efTiKUoiFu8zMJnNBLHv066tLBHrc3SKIfXJx9fu29FtYWESzd5ewSHHM4ZMleWoXEANnNEMJObJJ3MVuzT6SnHh03fJ+KLN0QE7no7Ac3thg+fYfdjRlhROJW4CzfAaSybbtBstapRl7O9wwuRMtRey97P7i31iJM5czGOQLdqQz8lPwlIsgRUrOZO+JSskqUbZFSYKo+yQF4spPOomtmulamk3ns51aQNzLoHbKydX7S3pIzOuaRQuX7jd4drhP/CdCVPDrvi3azWrCeBn8AAZNslRLn7GfJVJEkMmDmgQf3OfEGJVHT1iYReAGQnwMAQjqoR6fJGQ== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fa8a5568-834a-41d0-b4d0-08da330f231c X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2022 05:28:53.5143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB5787 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: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Joel Selvaraj Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add DRM panel driver for EBBG FT8719 6.18" 2246x1080 DSI video mode panel, which can be found on some Xiaomi Poco F1 phones. The panel's backlight is managed through QCOM WLED driver. Signed-off-by: Joel Selvaraj Reviewed-by: Sam Ravnborg --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ebbg-ft8719.c | 362 ++++++++++++++++++++++ 4 files changed, 381 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ebbg-ft8719.c diff --git a/MAINTAINERS b/MAINTAINERS index cd0f68d4a34a..dfd2c53aea00 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6018,6 +6018,13 @@ S: Maintained F: Documentation/devicetree/bindings/display/bridge/chipone,icn6211.yaml F: drivers/gpu/drm/bridge/chipone-icn6211.c +DRM DRIVER FOR EBBG FT8719 PANEL +M: Joel Selvaraj +S: Maintained +T: git git://anongit.freedesktop.org/drm/drm-misc +F: Documentation/devicetree/bindings/display/panel/ebbg,ft8719.yaml +F: drivers/gpu/drm/panel/panel-ebbg-ft8719.c + DRM DRIVER FOR FARADAY TVE200 TV ENCODER M: Linus Walleij S: Maintained diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 9989a316fe88..77176df2e2ec 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -114,6 +114,17 @@ config DRM_PANEL_EDP that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_EBBG_FT8719 + tristate "EBBG FT8719 panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the EBBG FT8719 + video mode panel. Mainly found on Xiaomi Poco F1 mobile phone. + The panel has a resolution of 1080x2246. It provides a MIPI DSI + interface to the host. + config DRM_PANEL_ELIDA_KD35T133 tristate "Elida KD35T133 panel driver" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index d99fbbce49d1..47cc20c1a770 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_DSI_CM) += panel-dsi-cm.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_EDP) += panel-edp.o +obj-$(CONFIG_DRM_PANEL_EBBG_FT8719) += panel-ebbg-ft8719.o obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o diff --git a/drivers/gpu/drm/panel/panel-ebbg-ft8719.c b/drivers/gpu/drm/panel/panel-ebbg-ft8719.c new file mode 100644 index 000000000000..abd54c4b0c23 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ebbg-ft8719.c @@ -0,0 +1,362 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2022 Joel Selvaraj + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + */ + +#include +#include +#include +#include +#include + +#include