Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1195290pxb; Wed, 6 Apr 2022 11:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+t5XCu+1rIxHvQyssBCay8w65ghVd3G3CqpMdnMDkHxgDMypyT4T4jWcXfQl38AnRglNP X-Received: by 2002:a17:902:f68b:b0:154:76c2:f7cf with SMTP id l11-20020a170902f68b00b0015476c2f7cfmr10018729plg.160.1649268123365; Wed, 06 Apr 2022 11:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649268123; cv=none; d=google.com; s=arc-20160816; b=kctsLvT2CIchtqFQ5DafLs9dgXk+FvQ3Ek84K6Bq0Na7gDR/TyYweq//emrlTfhR/1 hBJHmPqe/GBYMx+VJLRL0iYMM/UuXZOIqX5q24uJMluBpQyBwE4UHB5SYyhcJsy28Riy HTHbMqeAw01VxbBwADOfB/iU6gW3NGkakS78ljwyaIbAB4WNgGkAoI0rEp9ujX2rmUFQ 5LN8ESv0f9Bqgpd0r/QydbtZ1lxqioZ9kSaJr0oidYswAM7/UP1+MTUDxTFsfbpIHmdg w0tsGcjYqImP+1M8K3Ol8ZwPJnsZhJIOtNsi2d/tZTrS4io+AQBQSVvR+Xqjq+batr3o cwYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=yI3Z9MVHwUGufpFKeuVPU6ga2FI2VpwTeSgandflMss=; b=Z0n1RP1JvEwmdbsutfQxGYNrBOLelFKrtpm4cEdHMwJHaF+Cp8cCrqeaWQTI/IMlOo Qkq5kAD5g4rL/D0V4zMu+WkRUEpG0nc/a3fHl2182g1ZZCLQlWN+Ene9+xspsUUjeZXH QgOoa009JQsVNefxBy+gRLmE/jMKchYo9BUx5+Z8z9F6sxcleWcxWFoK/6VOSNalwzgo EPw3aT2cpsRPxKFSKi+CbX4kKvHzGja3IfN54M+fgXUpV7xbooKPxrphjB4/UtTIOYc4 fkBXZC4aMTTYfm7vFqXdPpmpAkagP5AVdwO+yJ0W09CZjXoxOrqzvvjCWME43o7M5mtz T7Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x22-20020a634856000000b0039919e81444si9583764pgk.212.2022.04.06.11.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 11:02:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABEC75E153; Wed, 6 Apr 2022 10:51:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234578AbiDFRxR (ORCPT + 99 others); Wed, 6 Apr 2022 13:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240102AbiDFRww (ORCPT ); Wed, 6 Apr 2022 13:52:52 -0400 Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B19A1B3707 for ; Wed, 6 Apr 2022 09:21:40 -0700 (PDT) Received: from SoMainline.org (94-209-165-62.cable.dynamic.v4.ziggo.nl [94.209.165.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id BAE3E3F6AE; Wed, 6 Apr 2022 18:21:37 +0200 (CEST) Date: Wed, 6 Apr 2022 18:21:36 +0200 From: Marijn Suijten To: Joel Selvaraj Cc: Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson , 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 Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable qcom wled backlight and link to panel Message-ID: <20220406162136.g4lwvhnm3xnyupuu@SoMainline.org> Mail-Followup-To: Marijn Suijten , Joel Selvaraj , Sumit Semwal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Bjorn Andersson , 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 References: <20220401001810.81507-1-jo@jsfamily.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 2022-04-01 05:48:10, Joel Selvaraj wrote: > 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) Thanks :) > 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; Unlike the number of connected strings and configured ovp/current limits, aren't external-pfet (and probably switching-freq, perhaps CABC) hardware features that are common across all users of `pmi8998`? - Marijn > +}; > + > &pm8998_pon { > resin { > compatible = "qcom,pm8941-resin"; > -- > 2.35.1 >