Received: by 10.213.65.68 with SMTP id h4csp789305imn; Fri, 6 Apr 2018 08:58:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PgmO6QbAA6TSd4e9QaLNdSu1gJDplCQqXRNf3ITl6HEy/+myLPnaQaeYn7L3Q7rJoPPtb X-Received: by 10.101.96.135 with SMTP id t7mr7869382pgu.382.1523030294324; Fri, 06 Apr 2018 08:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523030294; cv=none; d=google.com; s=arc-20160816; b=bQsWMYsb4marXzn5Ce03AqGerNQBHQgyZW9PXfpZyYUjt9sNps0JSjkz5hgKL2b6oZ AaAhXoJNaPF3yPIf9/Uxyl5abI4azyNsUAvYKX7noqSjyi35v7D5WkD6a+4+NyTFccfo sOu3YdbEXiT4HaoVBy71xSwiNd7omXbGvgPapbvO5BU4K4L8Y+V1Qt46y9gMS/LG7/Yf YEyRUlDkG1LX832G1UX0MrajES/VlR03wgO1Ey3h+ZgJEjlrwiFl43/EVqzg84skmW5m Y6K4t3HzsBqRiCwFoUmVQKw3enYyCgsBLWk1HsW8PK3m7BN800h5hao8AKVQyOyXBkvi CNOw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=XO/pMjKsoqeunh+1MfMbBoss7WUV+1t7yULK/qZzaQM=; b=c3pE4QKJpq5FcbNThVq2/J+8XLQJ2xi+5US8lRuWqp9ZiwH1bsI5ra5LeSQGpuHbDN KqAEijgeKrWe4BQZ/L9eIIEX9EkBoEh1vsP1dwHGVSb6MEsM1hW22SH4rM0R30Agn+mT 12cJJ5C1ErrWhWfGgXDEP3xZS4r+FjPEp9I+vqPeQ+WVfN+WglZLcYyQws6asqF9zuoh +8/cbpLaUnK6hfbHPg6rMVKReW7pRHQe+6EuRVm05CWze+3t1ocULY7vdWruP+oHd+hj sbkYb/m2HSUN4ljkempuTQFA3abOcO76g5KvySAwF3bnP3sJL662GTbAqi6Y+nHcul4j SeRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJZpqkMk; 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 e3si3554959pgn.471.2018.04.06.08.58.00; Fri, 06 Apr 2018 08:58:14 -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=YJZpqkMk; 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 S1752246AbeDFPyq (ORCPT + 99 others); Fri, 6 Apr 2018 11:54:46 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52808 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780AbeDFPyn (ORCPT ); Fri, 6 Apr 2018 11:54:43 -0400 Received: by mail-wm0-f68.google.com with SMTP id g8so4419751wmd.2 for ; Fri, 06 Apr 2018 08:54:43 -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:user-agent; bh=XO/pMjKsoqeunh+1MfMbBoss7WUV+1t7yULK/qZzaQM=; b=YJZpqkMk90oovb0YOyYXB2jlmCZM+afG7aDgojW7u/aDamBZeSPKBEnsl0hkys4fZC V/WqyOpRRon0XbSAdyvVgTK2EkuDfMlYA75y+XqBDkTCMK0aheQXoZO2wbXTKi/uCknh L8jV1sF9KFIdCXMbqtFH9LbWN/BG6QqMBSXDU= 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:user-agent; bh=XO/pMjKsoqeunh+1MfMbBoss7WUV+1t7yULK/qZzaQM=; b=IMKq/ccDMuP+DDXyXewAShWrHvgsyrV1v1bppZsC70cqCT9DItif1DmFhG5LgQfnvE wiF74KliBbtS4Kr3qG/BCZgJfPhRjXjM9alikj033mN0L86pCmVNlUhS/hunuqVdJzF9 CFVFjAva0wJR7x27eR+PhBdEdbsa9UFDFt8PrKULBjRMn5k2ex+fJKbmrs5FcMqiCrds 66+lyHBPc37Iqw6DP4xyHcaEEST8X8IoobJ1CS0K8jWLXD6m0e2ltnyQoZRi3Kov3xRO VGkjg9yiXKWIxvbbari7xn7oZxiPSJVxifxuqdfPogeAbbulMkvDi6UuAg0GlnScbVxS 6e8Q== X-Gm-Message-State: AElRT7FzgmB7HozqaiaY5YvRY85q860smA0Lju60/FqKgcJMOKSVnTfa wyvpE0mLxpr7A2afa5cUDEbxAg== X-Received: by 10.28.14.70 with SMTP id 67mr16308537wmo.17.1523030082464; Fri, 06 Apr 2018 08:54:42 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id m83sm5185687wma.17.2018.04.06.08.54.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Apr 2018 08:54:41 -0700 (PDT) Date: Fri, 6 Apr 2018 16:54:39 +0100 From: Daniel Thompson To: Enric Balletbo Serra Cc: Enric Balletbo i Serra , 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 Subject: Re: [PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye Message-ID: <20180406155439.u7mm2jb3sizphumu@holly.lan> References: <20180208113032.27810-1-enric.balletbo@collabora.com> <20180320112212.2mwthxug3pu7uqgg@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 20, 2018 at 01:13:20PM +0100, Enric Balletbo Serra wrote: > Hi Daniel, > > > 2018-03-20 12:22 GMT+01:00 Daniel Thompson : > > On Mon, Mar 19, 2018 at 05:04:31PM +0100, Enric Balletbo Serra wrote: > >> 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. > > > > I haven't got it in my TODO backlog... which means either I mistakenly > > deleted it when it went through originally or that I deliberately deleted > > it because I thought a v4 was coming along soon. > > > > I could go diving through the archives if I need to but were there other > > pending changes for this patchset? > > > > Unless I am missing something there isn't pending changes requested. > > 1/4 I addressed your latest comments in this version. > 2/4 Has been acked by Rob Herring > 3/4 I did not receive feedback but iirc we agreed to use a pre-computed table. > 4/4 Is already acked by you. You weren't missing anything... and I've just dived through my mail history and retrieved the patchset so I can review it. You should now have an ack from me on every patch. Sorry it has taken so long. Daniel. > > Regards, > Enric > > > > > Daniel. > > > > > >> > >> 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 > >> >