Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4785521iob; Mon, 9 May 2022 01:20:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrZYYc9iJF0kSKsnnUjRHMpd/VP9tW265VprHhKq+bzXlR6KZd21hNlVjyNl9Ux5kYiu+O X-Received: by 2002:a63:fb4d:0:b0:3c2:6049:6e22 with SMTP id w13-20020a63fb4d000000b003c260496e22mr12667371pgj.2.1652084455127; Mon, 09 May 2022 01:20:55 -0700 (PDT) Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e7-20020a656bc7000000b00398df5b29a7si14995902pgw.878.2022.05.09.01.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:20:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jsfamily.in Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 755D21E2504; Mon, 9 May 2022 01:08:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391734AbiEFMWG (ORCPT + 99 others); Fri, 6 May 2022 08:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391714AbiEFMWA (ORCPT ); Fri, 6 May 2022 08:22:00 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2028.outbound.protection.outlook.com [40.92.22.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B81A5838C; Fri, 6 May 2022 05:18:16 -0700 (PDT) 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 Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Joel Selvaraj 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: Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?N0kDA5n7VSPtO8WIt8qW+85Z9ojv75LdsfyObB//fUggEBKcv4J/lVRqxLeG?= =?us-ascii?Q?EJhfjIR6WmqeeEFU5v5YaJL1nmMFO2HaTqsDw16c92TPx/dcVaUL3ZII1ZhS?= =?us-ascii?Q?saDNiHL2I9QiAtkovqdsgluZCFqoX6EzR+2g1poXlFujvRSBuDWjUOY6slAo?= =?us-ascii?Q?LbVsfmFsWIqS41bfHzNTM/JbM7zPJL0/3E6mWgH3t4FHQsApvdgIHXDEtYAG?= =?us-ascii?Q?v8gP4I7CZpsRZYyroSDuudqFjqcI7uwK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= =?us-ascii?Q?DcRxn7ktCfdaggvVBiBOiw7bEzPN/N4QG9smmNTOlRXWOhWbmQunvU7tBHLI?= =?us-ascii?Q?2qWTPQc4Qp9fekKPdM1Kb4jSQwZwFw7jRwWGgvYPPqp8tj/W1fDNHSnAvBpx?= =?us-ascii?Q?AUavxMtxxk4IPgr7uY3IcgiunWXWQiebGDlihexdWWGOBEjWUwnODguxAe/7?= =?us-ascii?Q?1WsBnuBAqgMVkBJELYTvn3yuIqM2Fu+ub7we3maEnYIFq1xR0UlZlTejSUHe?= =?us-ascii?Q?MNKWsuS6HInFF9YqE6A9hP+JCxW1afKwqaLuRY/KRPyjLYXv9Qj8rsVtCsSX?= =?us-ascii?Q?p1eUzkXZKQC/YFKlXBRlBvEoJuf3uGDnaqhDoCXIgPDgoDA+XC5HxA=3D=3D?= 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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