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; From patchwork Wed Mar 30 06:56:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12795548 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 4459FC433F5 for ; Wed, 30 Mar 2022 07:33:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A145110F59E; Wed, 30 Mar 2022 07:33:01 +0000 (UTC) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08olkn2098.outbound.protection.outlook.com [40.92.47.98]) by gabe.freedesktop.org (Postfix) with ESMTPS id 712D110F196 for ; Wed, 30 Mar 2022 06:57:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=frtHwKnQ6fYCFR9T2Bvd4nhxk+12+dGClzsUlX4vudWuauS3pxi5We8KbVyKJu8cn10H77wxmrU9UcM2+cOTe9qJEBdCRsteXvD4GLr+vzORYmktshqMPj4QrqxoQEpoBK53Fh/5+PUPcJpjVFKWTelKasi8XkN6GjRqROb6lVh12kb0YGNRNjPpWZ9sR7yjsrUXZvui0oJa3/DqyDCgMcSCOnEDEGyzL9mR8o7BLcuwoLV5T1hC3o4OMECAbE0UwSuq08xkabL43k6Y1qEt3BWTrRXua7mE9U+nKtURrJViav2wHwYbSTHLZesbuB/8tSGCruegZ/28jEhwPLiuyA== 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=0GbSQFeXz9j5Ceo1yd+F/1Ne6QzvuHas4kLXpgLdvfI=; b=fDewjC2Ny7XXWkg8osAMmIg7IkyCOA7OnC5k/oe1R2Saxrd887jr9/mgqp+Rkv5nGzh+2ChiqMYKZqqKK1+B0jTkGyhOzpGXnEcxUrIIqnRdupBVOgMgmO2ZyFWtZP7C9gKo6sVdCIFV8KT5Au0P+AjWRjiPEBCcwEr6K2O8Q8PtrxuNlvKhDFQr6ECArWa+SjpiMneTQ7HIuf4b1I1slFCkj8vXru8FA2FG1/1p8gHfbwFugDnmMbGXHmdSPws3CvGSi1p0gK6zPwF6875AP8+UuwDJ9DsxJJoy63a2sHqDRjHKjvcVMCZ3h2kRoJvdQXf9kY9VPP44I7eWS2nwsA== 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:43 +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:43 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH 2/3] dt-bindings: display: novatek, nt36672a: add backlight property Date: Wed, 30 Mar 2022 12:26:38 +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: [V1VkMFk6QHVnZ3f7mxi26pvQTK5stRYgys1CnZGYNgwYbBH5LbPGEx0tY5uFY8nh] 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-3-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3ee026c-f5c4-4668-0c46-08da121a96bb X-MS-TrafficTypeDiagnostic: CH0PR02MB7899:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9HvI2nCE+DpD9QpvF52WvYx/9fOMEj/jyKHQFykIkItnNOsWKD68ALCEoz/yd9xtvkycJyOlGxiAOIXM60RghpF9C/lxHIHph1c/dhc4DaUjqLxbX/icqVFgCAq+V+G1ooTKLScEOLxj6hiO/38ibo929YykF3Curm1vjNNXofKbGiIiz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xIw/9GjgPjXniRvqorsu/Sj6IBa8dkPxGaX0q7sxH5oWWROePFTNatNMExCg5uAKcoxIFdr9E0Nqvs+FjhqudOPwRn1/3lVBEtOZp/UXTm5zNW/FxEKqDG0kAnVuDfVZCdSKnNFRR09/Klc3QMyY9n8UJGUEQkMJvaU/ToUB/1tqhXJTvINxQCsykpuCNl/eb76Jlxax/Zu+3XInPSHSZnzXrPGVqEZedAhjneGQtTyKhjxh10RNNfbbRBPFVQM40N4hZo46o9OsmV5/CaTB9vlldXlpiz1luzDQ1sL4cuwXrawbJiInbqtIKDOddTj5J4AFoXADGUK2yu3djovKI0nJdeZcvrxFjpA7ebFS+pko5HoWkzsQaoIYtYp9H2gss/hLwi4yDeNOWHcAIjRm7bq63xQHnCUl4LHqvp9zJaxBWCfF5fiawHJ9CGJDEocmFRkdBji/CfHtJ6Zp+HYrotlPZKfchGVxzgHi0RTHvKo6if7WORUfJZjPoKtXo0iJtwxW1X8UYuuqyOfWq8cZHOeehLNDqhTrHWYnO31fvMDGjf2vdZ5FBJUz7r8Vn0JmXSdxt+7hogEF5dJEwo01CGELIxllzXlb70nkQYalR8zIN8X9ZtWN6rUux/hwz/bMGe41BCAnQ9wRdaw/aHOj0gHvGWcvTBeX+EsuL9qxxv9xXbAceI3t0ZsiKJYBsXRY9nYDxfpomuAtDe1FRZ0eKWEbbGNuyqbSm86abcTcyaAV0MSJjWenpf3ezpPwZPekizg8PMe7huHriGydfVgkXq9iRJ5Y6+B05d7x6YkoYLAxgvQO1P+KcgYPY9Ycom3S1Tg7sM9+z3hlCg8w7lTbD89LDHX69HEkt9WNGhOW1QbMhFEbu1EpsM1xw== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b3ee026c-f5c4-4668-0c46-08da121a96bb 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:43.7855 (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 backlight property and update example to include it. Signed-off-by: Joel Selvaraj --- .../devicetree/bindings/display/panel/novatek,nt36672a.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml index 563766d283f6..41ee3157a1cd 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt36672a.yaml @@ -46,6 +46,7 @@ properties: reg: true port: true + backlight: true required: - compatible @@ -73,6 +74,7 @@ examples: vddpos-supply = <&lab>; vddneg-supply = <&ibb>; + backlight = <&pmi8998_wled>; reset-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; port { From patchwork Wed Mar 30 06:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12795541 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 322B7C433EF for ; Wed, 30 Mar 2022 07:32:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60EAD10F5A7; Wed, 30 Mar 2022 07:32:48 +0000 (UTC) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2062.outbound.protection.outlook.com [40.92.41.62]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8028E10F199 for ; Wed, 30 Mar 2022 06:57:51 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iey146HOF8kzsOlknQek2ZXcgh3yx2tgpcgukrfv2XRd7a54cazT/T8wWJVr2X+lz/gYj1IQNKTZ5AfJMBOJP6q5/LEwtf5f/dB6h+UHHmRC7YNjPZe2CFQY1a5gEncz5hKagbVbFtDrvw31iyu21v97xIwdBdGH8765i6mts2nT+GbQPWmZ86mzboAf0z226RCg+oe7j0NMqswv9koNLsAaFo8W820ldxfM4agH2L3OJbRuZ2tp7hrnnWvFLq/UUY/D9yWtPdoI2eOuqQekR2KU+aVGnM0SMCE4ac5meHuZBU/aApRe2sXCjEWlfLptKYbFGsxKhWZAjUmSPeYpVg== 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=hKI3GoILL8J0bxYQu35N2DmC4fv2Mj+Xqybrzz8r/jk=; b=kKyviKAwC7OprBeIz5MbMZYTa/rb6vlHp+aQd4r2+HV4PyK3XYNQA57F56iYaBgEC0rE0HvTBWVnGgyuZ1pmsO9Tb88yadbUddr/orfZaNyHkewce8Kaa7l76uSVtfMvOznoiZQZ3rwYYfsGiRDMykURWqjmI93D56Ay2Zya6ZU9KoEn6Fq6lUrP5ekCY4tKMBb4ow+2KpEsGlv1+7VlnXdeIC8xhh5P4G/RTmkoMvsOKRXxmsvwf46cVE+SiTesakriYjhY3/+I0ilz0n0zI1PfMTZT8/zM/fM8PUnG4RsZtTnn+i/aVw9ITfRIQ05TD5VPd1tfOucOXQDoALJk7g== 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 BL0PR02MB4883.namprd02.prod.outlook.com (2603:10b6:208:54::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19; Wed, 30 Mar 2022 06:57:49 +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:49 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH 3/3] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom wled backlight and link to panel Date: Wed, 30 Mar 2022 12:26:39 +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: [WQpQL0JZKQSPSIv41xyjLSJIzn9P2abAjlHy3217uC9I8r0ot/MZSxCDUMbL8Bk8] 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-4-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4717930d-b0e0-47f2-12d1-08da121a99f9 X-MS-TrafficTypeDiagnostic: BL0PR02MB4883:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EoMCVrj1ufded3BuamDk8WOjuKiVjNlG5WgnpxMI3Be5waQeQaHoUyl6/468HfSId1gYVAjRNqx8xoona2qA/R6NLFf+ucldS2wBt0g4l9PA7muDTC7ZyAzN1eZlsZcaAmAvoohA3tyxlSgxm1W7QRKlvIJ3Yo3oDBeYFb9niYV/Ys56RpccB2+lBDtlM5PG3tJH0XLB9reanOD6QEW5NR8pB8A3EymR9kR6CjIBmLw9/qHGQaKraBzOYm1vfSHNM0TkgfQjV2v/02zy6BX7viCrvcZwUK3glEWKDkvD1ek53DczPkLKyOVQXTNSxciC2T0AW5mj5DqvrA42kC6ssdPtxoNXueasClexx4xZ4Tv8zvBZjdWWDQS3ZM8Qmpzy2N8Ktzvlt6FMjZeYe4TnIE4yJgfQGLV7992lIRrbX1DiMh2wvkzDuCdzD1vURff3WiPr/q8d+0wzr99oMO6u6t0don3ya3ugX/C3EPwVfy9HVyl6EancpzwuuveZ9qcHEMGqGdTNlhIRmbEMHpuaPcB3m1LuVhCmXga9MURZ/y+6NJcGBCD4Z822ScoMLe6FyIPDIrpOWhVPW3hMMDz35w== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jBQvohd8gqQ8ul0Njm7eOoY5oVabYSgBIj2BOPFLnCFyQSFwofslfsAMPvIKhGeDI42Cg+ZAM203FfV7j8Nd9hgXX4derqMVecqMlW+Zjm+Gy/jbL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ksVJFhnZtdW++bGTu1qUhQctR63pHDpaTwhiCJj4Qxt5XgLzjfVjFsjRO1H44z0A75NsvzGFTVEBwDwexMYvjCOr+4eLTpSgD/rjrK9cyJwBYl7prEL4+kvb/5xaMQhhsSqJcG6FP5RtxVTY3OMpSBC2vULatYvCkOnOiQLBA8Nc2t49rtEPEtjbOCenMwFB83Q2zUgl5jkasqI1i7mfO+WDEcDkGGOcLf1r481KgWfrnU+FT36+JT/Q63J5F3tXn3Ky0nqIYyM75GEN5SIdFOxuGF8Ig== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4717930d-b0e0-47f2-12d1-08da121a99f9 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:49.2095 (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: BL0PR02MB4883 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" Xiaomi Poco F1 uses the QCOM WLED driver for backlight control. Enable and link it to the panel to use it. Signed-off-by: Joel Selvaraj --- .../arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts index 798fc72578a7..3ebb0f9905d3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts @@ -231,6 +231,7 @@ panel@0 { #address-cells = <1>; #size-cells = <0>; + backlight = <&pmi8998_wled>; reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; port { @@ -314,6 +315,18 @@ vol_up_pin_a: vol-up-active { }; }; +&pmi8998_wled { + status = "okay"; + qcom,current-boost-limit = <970>; + qcom,ovp-millivolt = <29600>; + qcom,current-limit-microamp = <20000>; + qcom,enabled-strings = <0 1>; + qcom,num-strings = <2>; + qcom,switching-freq = <600>; + qcom,external-pfet; + qcom,cabc; +}; + &pm8998_pon { resin { compatible = "qcom,pm8941-resin";