Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp710313pxx; Wed, 28 Oct 2020 15:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8CzPp1V0wNY3t8BeqfUEXOOzOpa459kWyZKhEBUB5wmvFGgiM9sAigULlVrivB+P00/9e X-Received: by 2002:a17:906:9588:: with SMTP id r8mr1195962ejx.389.1603923110327; Wed, 28 Oct 2020 15:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603923110; cv=none; d=google.com; s=arc-20160816; b=mUy27L0xeYJL13hvg4exm8EkPlyuKPMs9PMO91dUyY9sQAYxXfAmOmjhoab7J562Rq 120HKXBNboztqWlYxmpSP00kLDI0tu2lHVyt+nzz8MsCoO/el4jD+WA8quJTsv/Up8A8 CwnNejMjfDAv6bJIj6WNd0LrrXMQJ/63zwGImm8GImHEksXV0jSHubB5mh/Z1vZE5rCZ twauSbI5wX129vmdLUI/ghZGALE70SH1u0csS2V9BasmBfvGd+hSwGA4Vm5DjAcP5djo u8QMBQ9Bzt+Km0BxYpSkUHEk+Cn9Njnm5rbKc7b2W6SnIJ9B/+ylaPFtC6NLKbm95H4a N4LQ== 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=zrUkUnQWdd+Y/Q8i7IOb2KIFyQ5NaKYRP/IYCUM5/+o=; b=1Lrz1WegAZEqX5e6ETp0LqAV8kBeDhIw5e7W0nlOlDbygZvLnkz5kc5KBODr6GYk+Y lhbuRdVmw+NaYpVZpDVkCnYBdQRiI2jXLWwLETbZj3Y7PhWiDos708N7dgmqJMJOmGb/ alDiAa7HBWVATOz+CMOv2ryxu+fxJdhTmmCbXN88Cf4HH8YPOaQaZmEaOcuF73+ZLtNC saQY61AYqWVg3n40ZOO9c8K0J+HfAs8gNVwSlr0PZ8a5CKd2r76BSl+hiRq0PhuBKkWN HqbsyxILeHQtjOD870sZs7zhX0nX0+GT5dVr3i5v0WoN/aR1KxU2y5lSiaOS2GEj5x4E dWew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JrISsXly; 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 d21si445376ejr.160.2020.10.28.15.11.28; Wed, 28 Oct 2020 15:11:50 -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=JrISsXly; 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 S1730353AbgJ1WJy (ORCPT + 99 others); Wed, 28 Oct 2020 18:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730190AbgJ1WIv (ORCPT ); Wed, 28 Oct 2020 18:08:51 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307A2C0613D1 for ; Wed, 28 Oct 2020 15:08:50 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id c16so708329wmd.2 for ; Wed, 28 Oct 2020 15:08:50 -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=zrUkUnQWdd+Y/Q8i7IOb2KIFyQ5NaKYRP/IYCUM5/+o=; b=JrISsXlyRVaK23OpNAQoKp7miwW6GWni2F4aktn0FHoa2pYYDJAM5bgevk5mGCAmcb TxNkGiJk4LVTwLSfB22U8RzOJNxBQZkmKoWBOrgdwirKo0yFwscx2cJIPvLJS1oucsti 46RuIPA96cI6uuIVXOz/aiul4/A3EnykMCPB97d46zs4npDhHui51LvugX8PsXisuYAc JcZMdH0a/PDKq4Hu1afYXYadQIlBr4UhKGY/e7gM8D/jM/juHmTav/9SmEskI/h374PL 9zdmk0MDpmtovVF4oOJrMbT//x1fqnDH2WwGdgf6xC8Hrlr0ciOiMvLk5DK2YsYPiq8g c5aA== 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=zrUkUnQWdd+Y/Q8i7IOb2KIFyQ5NaKYRP/IYCUM5/+o=; b=sue5Tj81m6em+r7PPvbd5bthKtdnz2mYLsl0Zsvl8KlMophGXdA8LdOGJ3Drd1s0Cf FJiiJcD+rzvI6qbgdhpwLaZ+epxhj5izjfZQUss/o6U7Ctb7tKLPdX7A91+wvnp064h2 +jBziZ+x1n2+aEakaC7VD3twYilQF809uJd/8OB/qPdPb1N8AsObAFOddYqiyQmqRJdf bYNvzR9unnc1YPVISPTjFJNc987W5ID5ApRPqD9q5PSfjogiyGMVAWHoKQPDQxPTbEJr oIOs7sDsb3RHc1DSXKHtveYW5LkZjlVIzA4DKZw3qd+QjYf1GCnF6ZwxWQc91Rbee00d sUzg== X-Gm-Message-State: AOAM532MRu/RM4soTwQKIWPGIvx+s4BvcYiAB0Ws2WxNae8XqHrAHhQg lxmE1f2w1ZT9ozxrsu2pHbtU+wJMFHy0mQ== X-Received: by 2002:a7b:c1d5:: with SMTP id a21mr5110912wmj.38.1603896980631; Wed, 28 Oct 2020 07:56:20 -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 s2sm7540795wmh.9.2020.10.28.07.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 07:56:19 -0700 (PDT) Date: Wed, 28 Oct 2020 14:56:17 +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-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] arm64: dts: qcom: trogdor: Add brightness-levels Message-ID: <20201028145617.ermdpqomthxxj7qe@holly.lan> References: <20201022050445.930403-1-amstan@chromium.org> <20201021220404.v3.2.Ie4d84af5a85e8dcb8f575845518fa39f324a827d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201021220404.v3.2.Ie4d84af5a85e8dcb8f575845518fa39f324a827d@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 10:04:44PM -0700, Alexandru Stan wrote: > We want userspace to represent the human perceived brightness. > Since the led drivers and the leds themselves don't have a > linear response to the value we give them in terms of perceived > brightness, we'll bake the curve into the dts. > > The panel also doesn't have a good response under 5%, so we'll avoid > sending it anything lower than that. > > Note: Ideally this patch should be coupled with the driver change from > "backlight: pwm_bl: Fix interpolation", but it can work without it, > without looking too ugly. > > Signed-off-by: Alexandru Stan Acked-by: Daniel Thompson > --- > > 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>; > + > pwms = <&cros_ec_pwm 1>; > enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; > power-supply = <&ppvar_sys>; > -- > 2.28.0