Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp816800pxu; Wed, 14 Oct 2020 14:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4llteYV8oiHrLiA77WA4NY6E5NVajBUsLuSYJ6euNeI4qEdefXI/RpUxxzH05x9i0hNcV X-Received: by 2002:a17:907:338c:: with SMTP id zj12mr1175073ejb.224.1602712120059; Wed, 14 Oct 2020 14:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602712120; cv=none; d=google.com; s=arc-20160816; b=Wpb0DqoUSWmjeqM1mCmfifjakdfkbk/+g7P3EQX9oca7g/Q9BdLefhtdSTPaogo4eq Pj1lX6Rm+JHDqYafLmCUMlFW7gcIUxCXFzomzwElwdlzhV5WlJCQrjfnqQ7eaf81eBlz 7PXMACQflOYpX5Ty1Nf0lWUQ/sVc0UIDNZ8D5Ks/Rammb+IlGVHNDW4uYJIz6dIy19gr 9daHs6WDWjiRrhMi15wsudjASGDutrAS8XL1nlIDzqSHNK6PPFxq3QezV/8CPhMxvb4O qrugjEbOpm0E9h16psyb57fC6bxcgauu91Du2OErNLHTQL43QLnauGuBlLQ1vb5AjQ42 1xqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Mzp0uOZxXIMEmqgMQM3rOPvqT0bfptiQ8aXw/0OajwY=; b=HP6T8rcDwyNPDkWlbAb5jG/QbutdQX77nuaWSIoc02ddyn/YcOjlXEmr/UTlGNCF2B 7UCUbhmcjImNsgEBIMAjF4UBzKqpR0np9gGeXMiAJ5CzZ2PWbgBLVgH69zuHT1Uwy/CI 8SPGSL9HJNA9t/OW9NiB8mSBZgoAmEGKfRS/Ctunq8LP9AdL9PegYScQbZ+npP09EuvN zDJSDosNRiW+lJimCrF4dM2GciY08FLbvjNaIf7N6B4CYwq9r/9Ld3faTPUYSQOz8bvV KS1PP2p500VqTdjd6/wU5rjc9xL+hrCeV/mhgyFX/ylZyrTMDeyHULJtogLokk+q3RGD H9Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FGMxXMcQ; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm7si625676ejb.704.2020.10.14.14.48.17; Wed, 14 Oct 2020 14:48:40 -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=@chromium.org header.s=google header.b=FGMxXMcQ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388754AbgJNN5v (ORCPT + 99 others); Wed, 14 Oct 2020 09:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388444AbgJNN5u (ORCPT ); Wed, 14 Oct 2020 09:57:50 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A3CC061755 for ; Wed, 14 Oct 2020 06:57:50 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id x13so2022000pgp.7 for ; Wed, 14 Oct 2020 06:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mzp0uOZxXIMEmqgMQM3rOPvqT0bfptiQ8aXw/0OajwY=; b=FGMxXMcQ0fjPjm1NdHS2BrYWsaDp4MrMRsFJoVrZbqnME3EkBT2AMgXYXzHOfhwBKt +9vHfHlxbgATM2OCJ/GfHuM2abN5A0cQN9Jl8j9/Kuq7YW1nqmfhh2CZpbu02TbKF+Yt zxUXw7yuVqMUnC30hkzguLE0NxbAvMup2Wq+g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mzp0uOZxXIMEmqgMQM3rOPvqT0bfptiQ8aXw/0OajwY=; b=kWtSP4UsN25IAsdCDHxcnIqMsNKrKw37n14tpmtoSAtOKk1PV5rDuHQfuFzpWAQfAD qr9tbG1X9EqWjurH59zsONphQxV38qMl4r9bj/4YlLYspau3TGKrLJvut9d0AgjkNKwO +sgrUec3PcPWfCooltfYqTnoWWhU9k67BuRD2IT/XMx5JtLa4cGIcPizkloN/dEYpnSe 166ihhjQeeO0wK+rqci/whmEa+UoFmQsplTumbeRcvmvwcws4dy7/Vvkgh/ufdIUtcfS PGHGdsu+/+wFlKaqby5HjW2YVeL8ISoETiScKzXU8P+IPphNzg2wOo1GnQBh42DCIQOD zmGA== X-Gm-Message-State: AOAM532FxVMZZZn2eAHtzuTe+DHvcK9rMe2suxYemqQMZQZU8YN3IWwQ xs7OFkH/NMCAodIP00Lr00ZRMgBqpl6Kqg== X-Received: by 2002:aa7:80cc:0:b029:155:d56e:5195 with SMTP id a12-20020aa780cc0000b0290155d56e5195mr4538268pfn.41.1602683869609; Wed, 14 Oct 2020 06:57:49 -0700 (PDT) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com. [209.85.215.171]) by smtp.gmail.com with ESMTPSA id s6sm3537945pfd.157.2020.10.14.06.57.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2020 06:57:49 -0700 (PDT) Received: by mail-pg1-f171.google.com with SMTP id n9so2017944pgt.8 for ; Wed, 14 Oct 2020 06:57:49 -0700 (PDT) X-Received: by 2002:a67:e3b9:: with SMTP id j25mr3194594vsm.37.1602683490772; Wed, 14 Oct 2020 06:51:30 -0700 (PDT) MIME-Version: 1.0 References: <20201013080103.410133-1-amstan@chromium.org> <20201013010056.v2.3.Ie4d84af5a85e8dcb8f575845518fa39f324a827d@changeid> <20201014113313.y5uzugw5lpcbo46p@holly.lan> In-Reply-To: <20201014113313.y5uzugw5lpcbo46p@holly.lan> From: Doug Anderson Date: Wed, 14 Oct 2020 06:51:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: trogdor: Add brightness-levels To: Daniel Thompson Cc: Alexandru Stan , Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... > 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