From patchwork Fri May 6 12:17:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12841038 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 F2D65C433EF for ; Fri, 6 May 2022 12:18:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2924010FD42; Fri, 6 May 2022 12:18:18 +0000 (UTC) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2109.outbound.protection.outlook.com [40.92.22.109]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5AC4610FD42 for ; Fri, 6 May 2022 12:18:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jebzlKtcI2i8bLa4Xf4+M2iVfiZ8awAnr80uem7cJgeMGQ6/RkZ/yYgzZqqYx4fYR6AYdTbT+2x4akmIVQ7xzrC8ovcL9PSNh1rDudMauMx551zqERXyLGU6v9sM3NoClEVGXi7DxKmFacDCMjvy3llX2VSLwpaljoQdKkQE/d8Oz3GeiGlECpTXnyZfXqvKTNJ/njNRPxP41Yd1aMbr69zreatBMwLDOlqMxWugk1qpbSK9Mezgwz2PlQWu97RGTfLxgeYemKsdHDZ7GiRG/5Rr2Gu3ha8zLlkyJYFypOTQaRS3i0FWEAFc6rVDIRBD7u0YEErFOI25qbpmchu22w== 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=R1zxudV9RWcSUABHdpd9uGOMgXFFoVYuAsOgLHa5Yxs=; b=Y1tM3pohgGGGAqWzbEmlQGd8EJB5ThzoTw32HRvziHp5SnIJnWC4B4LFvh1YhgG5gABAbLx0HJeMbcVuxCYdf0in/YmO5x/V9YIInbruPVAhJ+L5IF79x7i8dKpdOjTJ3yzZo18iHgjhPeY9w3mQh22/Q1qmiotFScIGT2KrboK7W2KT2i1Yar5sMs3xP1mOacAz/AEhyc1KxMJDFZGSM+pLZ7yypo7H7n1r8Kile+MixioFfKGt1kJLKz/hiHz36vBapHOnF4jidHdy3lBiyD+demgSxHwaSPtxlBDNjIGqy4VlgvCtnceg0d91WiL9lPUBqexpgsjinnGJqmjUXg== 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 BL0PR02MB6497.namprd02.prod.outlook.com (2603:10b6:208:1c2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Fri, 6 May 2022 12:18:14 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16%7]) with mapi id 15.20.5206.028; Fri, 6 May 2022 12:18:14 +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 3/3] drm/panel: introduce ebbg,ft8719 panel Date: Fri, 6 May 2022 17:47:35 +0530 Message-ID: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: X-TMN: [NFJNijr3/i14f6O7HuFWQLopueFFiYMUpDvlc4KHJXwo6gA7ur8IS1zGL0MhwNm8] X-ClientProxiedBy: PN3PR01CA0135.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:bf::6) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: <3dd8849c9ad49b0a91ba7b8e98a96a7c1e1b8c5f.1651835715.git.jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfa6c180-f063-4ca4-bcdf-08da2f5a7e45 X-MS-TrafficTypeDiagnostic: BL0PR02MB6497:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j7jDapkyEhZMbAyotUZHUkrkArEDXvM3ikWGTyTOk0z2Z8E+f9A6hFOSg6BqokqVRXEE79ZFI+jBdG6IbiegA5ream41+idfWvYXI4mbW+57gmgs4iLRxJoktGondSi5qfFf1C0WHDdjrFNQiHO3xdC3KyRJmWhjJuJCBs/yh3Pn6LwSc6ow2MwuUPIgvwGRZE5B4/syHGXyMg8fSmnYOezFZiYdX9olgExdyMMEvvgOD5LAjGQLJ499O9f93DRpOjl8xJp3+lUt+B4PLav0ZB1CDKJl9ciPpBqjZCZxvGbztn6nrZ8k9tReL07gr2L3P7O93VF+AiXQw1iNai1Vp7ZqJrBZnEa+HznqopScqxgFfyfFkRvU9iSGDT/2YByT3BhWO8iF0ZfEQPxasIhBsrgUuI4/uJG6jP8eO6nkaPMH+6vDiPRyTh8MOEsBsZH0ofVk4Y6y+DwRS9PpXBYEBJr+ieKGLE6z66BXFSOum7dgJS3kUt0N6qnjmQida7ocYrb0EfUScwszSVuzzc8iEJGEfVS93MjKcKjqJcibFa5MjKwsDrIocI78DCe1W4stmBO7pMT1dcaUtFVGpNkErvCgV0q2t4yV0tO0itank7XhSxx+XXUyWNrdqr4QcRZo X-MS-Exchange-AntiSpam-MessageData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fyKlbLQJ0/8NhzTS7HfJXXJiiWwF6r976aYgAlgqmZ7q+QSEHZAYr9VmYg1T+47L5LTL1h+uf6VpVO7PN1/zg8y4EcNQ5wYMmCV0zqTsE5YBDcRxn7ktCfdaggvVBiBOiw7bEzPN/N4QG9smmNTOlRXWOhWbmQunvU7tBHLI2qWTPQc4Qp9fekKPdM1Kb4jSQwZwFw7jRwWGgvYPPqp8tj/W1fDNHSnAvBpxAUavxMtxxk4IPgr7uY3IcgiunWXWQiebGDlihexdWWGOBEjWUwnODguxAe/71WsBnuBAqgMVkBJELYTvn3yuIqM2Fu+ub7we3maEnYIFq1xR0UlZlTejSUHeMNKWsuS6HInFF9YqE6A9hP+JCxW1afKwqaLuRY/KRPyjLYXv9Qj8rsVtCsSXp1eUzkXZKQC/YFKlXBRlBvEoJuf3uGDnaqhDoCXIgPDgoDA+XC5HxA== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: bfa6c180-f063-4ca4-bcdf-08da2f5a7e45 X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2022 12:18:14.2470 (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: BL0PR02MB6497 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 --- 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