Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5819883ioo; Wed, 1 Jun 2022 13:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWS9gTbprTPPUER1eP+Trig1HO177xizo1/OQelOHsPxQV9glGkphh4OtpwFBu8EhYRrRe X-Received: by 2002:a17:90a:1d1:b0:1dd:220a:c433 with SMTP id 17-20020a17090a01d100b001dd220ac433mr1189005pjd.196.1654114639963; Wed, 01 Jun 2022 13:17:19 -0700 (PDT) Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m7-20020a633f07000000b003fca2707583si3525646pga.224.2022.06.01.13.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:17:19 -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 7512B19762E; Wed, 1 Jun 2022 12:31:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349453AbiFAIYh (ORCPT + 99 others); Wed, 1 Jun 2022 04:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245162AbiFAIYe (ORCPT ); Wed, 1 Jun 2022 04:24:34 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2095.outbound.protection.outlook.com [40.92.21.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D272FD; Wed, 1 Jun 2022 01:24:32 -0700 (PDT) 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 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 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-MessageData-0: =?us-ascii?Q?q2Hbk5tUdynfMzjWxtOZGXxk8bwlM88MFVF5uh+ZH9DXKIimF/uMn8THul/K?= =?us-ascii?Q?8aJft80nqi8HIoGs6NkJBr0sZJEqVK3Tu1MSfrA/Q1UbD1tP/zMCFnWZ1F4q?= =?us-ascii?Q?me3+wpyupCqY36368EBCI0vjIZY+eOuLntd/TvHNU449cvoZxWJeublJR4o4?= =?us-ascii?Q?zyPuG7eHu7z36G4rTi2ELNTWlBey+60fUN7QSQPPL1Y6JmBMXyYnNUjXM92S?= =?us-ascii?Q?5NuyJtQXppe2hsr00SA9rgOqTi1/K2ogq3C25MQ5ni2aM+tlqglbi4YXx6Pk?= =?us-ascii?Q?6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= =?us-ascii?Q?9gd5+iDt5Nf79lRUdnsOGSAREXjy6W2Wo3icUyDssB8PWZdQrlL2wev5kFw0?= =?us-ascii?Q?wzHsUqDib2SE3RmouNq3C1+HmzwKcATSrv4capPIQ31ZQrHAhCiUCjWP9U6s?= =?us-ascii?Q?F59/MJtP6Quc83IB+zq2M8UxtJnVRWMnu+JYUGs9b8R7Kb3rMz7CI244Jq2y?= =?us-ascii?Q?OJfb1js+NPatwMoB647mJKrhTArHfELl2270KgtZNMRCAm0SA6OHVne2AfWb?= =?us-ascii?Q?cyabvYbMDA1kmVl7wWl4nvCOuSUD7YvA9X6lmtSJAfp14Ae5HWWXVQ=3D=3D?= 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-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 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 -- 2.36.1