From patchwork Wed Mar 30 06:56:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12795542 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 39A25C433F5 for ; Wed, 30 Mar 2022 07:32:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D6DEA10F5AA; Wed, 30 Mar 2022 07:32:48 +0000 (UTC) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2038.outbound.protection.outlook.com [40.92.41.38]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A3E910F18F for ; Wed, 30 Mar 2022 06:57:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iBudT+rwl21AHyBzU2POLxTpW1ICJ82cR8RHom2kgMBld5xFRGBBS1Hj0aRyP5M6tdXGgDKTACRPPjzVUl/Ql9liCTeg6mPLh7ttQOrxiZCRXha9e4kccdKkdAGykz6e/uNNVYn2DvWJfUeT+vGURKHZJFtByYPr3emkd5p8PVUawnrKxS534DhUhvBEHUo4twY4K/iiy9/gqjVU6yQPCFcLmXn+st6OFYCpQflGRe95kMk/PEKNQy9KqghceTIcoXIzl8jPcF4GM0RFMGqElICwAXPIIMSMiqCALXwo+ktTPv81ech9AUv80ttSE3thWV57qakTrYJaqweM5G+rfw== 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=grLbf5S7NUtX7ojlInk4b8qRpIql+0bFaFynsMPt1/IM5T7+zAw/nQx5wSRALGhVBek2PQuBIRXuZYChPJq4qBqWcWz17g3qzNL4kqqh9DSnO9GHQakHyoacoiGwnufVFrj7JihJLBUOS6H19lcGMFC7Ty+opm0kLACBov+IJ5v3q5tMT8HlIHu9LBEMYGrCfCla8VW65rRPPeSOtl/V7tRobO1Td2nDTB4idCYXM8LYgWbHBCcUsMMxrvdf3Cep2PsoSFWJnl8OgmGtlfOhqyKcaSkIeFBo4mv2yZw1FovebMy3aGh+kYXf0p+QOU9OeJJ/iS9ov5qJwOdy6OUonA== 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 CH0PR02MB7899.namprd02.prod.outlook.com (2603:10b6:610:100::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.19; Wed, 30 Mar 2022 06:57:38 +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.018; Wed, 30 Mar 2022 06:57:38 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH 1/3] drm/panel: nt36672a: add backlight support Date: Wed, 30 Mar 2022 12:26:37 +0530 Message-ID: X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220330065639.245531-1-jo@jsfamily.in> References: <20220330065639.245531-1-jo@jsfamily.in> X-TMN: [IbgmfZI3PGm9lwBE05X5MKCeNC9tUKzi6UwtF/JvN0t9sjD3SCKTQyX/WclE6kTw] X-ClientProxiedBy: BM1PR0101CA0039.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::25) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: <20220330065639.245531-2-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d9ccd7a7-60f3-4050-1069-08da121a9384 X-MS-TrafficTypeDiagnostic: CH0PR02MB7899:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GhDyzpVXH0DslW3zH6GBCuV/iSgLKZAjKduL7HY8rdkXkKujdpWDhBYlua431h2WRiGlpvI4xrN7jalWM/MiAYn2ZzYJIbg3RpBz4WxvTkYvnIXAaI7mstCV/XNk7FXJQHJFAsGr+K51mTDEgSQKYW5mYcpGDeYQNPnk7kt2JR2Av7eEoo+OgHff3KFvJJII7HCW5m/G4WssfDugCMCsPQy0yABrXAfE9+5/OfWwTrTfk1PaduoW4FFGB5x3AOVkgdHeD4UvpS1CiKvO1NXtEroJTgePGD2LjN675rVmA4vQRB1cZr59OIGaYPDD8BEDZAR4KWCiRBYAPkTIa73oV0KBW99VUsVHCN0do7yK2/kMuX6djccBZdWzBjJOjpTUxsTHmrLwe+67zyMGZTRtKfyl+NcXGcl3URnxekA/4RU67yPbYw7sZlwJ7KQde4itUG/qTWNjnSfWARKcnPO7bCw/x2zIusFB+DhHlrZqOmRrcIwmSNsBDjxenBphkyxKABUbTJxzRsmRN32wfcO/oPLb4kWcpr4wlA5Oaf7Jazi/u4RaiiB+8hMquFcoUO89xL2PvJQYZk7sk70f3Jqv9g== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Pa2OD2Zg0qcWjUonyiqA8f6z/L7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x8kDTz3VAFShtQXQAopAtNtxhqhHGYLWbdpfrsoHkwoSHG3noDWba5xZ6Qg52ddgMDjWKPwhcWFXINQcM/dQ+P8lRCk46fqvt62L6is+kppFSqwDYJucAGrdjeub7VlbSWxYvib66Tk84Lrlo14JenHOcWBEZxF7OipuyQZywGO93bIJPna9zuMFJV3Xer3VoWMpljdA7VY84Xwg6AC6PbgG22ZNS4UXcBLqG+wp4J2Tbjo7cUCgPkAUkr12+DuhWW20CkoqgLxBQn7QR0y6e+cklEoabGnEXiC2yQkpoQLykAxJvlJ26T34RTx4sMsJJTUuevg2N9zr5Gwj3X9p8Dri70pC/nLOVNCy8+N53Rx2PAyLTjOhxZ/QfqIw== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d9ccd7a7-60f3-4050-1069-08da121a9384 X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2022 06:57:38.3763 (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: CH0PR02MB7899 X-Mailman-Approved-At: Wed, 30 Mar 2022 07:32:47 +0000 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, 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 --- 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;