Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3553267imm; Sun, 17 Jun 2018 23:21:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKo7P4VvSW1MvJVGfCLJMWFTVF9vDqjvukyQ913dPOhmwcwibsXu6sbbf7L7CsEoVRdIrE3 X-Received: by 2002:a62:190d:: with SMTP id 13-v6mr12096368pfz.103.1529302865219; Sun, 17 Jun 2018 23:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529302865; cv=none; d=google.com; s=arc-20160816; b=dljX5DVPqUWR9lOmwahScMhoN2hvlmPr0C0xALgrtbRbGiW9HPp6PPKPoRpMe6pWbZ +TwdI7iB4ACLBra8fRgmsXVxIrtRNHq95Xa/Jwtd3sWTYX576+3bfdnu1LEjAqlzqZld tTyhAhC9dHnX2ocAessfAzf6zdb7LWT0xY/tcTq7LQ5rQOWGrdqLSDNzBgh0m5XENy4Z 43yZV12rqRVd8I76yZ/iVKuchSNx2UwSc63oPZECAnL2JIZZA5jzfy3FAmmj8mRLzsB8 jCkUyiOTa68RuoLRXI0ceMXNDgKmPKXNADoduG5E7/mQJTxF0BCrALdHTFioo4/DmIqb jwOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=3i3x4jfcKJbLNK51ehJ/j3kzMNKnL+lc0t1GQjnlUqU=; b=O97bvIngJCTV26B/neP9AS4YVCfwj1KC6dLloF6KnCbey8pK2ecdXVzHx/kR6yhMld I/MgQkMu4eNIx4NfhSgyXhA/RQXdREwqO5sACcrp4yn/DI/FcN6szHGFyB7ZuOaaMCYQ 4rviqJXgEMAZwMOf+Eahyw+Cjg35KRHPNYd2BgJH8qfAh5Qy/g83s2DZxYbt1bGPONzY VfbAO5q4O3dUprKZ99hUxLaCK0seCOYt93+VCmIgfkLqsYiIVmk0fzY3FOAb6v4ecAMc le1xak04DWSmD+CpJoSN53TnxdBjeptGPkYAP3lAqaPudzd094D6eT70JOYyUWTbWszw vvYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCeVUI3j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 124-v6si11816028pgi.425.2018.06.17.23.20.50; Sun, 17 Jun 2018 23:21:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCeVUI3j; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S932723AbeFRGUL (ORCPT + 99 others); Mon, 18 Jun 2018 02:20:11 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45781 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932289AbeFRGUI (ORCPT ); Mon, 18 Jun 2018 02:20:08 -0400 Received: by mail-wr0-f196.google.com with SMTP id o12-v6so15428721wrm.12 for ; Sun, 17 Jun 2018 23:20:08 -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:content-transfer-encoding:in-reply-to :user-agent; bh=3i3x4jfcKJbLNK51ehJ/j3kzMNKnL+lc0t1GQjnlUqU=; b=FCeVUI3joK+LvGnafpsnUHsCIYyAhAyjHK9tFtn+uApbgmlJULJv8OunlMMdb4HGlp dJy4CzlYm+DWpSO3MOiDfe476MiFeEu/kYjtWi8LB7/eFWRQYLGKDt0+ky80ZP8rDb30 5ygBQrv0DFr/GJolyB25y4OX4RyQ7mVRU+7Tc= 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:content-transfer-encoding :in-reply-to:user-agent; bh=3i3x4jfcKJbLNK51ehJ/j3kzMNKnL+lc0t1GQjnlUqU=; b=Ol6jjWR2lCUXf8+Zih23xUIwqVk9jPBcvTVFHjwphimZ+tAf/a4jQV1sg24RK35q+P ybs28MrtevwJIQR7R+9EuON4yEAQuEC3ib0VkGXZOuhf1/A8jdrzHEmjxnyOL2h0qyL5 kVgsJSOJC8T8hf0qw+NGTHjhthrE4js96zXG6owSm8aNHjtDMBdsDfRFyBG0it5sUqbZ K/4A6KDYnL4AgycarjvJ3fojXEj03ZFljGQuMmtvp6fNW1VArnVy4FqsXEC1a/x+jchE Kn8mnxHI0/jRr2rixnQ/NdaQDpGjBoDQ2pLiz4KUVD0D+P/1oGMfNdNGuZSolY9lhJl4 G87g== X-Gm-Message-State: APt69E10uFLWT4DNBSHuKCSDeNbAf3bRx+VD+e9uH2iLhaz8Jg4AOH/q GPcM8pIv6qiTZA2QiX16BV9LJw== X-Received: by 2002:adf:efcf:: with SMTP id i15-v6mr9698432wrp.195.1529302807693; Sun, 17 Jun 2018 23:20:07 -0700 (PDT) Received: from dell ([95.149.160.78]) by smtp.gmail.com with ESMTPSA id y30-v6sm16876202wrd.70.2018.06.17.23.20.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Jun 2018 23:20:06 -0700 (PDT) Date: Mon, 18 Jun 2018 07:20:05 +0100 From: Lee Jones To: Enric Balletbo i Serra Cc: Daniel Thompson , Doug Anderson , Pavel Machek , Rob Herring , Jingoo Han , Richard Purdie , Jacek Anaszewski , Brian Norris , Guenter Roeck , Alexandru Stan , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [RESEND PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye Message-ID: <20180618062005.GE31141@dell> References: <20180409083333.1249-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180409083333.1249-1-enric.balletbo@collabora.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Apr 2018, Enric Balletbo i Serra wrote: > Dear all, > > This series is a third patchset (resend )integrating the requested > changes. > > The first and second patch what tries to solve is the problem of > granularity for high resolution PWMs. The idea is simple interpolate > between 2 brightness values so we can have a high PWM duty cycle (a > 16 bits PWM is up to 65535 possible steps) without having to list > out every possible value in the dts. I think that this patch is > required to not break backward compatibility, to be more flexible and > also extend the functionality to be able to use high resolution PWM > with enough steps to have a good UI experience in userspace. > > The thirth and fourth patch is a bit more ambicious, the idea is let > decide the driver the brightness-levels required in function of the PWM > resolution. To do this create a brightness-levels table filled with the > CIE 1931 algorithm values to convert brightness to PWM duty cycle. > > More detailed info is available in the commit message of every patch. > > Both functionalities were tested on a Samsung Chromebook Plus (that has > a 16 bits PWM) and a SL50 device (with a 8 bits PWM) > > Waiting for your feedback. > > Best regards > > Enric Balletbo i Serra (4): > backlight: pwm_bl: linear interpolation between brightness-levels > dt-bindings: pwm-backlight: add a num-interpolation-steps property. > backlight: pwm_bl: compute brightness of LED linearly to human eye. > dt-bindings: pwm-backlight: move brightness-levels to optional. > > .../bindings/leds/backlight/pwm-backlight.txt | 34 ++- > drivers/video/backlight/pwm_bl.c | 232 +++++++++++++++++++-- > 2 files changed, 246 insertions(+), 20 deletions(-) All applied for v4.18, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog