From mboxrd@z Thu Jan 1 00:00:00 1970 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 777B4C433F5 for ; Wed, 1 Jun 2022 08:25:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C750B10E5D2; Wed, 1 Jun 2022 08:24:59 +0000 (UTC) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02olkn2039.outbound.protection.outlook.com [40.92.44.39]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76A4710E5D2 for ; Wed, 1 Jun 2022 08:24:58 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mfMjEBU9UZepZeKuQBGmSnz1AYr1piAPeOvkUuGvAlRs8dJsGPAIZD925D8MdSPPfnYtZhf+jQm/UEdfHhWONjPOvsWMaMu+Nk1r26doX/fFVZ3lHfxBZh97ick+6kQ7GBukk2B1QpsNIcoqBvVJ/kEgx+vkPYbQ95TO8T7wtuyAoBLvtvnpXWt4UeIRH2DSnPzmp2giuObO0hEWh9hiqz2jROjVE6PDPEsZdBUAzMus92Ivjbf3+MxBXHb1JbQolcjOaa/UXp2fug43scoyuwDB2AAYOkPZkAUO8kP7Yf+NnX/emVQqNQ10xN1o0xtCw0cPFHToU8dmT38X7VZ33w== 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=xXkjgE7/ij07uCy1K4/F6HH/8sqap+W3ENNm0tkFWkw=; b=TQ43WSgZUIbRVnOCGvs/r+hlJkfs0ha0UrJEs/bimAgjc7YpX46bGiVKYGrh15ZyrLNXkoQNkRE9nKAVbYqs8I6BC4X3we5w7IJ7QjO6ns5bd+F+62njEFUZTaVKwAYdDLXtKdGj6yQkdqLJBIcrcjaZiRgBI0lJoAlJqtoDGvZzmcGuCoJS9ZBCKK5nPBtZap0MNI6s3DoZzzw76dV3T9EACJuhuknHoWwM8n878ylwmbkScn4/TTUyvZlBdXueo5MVgww5mtuhPZNTrV/S4OUokoWrT5V+k+gYWCfI5kjHk3m5Gce16s3SdSj2UpMWDVzMrzuHlgn9euPcrXjeeA== 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 DM6PR02MB5708.namprd02.prod.outlook.com (2603:10b6:5:7c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.15; Wed, 1 Jun 2022 08:24:56 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::e179:40c4:4269:70e]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::e179:40c4:4269:70e%5]) with mapi id 15.20.5314.013; Wed, 1 Jun 2022 08:24:56 +0000 From: Joel Selvaraj To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Stanislav Jakubek , Shawn Guo , Krzysztof Kozlowski , Corentin Labbe , Linus Walleij , Hao Fang Subject: [PATCH v4 4/4] drm/panel: introduce ebbg,ft8719 panel Date: Wed, 1 Jun 2022 13:54:10 +0530 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220601082410.55266-1-jo@jsfamily.in> References: <20220601082410.55266-1-jo@jsfamily.in> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [Du9j9AVJW4SvXVEPnvA69nHJTjXnhSnZ+5qevClyRqgRDGbbqPzeFKhSPnRwqkZ7] X-ClientProxiedBy: BM1P287CA0002.INDP287.PROD.OUTLOOK.COM (2603:1096:b00:40::13) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: <20220601082410.55266-5-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 63a3a8a5-414b-4be7-3a22-08da43a835e3 X-MS-TrafficTypeDiagnostic: DM6PR02MB5708:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: seAbeUOLfwnYhtWzYjmyQiabYbo/lypZ5v1/oJqypZYolUEQLWvoZPALgWzFPhtmuom+ufZ+1Hg8g9AFEYix3RXooJuLxbkohft5c21F7R0Owrgso3vF25n0o4BxVMr2rTXXujTAJkobPewmBWPVMlRfPGWVi/9DGJ2bekHwhwqv5cZBSs6J8/6xFayPUSfnYB101I07IfkiytqS8XTF8JMBqHuXgGTWPdwkI9AWe3/deMTgPn4kxPc8LAwU9CgsyRSxsdV5tueuYAdSIM0kObquBs+z2Mm8ZDI1cVZS3SINm08FMgy3S8patlAmQLU2m/hXDSgupkzXKRUK418mPfdqoQlMPhK704l4HB6OGEugqotD1LHhi83qBVOAdJnAH5TLkigntvfruj9qo9qzYPaj0iFRgGf1iTKmSAD1TNN4asNVm9i4hS1NEUxKQBDHkKhZkx2PReuFbSS3XP5wlUIu5HntUpwkbOV+6LzYfkotE5lo7PsCyukZO3y63Ye+nCdl4of6HY6/AdzMYxYf+WQkk52qYKtvC0r3PArEvUokG4uEXf/zq4ZTdnF9NCzkgDN05eANWaVxqK39tWhfkQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+nxIor0q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= =?us-ascii?Q?yHMygJtWsNSzPIQ1lJreZW/II3jxfbC+G3zEz5NHfdKwC2VtpuEQP1tPa6IW?= =?us-ascii?Q?0wqPswDTaAszhqiiAZWxcO9ShfjZPDQDYWsPwXPzly4rJS7UkdKn6iBG/bU7?= =?us-ascii?Q?uoIgBZBTRqQHkaRu5LJKEfXVVP+QsfgHvXNNmuL4s2mI4FbJFU41N8je2yDx?= =?us-ascii?Q?R5n9OIC8MYa60gyWK2UePjj1KUBD7kcUs1LsRjJ0X2RqafuthFl8wxMR26xF?= =?us-ascii?Q?JV0XKa0niq7qwuW0rZ+WH0qh/HKlajvTqLHrlVzVBHmJfz31H6vLXqkVrvKq?= =?us-ascii?Q?6Je9GQZ2/Xqj9QwLA4+BO9wuNpbGfCv7va9DCTQivTE4IETveyOj04+0sAL2?= =?us-ascii?Q?7L00gDVqDhdVD6CYRPoZ5LtxUqwH7T3/qZExL3EpGFZwxVYC4TdEc85AitiC?= =?us-ascii?Q?OpmSrEr6iad101wbl8g3QwMQZkjeBKM8CcNvHRtbhchFrA4lDE2prSuDNQ2a?= =?us-ascii?Q?ktxyum4ocADBDs0lSaFfbch34or+9mzc9mJxyb3POshifSb/kh/9xgLUlUBN?= =?us-ascii?Q?zoP6Q7ToJSviIuatZHJ2fR0pNjFouiC6U8lCaQsWtwf+ssDCX0qB5Q=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 63a3a8a5-414b-4be7-3a22-08da43a835e3 X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2022 08:24:56.8083 (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: DM6PR02MB5708 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 --- Changes in v4: (Linus Walleij's Suggestion) - Remove the driver specific dsi_dcs_write_seq macro - Use the newly introduced mipi_dsi_dcs_write_seq macro instead Changes in v3: (Mostly Linus Walleij's Suggestions) - Removed ctx->prepared state variable as it's handled by the core - Print error in dsi_dcs_write_seq macro if it fails to write - Removed magic power on sequences as panel works fine without them MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ebbg-ft8719.c | 285 ++++++++++++++++++++++ 4 files changed, 304 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..386f8321b930 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ebbg-ft8719.c @@ -0,0 +1,285 @@ +// 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