Received: by 10.213.65.68 with SMTP id h4csp350651imn; Tue, 20 Mar 2018 05:14:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELtK26Auy81Fzbdm6VFuZNhDEPbgKKvCU0tC9Zr2WJlTmdJEijkJlB0KCLv2achBazN9cpvL X-Received: by 10.99.110.6 with SMTP id j6mr11640158pgc.29.1521548079071; Tue, 20 Mar 2018 05:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521548079; cv=none; d=google.com; s=arc-20160816; b=mn5UdSMQy6WiDOT5p3ZRbmHCuaSCC47vlB9faGn69rp+DA2f+uTpWonwcsGjUjtWHY XxwylvI8kH7fH1DXOkuHfNt80Mg1AYB2XbjwbxrViNvyFNJJ6P12tB64HxSpWMlxftHk 35gxXiQjPXwxcbsYqndUQV0CGWkvHnSZl79b6CgBQBO2aRov5D9IRHUiHSB32lCoXxk0 G+t9CjQtFR8ziUzNs7SNnz/EhnQ0+ZTHSIncUv1Nr3Z7TwNW3QNjbryhrypKB+NnEcmD pxOiDIhQOEdzdF/SA5KgdZU1/P6KTn3FBzgvtcLfvbfxMRoW8n5+z5bvGD6ZdAQx7Hdd HQ2g== 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=4WA+ZN7SKNQbJksv8QHCtHEKT8AJyWoWomVkrWvJ/YE=; b=NkFNffIp6eZybON7hIGiXofgOwI1cJ9D7bml9T4WUYKPIQoPYFonpzNkNs74VN8E6R MdYe98d1rzPRn7P/G8wE5z9WqgbDf3iPPJ2ycVa0B4DrcRuaxlRWUq4wN2rHNDvbXx2U yXGt5FjpXmkuT3wYLRp2KVAT/PZwCqO9gRZ8KtPU5qpTNgKDTHHQEWXEu+8NKAwx6w1q NlGyjgADXcPFLjnE77pSdxsPS2a/5q5gHUrqDXKT8+7YEV+OzeQWmMdjpnH8NiX4D5Tp /7B6f2HgIOYPgXa/bpljkWTSlrbCOyQSkLkVKtqxkWkjj4r44vQtyrYLRq10LW/wFcQ0 Ckgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HiZeYZ4v; 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 f4si1095013pgt.239.2018.03.20.05.14.24; Tue, 20 Mar 2018 05:14:39 -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=HiZeYZ4v; 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 S1752971AbeCTMNZ (ORCPT + 99 others); Tue, 20 Mar 2018 08:13:25 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:45504 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbeCTMNV (ORCPT ); Tue, 20 Mar 2018 08:13:21 -0400 Received: by mail-qt0-f194.google.com with SMTP id f8so1248195qtg.12; Tue, 20 Mar 2018 05:13:21 -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=4WA+ZN7SKNQbJksv8QHCtHEKT8AJyWoWomVkrWvJ/YE=; b=HiZeYZ4vchmTSkc6v6uqbAHXOv0kgoZd5cZgOFLrevZ+AUj2C9kTCiiFz4WVCpKccI xA38XajwonYjz1Lao+hMGdXPYEpm/3Th6lkOnPQYGDhJSkh44fLjP/2opcsBmFV7qbx/ q9lX99NI75sEzHsmU5SMVoq2uXigCR3c/6r9Uuw8qHUYrPTkDG+tfNuDAjytDPKL0bfm YBHqp3JWoLwa5ZoSIao6xq3dlI9gQhSnmeYoV+s6Kf3T5GGLSrvpO68CGCyPhXQCj1Lr OqEeSe9qdoxRlAjSBCO197tZ9p/TOVpGSV97ZeRK51S4/leGUtlFTuis+Phi1FXV0+9N I9Sw== 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=4WA+ZN7SKNQbJksv8QHCtHEKT8AJyWoWomVkrWvJ/YE=; b=IM8TitJ4ncmAcYMIWIh0O5U7be6xygNZyflCS5lCYmut6mOBA32BmwTV4XOlUF9hoE MZXthFzPMDB+ZCGcxwEktyOXamCOcZWH26XgM5s6nr8AR1W+pHR/voGprlLCCpY9QxpW CVoNZOsrcZk5VQqHniGu64YStpSNTqI9CfB/+2VMCji3Q2T8FK1+VAm2kfvbzQmAFCFk 0c5GnOYGiDJPDQay4k/G1HS3A1YvBCE6MrRB6R6AQ2yybFmwgC5TEAC0H5DM/RKh/gSU atT+43sew2UzOFEvQvVeJP2GXC39pKl5dc+0KdFZc8Gsa3QRa7q0UhIGegu8i6vPd3is wn9A== X-Gm-Message-State: AElRT7Ge1Y+IP2dHjXcdO2Z7Q8wjZx6pZNkgpdX62zsDJ877CS+Cwckt XliAHDb1V/j7DboPnT0mfDDUSYLA99I3z2AxFTgGfVAo X-Received: by 10.200.42.37 with SMTP id k34mr7942300qtk.101.1521548000595; Tue, 20 Mar 2018 05:13:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.38.66 with HTTP; Tue, 20 Mar 2018 05:13:20 -0700 (PDT) In-Reply-To: <20180320112212.2mwthxug3pu7uqgg@holly.lan> References: <20180208113032.27810-1-enric.balletbo@collabora.com> <20180320112212.2mwthxug3pu7uqgg@holly.lan> From: Enric Balletbo Serra Date: Tue, 20 Mar 2018 13:13:20 +0100 Message-ID: Subject: Re: [PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye To: Daniel Thompson 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 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, 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. 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 >> >