From patchwork Wed Jun 1 08:24:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12866514 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 6962CC433F5 for ; Wed, 1 Jun 2022 08:24:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CCCAC10E3B3; Wed, 1 Jun 2022 08:24:34 +0000 (UTC) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2051.outbound.protection.outlook.com [40.92.21.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id C60C710E4D1 for ; Wed, 1 Jun 2022 08:24:32 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HavRjAlaaCHQZqc4hHIxYG6sfUILxBQztpy3gx3dYITi6QABK0g8zqmfDpn47Pc+Q4I3Wd+/1XjdtdY9tbjiW0acw7X99066Vzcbo/VKwD5OOO9QCZtgA14jUWo6Qwf/k7uKdLiAYXgDledbtjVvdswu9CsfzM+JC2ziLsDZlllvnGfttia30P7KMNouM5Cq7EB51ZUPCwVg8RtCAj08vRo6DwEBKU5JFBNSeNxyE47RmaUnHER76lyVTiQ51PS6usGmHx4mw4N3Uap0QpjUSCD4GcNQPTfMruaQxuafYnJv6+y6jyw8820OqKxW5a8E8srklHO+JjxwbXCS5MPnkA== 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=xqGdLFAzvjePfMfHM9s5YoGjwV4QexPwTUYQiypvDWA=; b=cZWd6187KTqxpF0askSeLmZStAR5B4lbG7VA/yHprg3TmC2So7bgtb3+pCplzVR+tvukHsBvAyulKw4U9fsf6wRXx4N74WOtVf0oBoM1PGc2zNVgg/WR9gguOtI2oB9VGMC7J9cw2Y5YSg2Wai476/qGxyC95uChLOWAAhud6YVLQfcPyT7ocu7nJ7Fx+25E0D/QUw3B4fOQhkzcxBLXwk8tIwZsvFCwc+4L6T18dfQYweYvLe0nDpBptbMJX//7xAduxdbTwSGmkOfndGI1Z74V1reNyR+WImznA/4xqBarvlx7QDpEp3x6tC+IYjFwYEQ1xNbP7WvtVwkzNIoQnw== 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:31 +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:31 +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 0/4] Introduce EBBG FT8719 DRM panel driver Date: Wed, 1 Jun 2022 13:54:06 +0530 Message-ID: X-Mailer: git-send-email 2.36.1 X-TMN: [UxYhGyN4r2QWaddhC8FxyygjajlImiEVO+i+u0XigaqnjVN5Chkd4gVvbVicufW6] 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-1-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f090ce7-ab57-4780-e915-08da43a8266c X-MS-TrafficTypeDiagnostic: DM6PR02MB5708:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3aEl3NY7XSQWZt1LrQmOxvLmTypU7Yp6WrOC1dsJUtfd+kc7UceCrz2WV51c/8edmoaucZefacRqFjeKbdv7Mse0N0OhkTZM3t57nXFqi8HrEKn8JoM5fY4yBuH51cAcz67nwHD4XV9cXCLx/PF9bp3tO0u+JrYWEseFu/uzmPy9US+Dqs/fNIkP1V3PRIkzy7CdTmhV491xVQyhEJdxmcVX4Pbkj4JxD9HlaJ7xCLhxAfUbX56xSyYNpWdDyDPvVgghf5V+kPcVRR62w5kvYr4G+LmfOBLWlINUAdoOadBbJBO57fmk384gKqWrMMh7coRzgpASyb6LBrITms1rcyRU87PMWOPbP25yFBotG60zMqG6OTEKhL1P6pBMNmsopz9ibkJsJ19yXRrfBhbYkPiIO9YRDbiNcavoIgSAkRFQgFtlrovt36xXiEtXuDdKHGS0v2rthDvNuC1fjUq76fuctOWCjSlaAYkLvSn4iucSGK8Pj2hBfrH7qkJG/C8lE9+2AdJogLgkASvW0AeBKFyWmPlFYV9PAQkMw3vGkM9ZjE4F3fvGJab8DUOCXyGnQv5iVMs0YzmMYGRvsZWThkDVmnn0ok9SK0Y23YpkZlJl85TTUqVGugOx7VKpDcqz X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-Mess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f0Q2E6RSIneUe4VY6jwRcipl72jfrCqlwk6lUoz0IyMBRqZBbHkV6AHuVFTokow3cfA2eqdSbK7ZUOIypqHWMEEJkMea8/Ls3eIyjMN2j+ul9gd5+iDt5Nf79lRUdnsOGSAREXjy6W2Wo3icUyDssB8PWZdQrlL2wev5kFw0wzHsUqDib2SE3RmouNq3C1+HmzwKcATSrv4capPIQ31ZQrHAhCiUCjWP9U6sF59/MJtP6Quc83IB+zq2M8UxtJnVRWMnu+JYUGs9b8R7Kb3rMz7CI244Jq2yOJfb1js+NPatwMoB647mJKrhTArHfELl2270KgtZNMRCAm0SA6OHVne2AfWbcyabvYbMDA1kmVl7wWl4nvCOuSUD7YvA9X6lmtSJAfp14Ae5HWWXVQ== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 8f090ce7-ab57-4780-e915-08da43a8266c 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:31.0376 (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 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 v4: (Linus Walleij's Suggestion) - Introduce mipi_dsi_dcs_write_seq macro in include/drm/drm_mipi_dsi.h - 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 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 (4): dt-bindings: vendor-prefixes: Add prefix for EBBG dt-bindings: display: Add bindings for EBBG FT8719 drm/mipi-dsi: Introduce mipi_dsi_dcs_write_seq macro 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 | 285 ++++++++++++++++++ include/drm/drm_mipi_dsi.h | 17 ++ 7 files changed, 397 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ebbg,ft8719.yaml create mode 100644 drivers/gpu/drm/panel/panel-ebbg-ft8719.c