From patchwork Fri Apr 1 00:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12797804 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 85985C433F5 for ; Fri, 1 Apr 2022 00:19:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD8BE10E45A; Fri, 1 Apr 2022 00:19:01 +0000 (UTC) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08olkn2028.outbound.protection.outlook.com [40.92.45.28]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D17E10E45A for ; Fri, 1 Apr 2022 00:19:00 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M6yvuWIP1agDaEtQXvXUHMl2ax83LDB5kLSQBx0LGnYS1FDDbgsQFI6bSNHu5JMvqECPx200yvy3vy4R1vPJ6VcPZ/sFbaaLHK1kdTL0+vb6kBCG9QmXH0B0opq63Xa97MbG3nP0WcXLeItxewEdVEaxDvIPz6v6WpNb3Xsbai19pfKHcSNFYW9DFv4C1vsXcE9DScHWi8qsEH65qsXVqTqUu/m26LmsYgUWPic1H/ylfNxm5OE7pwXX4K9rCJzo744hCPdUizouA0LZklJqfTrFFiKkxsKNswGzIqQqLM2OYMfngkKbejFAeDng55dJNa0LyZwVc4y3NWrEcmYcTg== 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=kbPsUtwrZMl0rRdrnl1F5pmp8TVBbs0jz14nBenYCRE=; b=ItSCn+1CfiSaes8btNfqcPKuJ2P5COactVAGxfQrvyAHXEN1qaWJ6yiWzYVCwHaIjAN4mxDsZtAVYvx3jPfS/uK96yL/r1AY6pDioiU1GWiDwYgeNTPefh7EStXRN9DSMmD1w21YjXlFyBuwUdcDTJIlCdOxpb7iaWnfsB8MC/cacqAMg7o0ucV2Qx80LDr1wbEMY12NPEndUPnoGkpp1qM011g/OiBTfB8OQCSaXnmu44EJPtU1UCdrpdugZcHNP+dp2x+FLA/BalWuTFf5SGL8MSZsSWRnBG4SO9Hqbr69gPHY3IKmuBAKJWNZ4kE9VL35jNmyI74rKGwplVqK7g== 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 MWHPR02MB2253.namprd02.prod.outlook.com (2603:10b6:300:5c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.23; Fri, 1 Apr 2022 00:18:57 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::413f:bae6:4e5e:5ae6]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::413f:bae6:4e5e:5ae6%6]) with mapi id 15.20.5123.025; Fri, 1 Apr 2022 00:18:56 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH v2 1/3] drm/panel: nt36672a: add backlight support Date: Fri, 1 Apr 2022 05:48:08 +0530 Message-ID: X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220401001810.81507-1-jo@jsfamily.in> References: <20220401001810.81507-1-jo@jsfamily.in> X-TMN: [wh7uWdrksSEkIY+IhK8YRBdE5C+nuyZuRVklmeyWoNUWmNG4RBSXNeNHu+l03yZk] X-ClientProxiedBy: BM1PR0101CA0055.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::17) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: <20220401001810.81507-2-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b2299e3-76a1-4ab3-07e3-08da137535d9 X-MS-TrafficTypeDiagnostic: MWHPR02MB2253:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 45CAGSnRHLjx5zKyEw0xLDCFGLEB7NvUFtSKpxncxF0k78XwAjmKj5bpTRkgNKX3YGk9g87QVm+qUwxeURaS/NXuP/9SQ4YG6k2BslSBXH2HyHmM4i7TsmV3PO2dNydqiglFfj8dC8cel95FKfoN20OlUsabtQp7rhfp7aNCFhPRmIdL0+PQk+qfmzTYyNqhCqSnqSriPHki3OgoXnxTOMOfEmfKt3oH566MmFyPJOaR3GzjfHuV63KwB1MUl5pXKyrNxB9a6TcdwrFgbAIcVCDgwK0ZU0EEKa+oblNUIflarkQkQFJHNU+jVt1Q3s1XwyHQhCupa/FKB+TYYzdZTHOiXR/RpO1vJIDBthaB7kVTzyndjOEI1o2SZmqiYK9jRBOCP5npUtNfRjpgKyerBbKVsTpCC5f8AMHqDqYkHDa9gY/2eXZfNWtJsjh1zeGcgkF13AhXEzV1nPBmdOm++7Jvq6/jvy8B+KdI4zwTHxmX0529zCUxLF4X3lPleqojEF5sVZiUxOnQy/E1aqs2JD2egPR//GH6fNFXbpGUCRgF2wC/g+3evFaCxx66Airs X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NdJliEdRPT4UvmSYwzED8djYPTOuP09oDY5irFQG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exDFYgUL1XA6Zz6AaFZqw9RNtnw3GQAafqv+wpngwlVoj2c4nkgFVu0CI4glL3Fuz6QsR6Lqv8gKaZuX8azQKvsKAwdL9wGsXlkMrMy+KpVVU3O+DXWrooxJjvZOci3aT4iNDi2GfoK9xBO/eHmzDKYl/N+biPBvS8alM7uBvSg/SFuLRVMvAZT/UgYdpMBacFkz29rJWgYI2Mq3l6tEccHEgmfJPzEoaLCMWwOtlBr7cCwPYPqpoxjXp62mO4DUWn8k4sPqR4HcUaJZYsaqv5+VQHPC0CdraBo4v5l4cdwfj0yjKrKnyUWBHzzA/GoZ9cOiiqI4jdtOE5E7K6h6mP+oCNgoIeC4yip6fcCkQ3odGzTo6/ttrrW/CzKxqH4KkaQ== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 3b2299e3-76a1-4ab3-07e3-08da137535d9 X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2022 00:18:56.8893 (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: MWHPR02MB2253 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: Amit Pundir , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht, Marijn Suijten , phone-devel@vger.kernel.org, Joel Selvaraj Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for backlight. This panel supports backlight control through the QCOM WLED driver in Xiaomi Poco F1 device. Signed-off-by: Joel Selvaraj Reviewed-by: Marijn Suijten --- drivers/gpu/drm/panel/panel-novatek-nt36672a.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c index 231f371901e8..6d6ce42787e2 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c @@ -628,6 +628,10 @@ static int nt36672a_panel_add(struct nt36672a_panel *pinfo) drm_panel_init(&pinfo->base, dev, &panel_funcs, DRM_MODE_CONNECTOR_DSI); + ret = drm_panel_of_backlight(&pinfo->base); + if (ret) + return dev_err_probe(dev, ret, "Failed to get backlight\n"); + drm_panel_add(&pinfo->base); return 0;