Received: by 10.213.65.68 with SMTP id h4csp1627759imn; Mon, 19 Mar 2018 09:06:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELt3wdYWbyTp3y09z7xNfAd1qMQHIupQ0db3gYzadEa+Tb9fSrqGfps2MMXtUlH4rjBAJuDi X-Received: by 10.98.141.65 with SMTP id z62mr10780850pfd.129.1521475618600; Mon, 19 Mar 2018 09:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521475618; cv=none; d=google.com; s=arc-20160816; b=TCb5AADZmTVrDRn0tGE7euC8khj3L3NHaCqOD4cbQucmEnljTyrHaQB+ByIVaC8JDU NHrmprufQfMvawh5OdbPxPSNYBdvj1enxH5gjFdPsiEDyNoQk8gkJ5SE8QpR6X4nzpfz XVcNu0380W9qwqSS05j7HoMS/U/jdS8sc3u3EgRv7aR9S+9MfgpZNgQAB5iCPigRurUV OJArmu8ufxIjglWcjJuwYgzY6ZAyYxXIOwbQ1ZHtt4iT8YKvzJSma+lAbcqcFNLx3vTY Z2r8K47JHiEDztvrawKmtMVeA1Vb/I1wrBYQaElZLSsEc8JhhSoLdz9JxHcP//DvXGKV 4G1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=i574/D528qrMUJ05aDD0BQuRRdmpclkx5bS3IfbWIAQ=; b=m4ceriGM+yY/fVpcCQlncKlVvcdMhScvkvsHNewuHYe4XOzA3W6gVQWgjyfOwAiK7P y2NWub7Zc7bIv9EIiSwfIn3P5K2DcbrRfS15LmBvTkf0B8CHugA2WFnnbKwAbD3uYXe3 XRpZJ02ByUKTuruyCGnSEn2gFn2Vk9aaKo+0+ZxTcMuF2JOdRlCQTyWIkSbUXQgwHv8F 45gapCCsDGX6bPZWznDFxD1NKzJEep2Ldx+gSFlnK4IZ5erXiGNBwKvtJrHOh3fkmuvh luV2k/ZuxM9vb63re8eeG1dn3JuClXkk4w9J2m0A9WYSPNbDIi3WiBgIVG5SbEkgbTqa pEYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBG8dbqG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si161779pgb.434.2018.03.19.09.06.43; Mon, 19 Mar 2018 09:06:58 -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=@gmail.com header.s=20161025 header.b=WBG8dbqG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965656AbeCSQFD (ORCPT + 99 others); Mon, 19 Mar 2018 12:05:03 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:33945 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935052AbeCSQEd (ORCPT ); Mon, 19 Mar 2018 12:04:33 -0400 Received: by mail-qt0-f194.google.com with SMTP id l25so18529662qtj.1; Mon, 19 Mar 2018 09:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i574/D528qrMUJ05aDD0BQuRRdmpclkx5bS3IfbWIAQ=; b=WBG8dbqGe/vF5PIX3+dXYuG9kV6IZupvm5ZF3dy2rAunEgYe/o0xI+loYv0UgK1/cG ocdhNEKXIVkv+T33KLwl9TQqRC08UGckIaKH+4AL7VW2UMG2T3+PH5QjWCaZ+iO0J1HZ PwrTSmtLkY8aNnans0RoiAtIBrFOhkcJFCpaSnZTqpNEmQltFWLYf3sKpVOtEs+mrLL6 MotAMswZKGK2R5hV31fkBeGB0HLYYmjCJKgf3JdUEkYX0Hx2Vdrh2UyLmSfC0sJf2Ttt CjjGWGmwMfOonteBgMwqaySD6NnSREPjL8Wx90Ch1dnF/CP2mPycLX0Wqp75Qbme4QSZ a6BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i574/D528qrMUJ05aDD0BQuRRdmpclkx5bS3IfbWIAQ=; b=J8B7CYWwSA5WtzYk3OkTLmZlIMAVXEq+Zb7Z/fQs2qVnvTYkRFc4okYtlC5EvGdzHd EQH7iHMx5cv/Cu3zvok82XHGRcWG5IdvVpGfIGhsEcQYj6Ma0np6JxZjDjUFbKZxIa0U rXeJZDj8hK4y1F9FCacQfKwkGki+itIP3Y+TcGteG4575247buNCXnRYgkWF1plgTIOs oz/BMZtEMMC3uExc3MvNnn4GKYAwGNLTyNIBhg/385PnZAhI5U4LGCaWC2DjSM7w8x5l xpQi+ZfHb0D2qvuaCoKD944rCAYZ2IuaTA2PfKWf7l551pPJQ8pz5/huA3HEwQ+Kl3Ig IeSg== X-Gm-Message-State: AElRT7FCQv5rSwMYeIsrCdaOBZthNjc/tiNsXgPunLA/fBi/BEFn3gOK Uut4ZyWB20odFWMmeFxpW5KLJGum9C0sxReJlWI= X-Received: by 10.237.37.246 with SMTP id y51mr19339462qtc.182.1521475472043; Mon, 19 Mar 2018 09:04:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.38.66 with HTTP; Mon, 19 Mar 2018 09:04:31 -0700 (PDT) In-Reply-To: <20180208113032.27810-1-enric.balletbo@collabora.com> References: <20180208113032.27810-1-enric.balletbo@collabora.com> From: Enric Balletbo Serra Date: Mon, 19 Mar 2018 17:04:31 +0100 Message-ID: Subject: Re: [PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye To: Enric Balletbo i Serra Cc: Daniel Thompson , Doug Anderson , Pavel Machek , Rob Herring , Jingoo Han , Richard Purdie , Jacek Anaszewski , Brian Norris , Guenter Roeck , Lee Jones , Alexandru Stan , linux-leds@vger.kernel.org, "devicetree@vger.kernel.org" , linux-kernel , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Gentle ping for this series, there is any possibility you have a chance to review it? Let me know if you want I change something. Thanks, Enric 2018-02-08 12:30 GMT+01:00 Enric Balletbo i Serra : > Dear all, > > This series is a third patchset 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 compability, 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(-) > > -- > 2.15.1 >