Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp206867lfu; Wed, 30 Mar 2022 20:58:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/8+0QawFBa6eu6Iv5/cBzu4aLRHfk7dxI38A3PN2lRkZTtnEyLQLKLWaIYa3g/pEar6i4 X-Received: by 2002:a65:4144:0:b0:374:315a:7dff with SMTP id x4-20020a654144000000b00374315a7dffmr9003746pgp.506.1648699110418; Wed, 30 Mar 2022 20:58:30 -0700 (PDT) Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m2-20020a638c02000000b003821c6a6897si21466745pgd.758.2022.03.30.20.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 9284717DCBE; Wed, 30 Mar 2022 20:10:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243517AbiC3G7e (ORCPT + 99 others); Wed, 30 Mar 2022 02:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243511AbiC3G70 (ORCPT ); Wed, 30 Mar 2022 02:59:26 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08olkn2012.outbound.protection.outlook.com [40.92.47.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC7DDE0AF; Tue, 29 Mar 2022 23:57:41 -0700 (PDT) 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 Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Amit Pundir , Joel Selvaraj 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> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: =?us-ascii?Q?Pa2OD2Zg0qcWjUonyiqA8f6z/L7X/Cd4N+i6bu6M9tux1sU6d9Wy+r9C2w2S?= =?us-ascii?Q?4rNu6Mqb9SQjx8eRSqk4tbDtC4NaBBnfTAk4GNzlrrzGJNFd0z2y4cjz11VA?= =?us-ascii?Q?BN/KC4jinQrYC5FvKgsrb/AymM4dgfbP9VmxYb2zKXQilnsiPeVxGYcsmFpV?= =?us-ascii?Q?ib4Q1hljcNpm2Rt/rdDLXXxCCizFzbY4Shg3wneQj4eyVcImuhjxKkCShbBt?= =?us-ascii?Q?jkntHmK7zROn2fp821Oioe1LYuFGK5XhvvHlCDBFIH+vOs3wftpDQubC2oFT?= =?us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PwhcWFXINQcM/dQ+P?= =?us-ascii?Q?8lRCk46fqvt62L6is+kppFSqwDYJucAGrdjeub7VlbSWxYvib66Tk84Lrlo1?= =?us-ascii?Q?4JenHOcWBEZxF7OipuyQZywGO93bIJPna9zuMFJV3Xer3VoWMpljdA7VY84X?= =?us-ascii?Q?wg6AC6PbgG22ZNS4UXcBLqG+wp4J2Tbjo7cUCgPkAUkr12+DuhWW20CkoqgL?= =?us-ascii?Q?xBQn7QR0y6e+cklEoabGnEXiC2yQkpoQLykAxJvlJ26T34RTx4sMsJJTUuev?= =?us-ascii?Q?g2N9zr5Gwj3X9p8Dri70pC/nLOVNCy8+N53Rx2PAyLTjOhxZ/QfqIw=3D=3D?= 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-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 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; -- 2.35.1