Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4686984pxu; Tue, 13 Oct 2020 04:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbuVqAo0AvrERXAJT9yGmlwB/EWlpDDRgduXu9QPOxgXpDx/fckyZ24MeUPVuVC74Sq49V X-Received: by 2002:aa7:c305:: with SMTP id l5mr19098590edq.364.1602590329393; Tue, 13 Oct 2020 04:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602590329; cv=none; d=google.com; s=arc-20160816; b=Pxp0SQS5Riz3Cm3QxKt44tbN7P14Vfvt43CJxuFTbk4LorcGKA0yvx8ZZHnASgs7CD ye9XX0XiVXGpnzS6ZVy6mQ6KKFjO0AL72JVPTw4F6/VWLZjL6nzh7GL3Nog5d/y8JSvx yJhVMjxArsOVq5/JDbrS/JrLJZf3V53S6bPUCdf6nAyxZzccg6pkw8Rc7I6St6mqrso7 L5OQ6H/ulYAn7GWMu7ssPpN0W+XHMVs3HvyfSq4a/24Hp8lCKD0fmyZ1KbMCc8n9QDI5 VWyZSy4kYT+IGgtOXVcUQVQtgPGYhPt4CDdio22iNPOCZNaFc0SFzEyjCcOeRdONVv9+ 3u2g== 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=PX6utEv95nZrK8Cio4KcHOFe3eh1+n1xQTOKgWru7Q8=; b=HRqGPa+QsLZxJnggajrSic066cALUEC32l1uoo7I4h2YI8TJU9XvHXdEcl2G70M4bY 5Khdhffgx9QrMvtJUDh9n1wMuTYyNgjzO4JB3mOfnbUSSv4fHPNQ8XNOkrgSYg+l8yR1 U2IrWFghz8FUgycQSl5GElxT0jNGV5EcJhBYw2RkoonZr4oZon2lshgvsUPs+IH/qX+U zeSy++3eQmGzFcXr7quT/eznPRFb93AILhmOGDinc6zrEk2RH4XdwOlYMy3QSWsG03Mr cFp0DY8WdpSLjgYMY+8M9kOMtXU5ZZoSxvSRurf4FJu8Mh1WW/RHoz1rDkPOtN5Yp6LA xppg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Yq/nvpaQ"; 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 t27si7543899edt.158.2020.10.13.04.58.26; Tue, 13 Oct 2020 04:58:49 -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="Yq/nvpaQ"; 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 S2390649AbgJMIBg (ORCPT + 99 others); Tue, 13 Oct 2020 04:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390588AbgJMIBc (ORCPT ); Tue, 13 Oct 2020 04:01:32 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E762C0613D0 for ; Tue, 13 Oct 2020 01:01:32 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id o9so10234885plx.10 for ; Tue, 13 Oct 2020 01:01:32 -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=PX6utEv95nZrK8Cio4KcHOFe3eh1+n1xQTOKgWru7Q8=; b=Yq/nvpaQ5Hpx/VK+3t8sVeKV8lzlwCiDy9N4+pw8gUCZpI3XS9cL9KwWtSFkhWhisR LGmwRdWOc8I/GXFP/OoRfZ5q2niv7Jht6WP1s7Niv6VRkxKqD+4GSHYXr/EGk+DgX4ts Psnki/01Xl8AnE4gxxe2SnN1XiYtoSXrDxcqE= 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=PX6utEv95nZrK8Cio4KcHOFe3eh1+n1xQTOKgWru7Q8=; b=C9Aag5JL+di9S9PO75xEolcEW/r9kOFjHKXC+imqN8Ah1SAQGW1k+nHLaaqtoxtCD9 PDq7QPEUmuSmNhSKrEVsuLmZNYgl+eguivtLEP5cCvNdj+1F88FM+WImaADrbTxwdUdz tRCRn56un0M35RBA+90R3P5lbjR9/jF9CtXpOk6BHleSTlfNrnxvisORR9B42SQjICE5 wbJzcBBE6kJ17X3C/g/GHpm99i/kE+dm2GXm964dC6TLIU4Yn0MVLVCfbhgv2gOtQvst 37F2cwZJsxYe1oQhTMoN3ltOcIR6vNbSYA4NxLJtDqAXDPd+rMmMkrIMwbMK2hvMNfa8 KM5w== X-Gm-Message-State: AOAM530kSr89MFSesfEE2B5k+ldiqxGI8X6cIi5KhRmsSphnccnBXrjh 68/Oyy3bpevf/AYrbYA/YFZdcQ== X-Received: by 2002:a17:90a:160f:: with SMTP id n15mr24051942pja.75.1602576092037; Tue, 13 Oct 2020 01:01:32 -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 y124sm14956924pfy.28.2020.10.13.01.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 01:01:31 -0700 (PDT) From: Alexandru Stan To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Heiko Stuebner , Rob Herring , Andy Gross , Bjorn Andersson Cc: Douglas Anderson , Enric Balletbo i Serra , Matthias Kaehlcke , Alexandru Stan , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH v2 2/3] ARM: dts: rockchip: veyron: Remove 0 point from brightness-levels Date: Tue, 13 Oct 2020 01:01:02 -0700 Message-Id: <20201013010056.v2.2.I96b8d872ec51171f19274e43e96cadc092881271@changeid> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201013080103.410133-1-amstan@chromium.org> References: <20201013080103.410133-1-amstan@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the "PWM backlight interpolation adjustments" patches, the backlight interpolation works a little differently. The way these dts files were working before was relying on a bug (IMHO). Remove the 0-3 range since otherwise we would have a 252 long interpolation that would slowly go between 0 and 3, looking really bad in userspace. 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. 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