Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5415874pxu; Thu, 22 Oct 2020 01:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG1JDfjO/ed9Uu5U6doEod9H2TCSl0l8fkMOahVBsk+Kh6LST/Ca0lxh60p4Ru+Qduoxz7 X-Received: by 2002:aa7:c9c3:: with SMTP id i3mr1222617edt.236.1603355204554; Thu, 22 Oct 2020 01:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603355204; cv=none; d=google.com; s=arc-20160816; b=ASs5mGq7lVD08KEgEODgTAXzoPhcUAuQYrgd92YQFn9EFGUaxFLmKOU1hJ1cQEldAs riVB3divMTBV9k7YtNr/tfiPGlNlXY7JKyFBaPKAa3TQNnO8a8Y2emN2tVyoAvNgUe7R NBrP/HT2rEjNNToDIA9doySYGhGY5jV95i4X8npV8tkD+cthdsLYn2pK+bSWySxHhjpl ZMWpDFs04wS1XgcTAZ+6YazCm0ZN/oZxtUvh8RK+I5eORnEWglvjhYBthmkm8QgrJ6yb YbMmHOhdmmUu0HrRqzbPbl+UeGEbyeKzWRrKAWqDegyetzUcloepfcjTvjp6CkWLxOFP MT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K2s/WABeigsA7Mtk0S1o9sQLZAsD6w8Z+WN9DH8FOQc=; b=0DFb5W3rYvi8VXDz/MT3Ref1v73jpAFQ7RuuuTm4CHA3IQLdCsYhvs7GHj32gV5+Wd uESyQlnLYlyqUKNgVf6OJPervBb5hqj4T1znb/CToMfvQmYzk2YPYDOxaLpp83s5xaj4 kliI6owdm9pCpxEpy8hnZ52hia2lyYnSfgOId7tMAPA/BKJsdhs6CXlONaTSS178O6q/ 3Ti6tuoeHLybHKYMXYLlqg1I8TmyFeDhmgvzrXVjti/s09W+d8n0eAyLVk0Ev4evROLx CH9gXBfVSUwIg8DRQ0WgwbTsxq+r1lBEidWXLJZrCDQkuKdlbG9QPJLcGuxqaG69N8L4 iksQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nlxR/fPH"; 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 j1si408687ejx.446.2020.10.22.01.26.22; Thu, 22 Oct 2020 01:26:44 -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="nlxR/fPH"; 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 S2502102AbgJVFFS (ORCPT + 99 others); Thu, 22 Oct 2020 01:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502123AbgJVFFR (ORCPT ); Thu, 22 Oct 2020 01:05:17 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93BB8C0613D4 for ; Wed, 21 Oct 2020 22:05:17 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id d23so319737pll.7 for ; Wed, 21 Oct 2020 22:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K2s/WABeigsA7Mtk0S1o9sQLZAsD6w8Z+WN9DH8FOQc=; b=nlxR/fPH/lcxICagndJXRM49tb//f/NoqPZcOrpnte9T+UHf5tUQMXKMOW48/Ie8yy uAdP6rToRhWnhNHnghik3iVL4daQCvLzujuFNaAHnpAEvhPJ3foQdFeAvs+UzXYCSWkV vVE9SUk5KveUwC9mN14Z5Cvwk7ObaDWOF5WXg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K2s/WABeigsA7Mtk0S1o9sQLZAsD6w8Z+WN9DH8FOQc=; b=MSW9BtjKxR+3BqERo75gPO+oOhHUDUFSXsBl/Pxu7BUVk9ILOKwTn3fAm6TScuuuFd 9YhCgERWr4uvLN8ANf+RQuLyWYBMHFoBmKNPYTBIsTbyldBIjJdhuRrQ8CbVnzc/w60D Ha9Z6HepON31h/8ib6myFAPsLfeMh6ytpcYC245zBlTR4vZDXNkYlidEtTAKQhfAHIFm 2KEvxDKl4USf7k7Yh9JGb3oBCjGZ4sR004QADMLz0gfAzOAR3OxJy3o0ez8kTpLlUaov Qxt795cJ4ErTAMb+BzwBAM6vmE5bPSWn/CNHQgraSGuUDY0m2FOdGurm1plee5Z/N/9c mahA== X-Gm-Message-State: AOAM530WLGdRP3In9NoJ0t6ehitE4VCjbQlXzPG018DXgZSfJItmE0Fv 0e9XpswaHAqrzN3IQuhFMru8KQ== X-Received: by 2002:a17:902:bb8c:b029:d2:2503:e458 with SMTP id m12-20020a170902bb8cb02900d22503e458mr1016068pls.18.1603343117155; Wed, 21 Oct 2020 22:05:17 -0700 (PDT) Received: from alex-desktop.lan (c-73-63-253-164.hsd1.ca.comcast.net. [73.63.253.164]) by smtp.gmail.com with ESMTPSA id q16sm394954pfu.206.2020.10.21.22.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 22:05:16 -0700 (PDT) From: Alexandru Stan To: Heiko Stuebner , Rob Herring , Andy Gross , Bjorn Andersson , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz Cc: Douglas Anderson , Matthias Kaehlcke , Enric Balletbo i Serra , Alexandru Stan , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH v3 1/3] ARM: dts: rockchip: veyron: Remove 0 point from brightness-levels Date: Wed, 21 Oct 2020 22:04:43 -0700 Message-Id: <20201021220404.v3.1.I96b8d872ec51171f19274e43e96cadc092881271@changeid> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201022050445.930403-1-amstan@chromium.org> References: <20201022050445.930403-1-amstan@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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