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; From patchwork Fri Apr 1 00:18:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12797805 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 29841C433EF for ; Fri, 1 Apr 2022 00:19:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5207610E462; Fri, 1 Apr 2022 00:19:07 +0000 (UTC) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08olkn2072.outbound.protection.outlook.com [40.92.46.72]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3813910E462 for ; Fri, 1 Apr 2022 00:19:06 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gRaAEds3JO1AvuZtOIlR/N1hxuUtYIH8KaSIX9iK2OCn+LoBtbSo75M1BOjnf+rQZd81E4zSINAU7/uX4f3BpORHjivExtzBZ/ZSLpfx9FAiIdX8jjXhpCfilFjBxvcMNdsa2s/rdEFFSc4OF/cztRtiahfhgkAxKNbehv1+Cbau9DsEwXnfbRO9ROYlurrSohBUi3HXWq+WVPmq4/FNoKV43fnx8N/CGFQaaT/rJr5mRiyV84Y07E2fs6iXQtVWZG3Nz0HmO94fhOvNc7p8yyTsvUadNgXI7f3viYdw1FM2SmgKYuG9xNJw41zZJbbQ9PtxnsL/7z2HNloPw5qwtg== 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=SN4DmVDAU7nAwUNWsRRubvQrcp25gTSro/hyryHcrbwo1C9+BcDmKvTeMAs7iQJoJ2p+Cull+7WcvXegR4T4d9Hdi4XSZ8sztsycoIWxbIEKj0gyyZ6lOP0bpXwQYN3FAc5XYhWK5/7mRcTZP7XuGIvp9eldqHUhv3RIziHBJh0mWARLZoGHDxLOgXfoL+7eq2r8eU6SGXxmoYu8i1PCBPNmN5aHNshpl7dEWeYk3sNCqeioGPfSHL1/5cTaMaBTYeB3yvji4K4cuUlO+YMC//zMNUOM9PSdtuBxndQ/HIyq+EIF3KOm/+10xFqrVqQT/Cy2j/vZrxT6F2zpfkozLA== 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 DM6PR02MB4892.namprd02.prod.outlook.com (2603:10b6:5:12::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.16; Fri, 1 Apr 2022 00:19:03 +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:19:03 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH v2 2/3] dt-bindings: display: novatek, nt36672a: add backlight property Date: Fri, 1 Apr 2022 05:48:09 +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: [iGoBqo7CKnkzxgaZBwokx9K3iMFofBfIukpUXqzBBM/08Y5v3iJd8CtihpV3hI/G] 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-3-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff7b62ab-2860-46b1-32b0-08da137539ad X-MS-TrafficTypeDiagnostic: DM6PR02MB4892:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zsZeIZUmBTceTAvw3Gsz49JESuX/T5qv9GwJiqBZdaxQWCRzX/M0xFtbNmTbHjjiMdKNiMbs1v0xCkH2GQtZ0jSFHqLj6uXwRVnypCHz1NOisQKa0tr4afT+3rj930sPr9rH3CU1MNat9x+ybkcv7np2hVQfxS7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jFKJKS5YfFQUp8E9ca7BvQFGOaa1dr4GOW5YuqWyTW5ll3D5FHT+9kx/9LMiOMeRDMT+Xwet7Vz+Y1RQrddoC6xck8GA585AcafZ09ZbTmDQEk8IlEisI9fdh5YbkJhbY2nPOeXwzpCgump+amsptAYqQ+d77CN8CFYp8Pb2SnUqW17Na0E5mxWSJFCSG6gCKpMIskj6feS2mEYGOr2ZN9DNfxwAagex2eO4+ANwCXtNP/7jKx9aQGjg8D3PlelzhJ1m6FtnlEGqftfof2rKhn6wdX8IrBzf0gfNcmDGzaU2mNFFvK96tezJmi/dj8g6uzM4y8sEzyJ7hJr7+d21q5VmoxRavz+Ln9UoUmDGJe1Pi+qOMdiC5baTitgO06VYSEDZAVAPv96GI0IwnFYawe1CymJWcKaS+w+dHivTl8OZGfBAAZIy2UoYW3y+RQ+iIhp+Vl/6BhEX9OlNS+NIseIKfY11zjLxI5lA0+ZXDz8ZC76UWnUih5KQeyWrS9tvwMVG9opqpIj8EmUQLVNPuB/l0tgAbsjmBqIYLIDaWFqQMxw6euuiiZOIKTOXJQ/0YYJR1PyoIO/oleo/asxLuhuConwzEaZB4+W2kwGiJUVm2ZThtZV2agf+gF1/mAhvSmPIQdnjJtyAcQFHGypZMuulFp0ZQj3ifVpcsLj40v4gZ7p0mwagDpjS7gTGI8+HHiGi5eERlTLvsBfnYWqYXk/x7i5cisOYSvqPNlmg0ZKXY8nBBjRAdEbC82qHY5kqBI5Qwl999lN3nzDKtB6omBuCe2xuRrMn/UfM1xc35pwLMuRTQl+7Emtp0Ah2ekNszzJXlwNQPg07TiW1ZDvcFLVeyeMMzp6Rf9NKkz5QKVa0d50GJ/R/ghDtpLAkO9YflfJ/zJNgXDclhj5w== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ff7b62ab-2860-46b1-32b0-08da137539ad 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:19:03.1255 (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: DM6PR02MB4892 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 backlight property and update example to include it. Signed-off-by: Joel Selvaraj Acked-by: Rob Herring Reviewed-by: Marijn Suijten --- .../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 Fri Apr 1 00:18:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Selvaraj X-Patchwork-Id: 12797806 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 75569C433EF for ; Fri, 1 Apr 2022 00:19:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D6F0710E469; Fri, 1 Apr 2022 00:19:12 +0000 (UTC) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2064.outbound.protection.outlook.com [40.92.22.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9499910E464 for ; Fri, 1 Apr 2022 00:19:11 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8AcyZ2qREMKTMkUc8HTR0CHn20WThShjptS2qOhfv+W6StBtCRT8OUbIqJmWw9UZ6SspTeP/ExYARhWss/Uv/Wz7vb9LhwDVFw2ntXiwfSO21MbLwg30VzwnJVgssI0mDKmb7fjp4aJgknra2Xfop/drUXgw39ol1YP8z5K6I4Kuku98Jt3dh5epIzBQ6dohnMqWOk063hQXPMxchLjxm4w6+jtnUU0A4B9Sk2YtlyXPP/v1cDHa+sPpfY7lHp968orcMEGiQVo1v7kP61KHyfIR3LHaZadJcNcjgztWGaG0PEGzRCNfXcqF/BdiERXvCRHBd31imJIKePXPNCvMQ== 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=XMEzQu4F0mBvq7aOQq/fBrabir7c9sgCK8g5nQFjLYU=; b=oec/D8yE/63lBEaDhGlrj/U3PI6kWlBgIVY0nKxgmapG2jBOR29COE7z+g7h91yZMdylMTLRyr8Q4RyjRjsnik1CggLSZQjVnos1Y4K/pq37zj6/ocXr+1wmuvyVZnJnhE0MG0cCm9zWVGM20WMicSvWmaaA+i3UPPFxRxQ7r3WrSxFd27M6z0/Jhw5C6EX6FBO/D3M+PqGqyef66tIcZggwOwoq7s6nihgkUiUu8dRpv3SiD5aPCiHCa78cptT61FE4uZ7YtvbY2Q4ziifrE/n0o9fJFF2BRm2vu6XOm1uNAHbXIwCaw9e1UuMs2hNwegcJeEMHOH1C/2Tah9oMPA== 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:19:09 +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:19:09 +0000 From: Joel Selvaraj To: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson Subject: [PATCH v2 3/3] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom wled backlight and link to panel Date: Fri, 1 Apr 2022 05:48:10 +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: [xDvow7uE4poCKjt/5+igvmqfozsigKY2ns/ub/vloTaWsblgwLA4GhmBKkvIHIJz] 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-4-jo@jsfamily.in> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96dfad78-a4fb-4351-8730-08da13753d67 X-MS-TrafficTypeDiagnostic: MWHPR02MB2253:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dz9GnjDOMj//WXdh4H2jNgv+/AI6KsuWJUnfWiJTQnQ38/4j9WDU1HBAaIGIBBnGOZz6u3ZP7Fnmj8zvvGfKGp4p3smIsAeX1Ac4CQukLf0aGTMvERfQ1bObcwL/U/x3yNN4TJKZ0e9DuFeQQNoxOd6LO/kmV9xSE5vBqirfZef9ks728hI+pwRZZtQhDgR/Ww49834egfbBrNPI/tSEns6c3ZUL8zkAadyBC3JmG+VndR9uVNE6N6ipKbEbzKEIk22vpm6vlg3I4ij29v/cpsVq7j7PusUhC/NRFOeTF/LDrS7Xx2PAG/r0/o2ftOiuHDzEJw1GjJiDpsQYQSLBJmoa/lidYHo/rV2I4L5zeOm4oM1KF97sCYt7nh+sP4SIP26pLaYJzAePboMRWd6oQ22uhjrOIYYhhxMnTIPYV3EhB98KTyNs7P1kC3kHTn4CaQrw9AFSpEfuOl5C/8B9Rh7RO7xIF/278sUtw4Sm68xJc+c8+Bmv2xFyS4piMHavgD3zEwHfuNKb/9TBh19daEzt7GSLVnPwJiIEQxchiG6C2aFA8Pv6ELTmisBExbtxJzl7p4Z2QeMhqy7b4o/0/w== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: muhNLRFzYq5U1zV4IR6FjvjZdichdN4zwdqZqYOAskxnCvMDdMPHv+WvBMv8JraMpg3EZ2Q4pJ3K7/D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Q8M63ginKrfHZKgFGuivxF0q9mvUpNQ9d8UamX61k9LA4VSGI3ILlELKtRC9Cx8u8i2rV6Tc67DF6qMsPjGQVuvy5sJhE6NeCyZYQcMpNVFmjasBkhOsWU5iMh6FQPYL4HrgE+14bp+tTS33z40mC4kaFxUbFBp3Wt3D12kvqsLTFGqNwlfscpoMdYt9QvBCE6PYktNBEiDp2ntk9JF6jSjVoay2eQaw4QXU9gy/g8ddCPdBS9Af2SEt8HksHwH9sI+b3dVe/yQOgjI3YQomNSb+DWEr/3bw1OZMFrBDouh3XRKzwf8PglleKGW/2TtI6NcpCUy354WDSFPuNkzS0RHg== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 96dfad78-a4fb-4351-8730-08da13753d67 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:19:09.3806 (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" 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 Reviewed-by: Marijn Suijten --- Changes in v2: - Remove qcom,enabled-strings property as either it or qcom,num-strings should be present. qcom,num-strings is specified and sufficient. (Marijn Suijten's Suggestion) arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 12 ++++++++++++ 1 file changed, 12 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..d88dc07205f7 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,17 @@ 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,num-strings = <2>; + qcom,switching-freq = <600>; + qcom,external-pfet; + qcom,cabc; +}; + &pm8998_pon { resin { compatible = "qcom,pm8941-resin";