Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp305712pxu; Thu, 15 Oct 2020 04:35:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu+9VA3mNQOufd3Ely0cypNA7fj2hkpB90b72gm26326ItX5t8rBOqJIEet0BVR51kdYpA X-Received: by 2002:a50:c05b:: with SMTP id u27mr3786572edd.290.1602761741092; Thu, 15 Oct 2020 04:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602761741; cv=none; d=google.com; s=arc-20160816; b=DEK7AyNlbRnp8UehWjvtTgdUPwLNa43TvT1NZhoDoPecQcCqmBU7qIfwpjo9fqkH9x UmpayJ7fFmTyuXCqgWHrJr8E+7fPiKII1ScYEazS+ajEswhYXyK1qtp1wxs+nmfU5QM4 nI7JH7wLNicWxmb7OqlfAiooxF4yNfNGvLfWo7Zg3AqFOIU6wr1SxrBn3wSLnxsXFFVD Kl9RNd8LMPqbSxaToPdbv5tBmsLpw/CEnXs1Q07I6TFtWtLzidHPrdgPKxhmMIqvbnS+ 9XBy/xoxjdSY2N2ODtGxtxp8/dcH4N2PVejK5wHy8mXumXNNVMh8meUXnC7XPR+3b4hd ZGxg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=eqdOjb4HsOtdSUyO/k88d8GDoscSKYaaq0n+YsnzZog=; b=yL+uPxxYAHciBnDY9fcUs/fS7OlQCmk/AkoOVWBSxzJPO/LHUkaJLTTxBQz6blDkc1 z9q3ftSm9Vxo7zc2zK+lkN/vwUqcz+5cxwIHZN8rboVOp6vaMqNnCaAu7aBJLriRnfxZ V0ZEASz2bbJbg5Ffmb1a1Zs8zjLOv2xOUAt9Mtt0wYVD1nLnLDdTYZ3Dbvgg+vUHyfqC SZfP55LsJoEebkbA2tRaDPBAglCvDeuFsO87ztdVHbFutl2XUXRDvosIVhVN2IcimBys 1nRKKdnej1KQ5CZf3qxMmyOgW298S7xMFwF6F4ZuUOM7avtigLOQ7lnO4JE2lf+lGtkr wacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DiR8ARqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si1881804eji.741.2020.10.15.04.35.18; Thu, 15 Oct 2020 04:35:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DiR8ARqL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730570AbgJOJQD (ORCPT + 99 others); Thu, 15 Oct 2020 05:16:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgJOJQC (ORCPT ); Thu, 15 Oct 2020 05:16:02 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898B2C0613D2 for ; Thu, 15 Oct 2020 02:16:02 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f21so2381730wml.3 for ; Thu, 15 Oct 2020 02:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=eqdOjb4HsOtdSUyO/k88d8GDoscSKYaaq0n+YsnzZog=; b=DiR8ARqL+kQ9Pc0Ntj7ZeegNBLYt4XQ6PKMKHGEsFkpL/OOurMS18VPcOSGBpUH12P hPg9v+ZD0V/9WjLdlKdxxB8sGnQL/QTe1j+uL+s9x76XnvJic6beLZ+TEvQnbiFG1jDW JNqNfgNEtLfg/ldLwt9Gp0V9jLJyXFjyO5WdC5RS2APpWpD0QjOEo3ud0iWLPkcorWTD Gk6mE2ppgYGAWwdAdifg3h3T2/1k8NBYmfxCiEwbRa42vsNTSZZ+ZZBvPXXum8HNtIU8 WtduwotIAebsmvx5RfBG45EQf+HRMohbxCVVNi8TyKN4AxFiQL0Tncv0KVXu/ArGUoyN cDVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eqdOjb4HsOtdSUyO/k88d8GDoscSKYaaq0n+YsnzZog=; b=k+JA7F42ol6GvZOj0+qKk90VfzxGMPHkBNjC4XEDpzQptPYn9lOs6nXoign254AejR Im9csOeVVQngPTGLIM3bNSQ6GM1lcKwN8jP/QVSHsnasBkdoi33LoVUVN2nlcm2LgZ1q Ig3BHQVaKcpJNPIPr+KBXOZsX+gqC4AyOzJKVkjoryl/FO2BFNUAm8h94KgLTowhrCYd 7VXnZzd0Plx2u60+rB24KocFdprHNVSCEy+zk46RyAtCsYWznQGcwM+kMIR62Zuh1V1+ Wrd15yRkqmsvrxmbeJ7/EICBUCbl1sVu6nhGAGJZ24cbP2zgfwdxxSp2DO83hoXpy3q2 dUhQ== X-Gm-Message-State: AOAM531gNlg8h+e9jVzVhW3PsLq1MczbPPvyPzzHjyWPSdubnGsfrise Pwv6Rlzla75+AFkxAKQQwr73fA== X-Received: by 2002:a1c:4306:: with SMTP id q6mr3169301wma.189.1602753360864; Thu, 15 Oct 2020 02:16:00 -0700 (PDT) Received: from holly.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id a82sm3616424wmc.44.2020.10.15.02.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 02:15:59 -0700 (PDT) Date: Thu, 15 Oct 2020 10:15:57 +0100 From: Daniel Thompson To: Doug Anderson Cc: Alexandru Stan , Thierry Reding , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , Heiko Stuebner , Rob Herring , Andy Gross , Bjorn Andersson , Enric Balletbo i Serra , Matthias Kaehlcke , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: trogdor: Add brightness-levels Message-ID: <20201015091557.lwgw3msapj4nnyoo@holly.lan> References: <20201013080103.410133-1-amstan@chromium.org> <20201013010056.v2.3.Ie4d84af5a85e8dcb8f575845518fa39f324a827d@changeid> <20201014113313.y5uzugw5lpcbo46p@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 06:51:19AM -0700, Doug Anderson wrote: > Hi, > > On Wed, Oct 14, 2020 at 4:33 AM Daniel Thompson > wrote: > > > > On Tue, Oct 13, 2020 at 09:28:38AM -0700, Doug Anderson wrote: > > > Hi, > > > > > > On Tue, Oct 13, 2020 at 1:01 AM Alexandru Stan wrote: > > > > > > > > Now that we have better interpolation for the backlight > > > > ("backlight: pwm_bl: Fix interpolation"), we can now add the curve to > > > > the trogdor boards, being careful to crop the low end. > > > > > > Just to make it clear, the patch this depends on hasn't landed yet. > > > Presumably it will land in the v5.10 timeframe? That means that > > > without extra coordination this patch can target v5.11. > > > > You're talking about patch 1 from this set? Despite the title I view > > the patch as changing policy (albeit one that does also fix some annoying > > quantization errors at the same time) so it's not necessarily a > > candidate for merging outside the merge window (I've not checked with > > Lee but I think it likely the shutter is already down for features). > > Ugh, I'm off by one. :( Right. New features prepared for v5.10 > should already have been baking in linuxnext and merge requests have > already started flowing towards Linus. After v5.10-rc1 then it'd just > fixes and this doesn't really qualify. So the timing dictates that > patch #1 will land in v5.11, not v5.10. > > > > Moreover I'm not clear why there a dependency here that would stop the > > changes landing in different trees. > > I haven't tried Alexandru's device tree patch without the associated > code changes, but I guess I just assumed that it would make a really > ugly (non)ideal backlight curve and we'd be better off with what we > currently have (AKA no curve specified at all). > > Hrm, thinking about it, I guess the worst case is a slightly non-ideal > backlight curve and it would be all good in the final v5.11 which > would have the device tree and code changes, so you're right that both > the code and device tree could target v5.11 without anything too > bad... Excellent. I'll try to remember this for v3 so I can get my Acked-by versus Reviewed-by tags correct ;-) . Daniel. > > > > Daniel. > > > > > > > > Signed-off-by: Alexandru Stan > > > > --- > > > > > > > > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 9 +++++++++ > > > > 1 file changed, 9 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > > index bf875589d364..ccdabc6c4994 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > > > > @@ -179,6 +179,15 @@ pp3300_fp_tp: pp3300-fp-tp-regulator { > > > > backlight: backlight { > > > > compatible = "pwm-backlight"; > > > > > > > > + /* The panels don't seem to like anything below ~ 5% */ > > > > + brightness-levels = < > > > > + 196 256 324 400 484 576 676 784 900 1024 1156 1296 > > > > + 1444 1600 1764 1936 2116 2304 2500 2704 2916 3136 > > > > + 3364 3600 3844 4096 > > > > + >; > > > > + num-interpolated-steps = <64>; > > > > + default-brightness-level = <951>; > > > > > > I haven't done lots of digging here, but this matches what Alexandru > > > and Matthias agreed upon for the downstream tree and seems sane. > > > Thus: > > > > > > Reviewed-by: Douglas Anderson