Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp713998pxx; Wed, 28 Oct 2020 15:18:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGNh/fsykXcGqs/NZsRnNGaUFUaBsOa1doxKr4Acr/W5lMjvRS6XAlbETpzuV+9Me1T/k4 X-Received: by 2002:a17:906:9702:: with SMTP id k2mr1194502ejx.494.1603923490959; Wed, 28 Oct 2020 15:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603923490; cv=none; d=google.com; s=arc-20160816; b=aau2OExYF1BhxFfv/SnDHaeK92pxWYjGstO4y5DuBRbV8QrC15P53NvxYB9vuP2mZi XnIJ6Xqwufokd3oygfDnVBFpI+M6kmRqLNPTw8+iFXYWmGEbImenmxwaAFcFrJgrZkEV MWVHOQ8P6nBYPXrbNShmEfSOYrmKC7cQ9Blate0IkTOT2Z0issRNsvcEn3ql9mACUqU7 JD2oQ3m1wTsJdZzFCmDerW8MMg/ey5o+J4WZVVS3qztHi0xv+WpzsvFJGjKkWTp8M00u HqGtz9P3XMDa/gm/d9gSAwHmh5MOVJDpJjd7sIMNGsvQoJeX5r7j31MQePyfYRPBStct 8olQ== 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=Kgs7oOpZiYMl5H9WjnHmd1QkROQmWLTfKSTmyAsUaIY=; b=Y6RgP/m9FuSiGlCCp8DXfOrERZ7i3DvgEVi/PEfc0oQHvoiNDediaIQ7hvZoqXg/FR XUY37B45tnmEAqeSq6YZ75SxF5tRym/PYGiwK94XYHR9z079sMFYGhaeD7kDVH6oF60i aCKfTbLO4gUsSxJvLEMy2bUZdjXEZelNi5glVP72FTHYuGziuov3lrdNzh7omCW4qxc0 qYfTZpi1w/LOunTgRQ96XEBDutpBvclgOfFKBplxldMfoh/1PocL0D2iMmn1b8nIaFOe vRTIx1X4/ikCpmvU8L8C2yoBysv5Ed+ypXK2Y7TwG523nuz0f6K7OX7GDKphu773W0el f+Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QT3KbY0c; 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 y18si594089edl.592.2020.10.28.15.17.49; Wed, 28 Oct 2020 15:18:10 -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=QT3KbY0c; 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 S1731371AbgJ1WQH (ORCPT + 99 others); Wed, 28 Oct 2020 18:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729987AbgJ1WQG (ORCPT ); Wed, 28 Oct 2020 18:16:06 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6041C0613CF for ; Wed, 28 Oct 2020 15:16:05 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id 23so920886ljv.7 for ; Wed, 28 Oct 2020 15:16:05 -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=Kgs7oOpZiYMl5H9WjnHmd1QkROQmWLTfKSTmyAsUaIY=; b=QT3KbY0cn1J1iTy+1fLJ5oZJ8uOp5dPKiT042ECYgACs1DaqqiFE004N4MiEUzm/sp FAGwauvRmcA2zwmtAvP5tm66nl0F5bmxowyhvdvHkCwxaSCMv3YtQfyWj7hKqMK99pi0 rq5bjRVVgPgc8xm1MiAb8eBS1PmEGqTAsetdy2p0Dee1QAfrvbj6JSLyEingLRR76jaN 0enE9H0GyhN8UXfmQu0BaAx7y41A+P7mvBrHXBv9gRPzR/lLI4LyA8ZopOafNnfGonG7 vKpodtSSQw5wZDx52aJEDswkFk29D6mftf+sufUo7K/tHY1PwOpGvSjyEaw5MZwjcwCR Ef2g== 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=Kgs7oOpZiYMl5H9WjnHmd1QkROQmWLTfKSTmyAsUaIY=; b=NKyfrPXAw43Hsbr0+NJ8ff7L9y21cbXsqJM9X0B5n51GSBxhW/MeuUVnqER+koT9i1 p5VY9B/x0glR/0AeiXOjV7cKToOsIqETG/eym0RZ5W7nVBlJm9Jc9bSDuvEGzWJMQ/Q7 pbhgF7voITOL9QV0Ybq4NYGAph/m+9ocQ0cPkodo0QjfbCrfGzvbIZqQoyhhRmIY7J1a XsEflJTmQdv7+UzYE++hGI49fZ46KdUiY/ZbaGz8fpY4/COCfjU53o8ZDH05V88DfuJx apa3YBwfip5Rg2MtmC8qd+hFi0RTCF4MA1aPbppgZapZ3RJMCy1Xd+vfOYDsaHnrg/jo 3KCw== X-Gm-Message-State: AOAM532pc3vEoQ52ZQokWSijGNETX3aTwBDrDXQr6a07LeATQCOpvZhf OO+LINtD9nsFj0NNfHpURKll2U3NNNOdHQ== X-Received: by 2002:a5d:420b:: with SMTP id n11mr5541659wrq.218.1603896953907; Wed, 28 Oct 2020 07:55:53 -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 l5sm7110494wrq.14.2020.10.28.07.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 07:55:53 -0700 (PDT) Date: Wed, 28 Oct 2020 14:55:51 +0000 From: Daniel Thompson To: Alexandru Stan Cc: Heiko Stuebner , Rob Herring , Andy Gross , Bjorn Andersson , Thierry Reding , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , Douglas Anderson , Matthias Kaehlcke , Enric Balletbo i Serra , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v3 1/3] ARM: dts: rockchip: veyron: Remove 0 point from brightness-levels Message-ID: <20201028145551.pn6nxi6skcfbqori@holly.lan> References: <20201022050445.930403-1-amstan@chromium.org> <20201021220404.v3.1.I96b8d872ec51171f19274e43e96cadc092881271@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201021220404.v3.1.I96b8d872ec51171f19274e43e96cadc092881271@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 10:04:43PM -0700, Alexandru Stan wrote: > The extra 0 only adds one point in the userspace visible range, > so this change is almost a noop with the current driver behavior. > > We don't need the 0% point, userspace seems to handle this just fine > because it uses the bl_power property to turn off the display. > > Furthermore after adding "backlight: pwm_bl: Fix interpolation" patch, > the backlight interpolation will work a little differently. So we need > to preemptively remove the 0-3 segment since otherwise we would have a > 252 long interpolation that would slowly go between 0 and 3, looking > really bad in userspace. So it's almost a noop/cleanup now, but it will > be required in the future. > > Signed-off-by: Alexandru Stan Acked-by: Daniel Thompson > --- > > arch/arm/boot/dts/rk3288-veyron-jaq.dts | 2 +- > arch/arm/boot/dts/rk3288-veyron-minnie.dts | 2 +- > arch/arm/boot/dts/rk3288-veyron-tiger.dts | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/rk3288-veyron-jaq.dts b/arch/arm/boot/dts/rk3288-veyron-jaq.dts > index af77ab20586d..4a148cf1defc 100644 > --- a/arch/arm/boot/dts/rk3288-veyron-jaq.dts > +++ b/arch/arm/boot/dts/rk3288-veyron-jaq.dts > @@ -20,7 +20,7 @@ / { > > &backlight { > /* Jaq panel PWM must be >= 3%, so start non-zero brightness at 8 */ > - brightness-levels = <0 8 255>; > + brightness-levels = <8 255>; > num-interpolated-steps = <247>; > }; > > diff --git a/arch/arm/boot/dts/rk3288-veyron-minnie.dts b/arch/arm/boot/dts/rk3288-veyron-minnie.dts > index f8b69e0a16a0..82fc6fba9999 100644 > --- a/arch/arm/boot/dts/rk3288-veyron-minnie.dts > +++ b/arch/arm/boot/dts/rk3288-veyron-minnie.dts > @@ -39,7 +39,7 @@ volum_up { > > &backlight { > /* Minnie panel PWM must be >= 1%, so start non-zero brightness at 3 */ > - brightness-levels = <0 3 255>; > + brightness-levels = <3 255>; > num-interpolated-steps = <252>; > }; > > diff --git a/arch/arm/boot/dts/rk3288-veyron-tiger.dts b/arch/arm/boot/dts/rk3288-veyron-tiger.dts > index 069f0c2c1fdf..52a84cbe7a90 100644 > --- a/arch/arm/boot/dts/rk3288-veyron-tiger.dts > +++ b/arch/arm/boot/dts/rk3288-veyron-tiger.dts > @@ -23,7 +23,7 @@ / { > > &backlight { > /* Tiger panel PWM must be >= 1%, so start non-zero brightness at 3 */ > - brightness-levels = <0 3 255>; > + brightness-levels = <3 255>; > num-interpolated-steps = <252>; > }; > > -- > 2.28.0