Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp818707pxb; Thu, 31 Mar 2022 19:15:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYEJhU5CbBfh4RSHExBDpQgQXk341HM4tzqODEGUVSuDDOjI+nf7g49NH5vcqQP7lSxwzP X-Received: by 2002:a05:6a00:2392:b0:4fa:dcd2:5bc1 with SMTP id f18-20020a056a00239200b004fadcd25bc1mr8392932pfc.8.1648779349549; Thu, 31 Mar 2022 19:15:49 -0700 (PDT) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902f78a00b00153b2d164a5si965663pln.173.2022.03.31.19.15.27; Thu, 31 Mar 2022 19:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jsfamily.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243410AbiDAAVF (ORCPT + 99 others); Thu, 31 Mar 2022 20:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243370AbiDAAVA (ORCPT ); Thu, 31 Mar 2022 20:21:00 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2085.outbound.protection.outlook.com [40.92.22.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D057111C20; Thu, 31 Mar 2022 17:19:11 -0700 (PDT) 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 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 , Marijn Suijten , Joel Selvaraj 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> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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/4j9WDU1HBAaIGIB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MpNVFmja?= =?us-ascii?Q?sBkhOsWU5iMh6FQPYL4HrgE+14bp+tTS33z40mC4kaFxUbFBp3Wt3D12kvqs?= =?us-ascii?Q?LTFGqNwlfscpoMdYt9QvBCE6PYktNBEiDp2ntk9JF6jSjVoay2eQaw4QXU9g?= =?us-ascii?Q?y/g8ddCPdBS9Af2SEt8HksHwH9sI+b3dVe/yQOgjI3YQomNSb+DWEr/3bw1O?= =?us-ascii?Q?ZMFrBDouh3XRKzwf8PglleKGW/2TtI6NcpCUy354WDSFPuNkzS0RHg=3D=3D?= 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 --- 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"; -- 2.35.1