Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp423350ybh; Mon, 20 Jul 2020 21:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYq41zhMZRCCiHU26ZTa3wSoB1Y5XLaJ79L82xcQTvHNRqITp7xAoMXCH7PMe/7wheQ4qv X-Received: by 2002:a50:da44:: with SMTP id a4mr25138738edk.379.1595305805783; Mon, 20 Jul 2020 21:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595305805; cv=none; d=google.com; s=arc-20160816; b=D+9Rqj7PGFU16KpWUF3rFYEP5tN8Tdv/iB0CC8g9XNvVnRxMo6SqUZMzNQzRCeU/cC g+fptaI+NlBKlKH3XH3zn0UxDsBhcjTQrfIZhqxwQxbTx4rucfG5A4CmfbAGR4ig+rvm n1SHb0XFQH3rEmM45BZjbWyTROg4trsR7oRly34ynmPNrQSi3g0Yj6dYIOqAiaSC7QsL SArdYHktuJHleL8uMiw/0MIbOLZnxmsCf6LALVvUgJ/7ghrv14ONDY9EirFH9i7Qn4+P 7cQYO5LfMCCaHldKNeNciN/WPXEzjt0UZXI/arr7NqeUbRL/9i/viDXGPjD1GvQQoow2 Ux4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v5DIRukwkI98RYm4Qg9DISHCAkP2l2iEddWUuvGqnjI=; b=ojA4JTKCePG61AsbrVB4Oci6EV0njGklEIR+2WyyXSiRi4r+gIe/45o47yPoMFnXNF nSxN59x4VDP/QcxEULJjc7131u/UeVeX20DHYfDhLvWmjx2DRUiY5wRTTyp70Igoa4hU 2eCjjNWe79GF1AEA4hW6gq9BuIZLJ0ROOq5smsyxtSP++9bqeeihaHb6Jem3jlmffZ0A oXif8IaIu02fYG1DV4L8bX09/SvxUo6dFKfmrSOUCFJeCHN9m1YXniR40CNoYlzZS/LP tiaUfxf5nCNclI0O9jFOX2jcDoff1fd5Pq2WJXoD7dzbEcOgqpiBbQjzQ97k8J58OiJZ P7vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="N/dp9Ioq"; 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 18si10123883eju.472.2020.07.20.21.29.43; Mon, 20 Jul 2020 21:30:05 -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="N/dp9Ioq"; 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 S1726749AbgGUE10 (ORCPT + 99 others); Tue, 21 Jul 2020 00:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbgGUE1Y (ORCPT ); Tue, 21 Jul 2020 00:27:24 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C39DEC061794 for ; Mon, 20 Jul 2020 21:27:24 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id j19so11331534pgm.11 for ; Mon, 20 Jul 2020 21:27:24 -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=v5DIRukwkI98RYm4Qg9DISHCAkP2l2iEddWUuvGqnjI=; b=N/dp9Ioq7OLVcCOwash9KSFssj8jIbJUFR6b8tP8e+vEJwiLmWFgkAsVB9nOd0if4D P3ZLOqJgVpdVgZ347tBVo6nFNCBHouz4wA3H96fDyiMLb1tysqPqlqkrdGyFLbVqJtj2 NKTnsjColGrhQmU4O9/Vhs4VscuviZPH175ls= 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=v5DIRukwkI98RYm4Qg9DISHCAkP2l2iEddWUuvGqnjI=; b=uEewLq4PXsEfF3QxqF5dZYpLMNjlZUQ+KceTL5TRUxv+ZTEaDJYyxBMiIusTK2SXRF KB4nZgXCibUpoVS/mxcf4fafPiRGJtFIEiQv9nRhf/mN3KYA596dQ5FGP8wykyzdDQOB uew4YkCxad3ECDSplGdDTVj6TLgVpMcAi/2xTshHBNi6PnwsJMWM8I64tO9kSkBTMSGC CIFvQD3Ktl8H3i3sJwn+Oog3ScYQQI8M5kkrBdboAZBYea0CGn7ry8qiz2iLvc9HNsZf yTXHbbrDOmWWAuf0RW5KgeYVbbMyPElQhCbFEvV/6KSAD6BQf1cg9MMsILoWEXE2C+z6 UpOg== X-Gm-Message-State: AOAM53158OSNSPgbsVTfb+bmM6mcpbh+sQBrCqvwSXcbBuSLxcCzE8ll JkWhe+VtuuwA/mH1LjBhmO4fjQ== X-Received: by 2002:a63:b956:: with SMTP id v22mr21098040pgo.242.1595305644265; Mon, 20 Jul 2020 21:27:24 -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 o8sm1207075pjf.37.2020.07.20.21.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 21:27:23 -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 Cc: Matthias Kaehlcke , Douglas Anderson , 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 3/3] ARM: dts: rockchip: Remove 0 point in backlight Date: Mon, 20 Jul 2020 21:25:22 -0700 Message-Id: <20200720212502.3.I96b8d872ec51171f19274e43e96cadc092881271@changeid> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721042522.2403410-1-amstan@chromium.org> References: <20200721042522.2403410-1-amstan@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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'll still have the 0% point available to userspace, "backlight: pwm_bl: Artificially add 0% during interpolation" takes care of that. 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 171ba6185b6d..af4b21636c08 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 383fad1a88a1..b25aa2f3cbee 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.27.0