From patchwork Mon May 30 16:07:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12864727 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 D4558C433EF for ; Mon, 30 May 2022 16:08:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B900610E3F3; Mon, 30 May 2022 16:08:24 +0000 (UTC) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2010.outbound.protection.outlook.com [40.92.18.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC1D510E3F3 for ; Mon, 30 May 2022 16:08:23 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVqtkgha+dbPqTnhwLyyVh7FAzfFMk/0+NBhYxfbyW4T7hJ00owxEjS7GAjYPUy64OTvtdkRBBxdfmPtcRdA6HHeBifk5W52G/THy1rvR0n3zBnI/eeM2B6VObM9J+3hBEdrjBmv81nkyk0nQOxNH7HFtuwTb5zFBovSXzLEpfMCPcfgSFg2A9TWOZoE5CMJqW1IrI+BQWvONfe8Qu10sO0ju4GCoU9zswVB9fwg7IgcrgrOpE+6pj1cFj7DNcF3B0bblaFJQQwF2fmufzgzk7ixB2tNyAG92SMV7hjltr/eP2WzxQdKcqbG5zrhnZaL15fAeSw11fl3b6/ygeo2ug== 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=suDOP3FDgsbk3lo037gMex3JtVTcUC+7mu1TUSYdvZM=; b=DzKjz3lotJpWqfcwKoNArAKSxmoQYS4EL4DrBmxnK10k1ebUoHo7JzVW/H32uWxMcgwOb/zX8yO4O9AhmSXbxdt/IK57GY66LdWR4ZaBwSAvz3hnIpDA6HHN48z8OrRTN6YpAak2Fks902gww7fXXPtWomiGnAdCb10d2/m4VYvV01OfMxW+lJTX/rnRGT24FG+GbrVF2FaI5k5YmgZPdVN/irU2TBJCzYMxTrQTdo+kWIDezJ7O03cL0lloEp4J9e3gNcP60+5WvN8nFjdNp9aErkUVhD/5i5VfnZdVaxG3zSMxKDUC4A6mn55G7roHrXfKi7gfsSgY1k36p+sBxw== 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 BYAPR02MB5880.namprd02.prod.outlook.com (2603:10b6:a03:11d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Mon, 30 May 2022 16:08:21 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16%8]) with mapi id 15.20.5293.019; Mon, 30 May 2022 16:08:21 +0000 From: Joel Selvaraj To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Stanislav Jakubek , Shawn Guo , Krzysztof Kozlowski , Corentin Labbe , Linus Walleij , Hao Fang Subject: [PATCH v3 0/3] Introduce EBBG FT8719 DRM panel driver Date: Mon, 30 May 2022 21:37:50 +0530 Message-ID: X-Mailer: git-send-email 2.36.1 X-TMN: [UF0Zb/hjgkyOnAsunSFINw15siQCBqAmyQ0qhmI3GNmUUSiBvAxAwIyxPGZY5ixI] X-ClientProxiedBy: PN2PR01CA0066.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:23::11) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: <20220530160753.100892-1-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 23b5eacf-567e-4bca-82ee-08da42569e0b X-MS-TrafficTypeDiagnostic: BYAPR02MB5880:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fopcoA9U/zxWDysiYd1/g+L0jFjhoMSUX6NIvrMBia3AcYf0L9yiXGT/NPK9cwUq/deUFkGlUcHVCVCakptKu0+hEkGurL4wFhKkSc03sfJHlwyjQGhlG5JMZKp4aNOAou1A2oMbqbvdmLO2i2rRbQUkVplwoSTjbI7qxRtcjwMv5XxXKZ1QrcA1G9z6NYvox6ShQQow36RVnspq6drcwfCuXKbhQRvA+TVE0Nkuj3KFLJCRjQ8yHljbY1tQFXou+o+Qgs86EmM8hE2WSwW144W/7rtgr7pAIHza47Q+eLCXU4XsdTgukDxU8bJHJfxPyhU3wX7O6AzgQg7woRi6HG3kNGHCH2K2Oh22cpNFNBerZYqefK2p5iXxo4G1NdtmhAP9vB229WMSmNPbX4UNW9rfXfo7MXDvw1Vsb2towt8dQ9BGd7gs7j8rUpauj00T/WLAClYNNm1aIet15U68mRYWo0FZ+/yrwkRNiiF0B/omUP7iybbunCey+3OFSTqzuWFkY3ONBk41CS2GhHYRZDISqd8Db3FWYPr8bpA2w+yqiMJvVl+CO5U3V8vAZbJJW2GVxWbCOGfLV4LRj/DSOx7fQZkHdVQQhHqZmZP2CmjYqi7RUNW+9BhAm0tovnge X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xzc5vpqr+uLB9JIZ8bOiA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nz5LkiMBGd4/0RteUYuMKgY455TJW7+nEWf53WpbLfCQ1aQ7y9BfcGNbHXaYLkYuap6qlMAki1oN5V8rpV8gbTwMiDbfOw2w+bsXBsWqKl8gQbqIZTcLhMYPjwRLdMFramA8pwSoN7aYbQCDh7RPIsJP2xznoZTNGiesXvcv4HAWJNe83dDHFRmg/AYX9B9Cd1XIvqSiOpp7E50QWg+UPd50HepoF6HUooOQP34GMLWiwjeQp3Bk8JQJQ1/OxCULOdH9+GnZiYT9rri6QcE2VsKQttfjpYUG3UoavrFkQpPX5ZbZ0dRz1rVx8tD6XCOMAJAg44YYd6lp6ebizqG5zeK5ULk5DT0IRQLV/JuMggGfV9GbPYzz8rzpGT8vKvn18JlskHRXr3UA== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 23b5eacf-567e-4bca-82ee-08da42569e0b X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2022 16:08:21.5958 (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: BYAPR02MB5880 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 bindings and 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. The driver is built using linux-mdss-dsi-panel-driver-generator[1], and additionally support for handling regulators and linking external backlight is added. [1] https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator 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 Changes in v2: (Krzysztof Kozlowski's Suggestions) - dt-bindings: specify maxItems for reg - dt-bindings: cleanup and simplify the panel properties - dt-bindings: in example change "|+" to "|' and "dsi0" to "dsi" Joel Selvaraj (3): dt-bindings: vendor-prefixes: Add prefix for EBBG dt-bindings: display: Add bindings for EBBG FT8719 drm/panel: introduce ebbg,ft8719 panel .../bindings/display/panel/ebbg,ft8719.yaml | 74 +++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ebbg-ft8719.c | 296 ++++++++++++++++++ 6 files changed, 391 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ebbg,ft8719.yaml create mode 100644 drivers/gpu/drm/panel/panel-ebbg-ft8719.c