Received: by 10.213.65.68 with SMTP id h4csp1471373imn; Mon, 26 Mar 2018 08:09:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELsoJQYJvIhjovEgmuD+GZLfa99leT+bmmAprFV17ECiCwaCYhDs2MkhDQw8R1Si5+UxzX+T X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr42206389plb.119.1522076960499; Mon, 26 Mar 2018 08:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522076960; cv=none; d=google.com; s=arc-20160816; b=DKV8Sa1TpK6JxEvHXwoqZs30x/S2e2EkFnwwanCy+Dm1zjE5c9w2WbUHLwAwbdLMlz /c8D9VpqBZxyRHcO8r6z/B1i+LSskG+YyTWy8XDpdPbJZ/l5njyrhkSmj6nrEz4GRIC1 MjdmpxmtxlU0F4MuTaZIqpUIdHLCv3csI4fk5rZ9pQShsoBvJtajqgBNxnOlCXsyx7cd 3OBV/G4NWcTrjQbUhEZcP9KM+bqeNeFhwGK04KWOfKOuge3wVwHhW/ZinLsUOD8i/NVT F+PJzyEt9XyFh49I98KEKYf21WrBOo6gK+uaCzU7uokADA/Zh8PSLqqWD5LK85LtMrn3 9FEQ== 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=sDuv5N6NOfl7+qc4fJJype1/63pobII/2xZ8ickOPp4=; b=fdadK3sHqJtA7QLNjAalaSqcaf1qLc8BkTROENMd41b2ckhaYcguA45YLRTNBrNQDi dAkpVfXWgChQfJEp1WyDoaPaJ0vbLOcpdk/MVpLi4QW8OHYUkaiGEGtUtg1HZ1C9//fG qpneMUHMlMtl84jQw+GJy3FIvgRwzwtE3W/K0dDLrciF+KRYqFC5DO77P+Iktp5/DxsM ICZ+ilgCzNvqwMUvHLCBmGu7kdjEZScaf10Ud/xEZnKheHnBwtIDd2fUmVyR7ML++iv2 jjhxoiTUJ2pYWvu1Mjiv0HILOeBuWvQ3law8++NW1nBPAIjRUbwWQhseGDyc0s577CPf R90A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LFJLh18/; 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 l7si7493818pgp.293.2018.03.26.08.09.04; Mon, 26 Mar 2018 08:09:20 -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=LFJLh18/; 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 S1752256AbeCZPHP (ORCPT + 99 others); Mon, 26 Mar 2018 11:07:15 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:38795 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbeCZPHM (ORCPT ); Mon, 26 Mar 2018 11:07:12 -0400 Received: by mail-wm0-f66.google.com with SMTP id l16so16184420wmh.3 for ; Mon, 26 Mar 2018 08:07:12 -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=sDuv5N6NOfl7+qc4fJJype1/63pobII/2xZ8ickOPp4=; b=LFJLh18/cb47uLYna+OENBS70Q3M/eaMKdgsqO2PAcG8Qz69cJIu1MMd5lBEmAD585 vbjdb6s2Wi0+g/4lxFhR0W1I7VUnGMCWuEYLRbysM9oZ/1T1PVgsjm4ZvrYlu1Mh54Qa Bia9xRL3vEgCqJxE0a/dZmI3SHXNSEZtbwOTA= 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=sDuv5N6NOfl7+qc4fJJype1/63pobII/2xZ8ickOPp4=; b=JmgFvCZ3K7zJ3MdHhHreFK9/1W7UGyyPQyvPZFwFvgKVGonuaPdDGxYbvGZLoSMLpp MvSS1xw5t9LPo9OtZKllcLCzewjUIZ9dOQjglMENtn4pX5rnhhnMEIIDdbVg5BgG1jLD dwSrgFlGqW8d04WGVmU0mVMSI9mzDzmlMVkYU+X+44qJB00SU9vbZayorpLMOBgV/q+2 /eKuSx4lZCw9egW939fjvonFRFQ+LA7aq8Uui5d942MLSlFDmhAHxer9Mc+daKToAOcF Uhs1xQ+17oZyv2olctX3ovFiS+qItZRzSSsl3PG05Ga4FzA9t5TE+1EPv4u1BdKriwdV MnKA== X-Gm-Message-State: AElRT7GkP+O9NISSHPDeaEfGKHHWJ9iSsL7tn3mC6ledF91L/BVPBs6y XusHradZE1CEeFKlUopyAMgn2w== X-Received: by 10.28.234.207 with SMTP id g76mr16721709wmi.149.1522076831406; Mon, 26 Mar 2018 08:07:11 -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 n47sm18460256wrf.41.2018.03.26.08.07.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 08:07:10 -0700 (PDT) Date: Mon, 26 Mar 2018 16:07:08 +0100 From: Daniel Thompson To: Enric Balletbo i Serra Cc: Lee Jones , Jingoo Han , Rob Herring , Pavel Machek , Heiko Stuebner , Thierry Reding , Bartlomiej Zolnierkiewicz , Richard Purdie , Jacek Anaszewski , linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, groeck@chromium.org, linux-rockchip@lists.infradead.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH v6 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties. Message-ID: <20180326150708.jvjewhmk3j5a6vu7@holly.lan> References: <20180326095213.18362-1-enric.balletbo@collabora.com> <20180326095213.18362-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180326095213.18362-2-enric.balletbo@collabora.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 11:52:10AM +0200, Enric Balletbo i Serra wrote: > Hardware needs a delay between setting an initial (non-zero) PWM and > enabling the backlight using GPIO. The post-pwm-on-delay-ms specifies > this delay in milli seconds. Hardware also needs a delay between disabing > the backlight using GPIO and setting PWM value to 0. The pwm-off-delay-ms > is this delay in milli seconds. > > Signed-off-by: Enric Balletbo i Serra > Acked-by: Pavel Machek > Acked-by: Thierry Reding Acked-by: Daniel Thompson > --- > Based on the original Huang Lin work. > Changes since v5: > - Add Acked-by: Thierry Reding > - CC DT mainling list (for some reason dropped at some point, my > fault) > Changes since v4: > - Rebase on top of mainline. > Changes since v3: > - Replace us for ms. > - Add Acked-by: Pavel Machek > Changes since v2: > - Use separate properties (Rob Herring) > Changes since v1: > - As suggested by Daniel Thompson > - Do not assume power-on delay and power-off delay will be the same > --- > Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > index 764db86d441a..310810906613 100644 > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > @@ -17,6 +17,10 @@ Optional properties: > "pwms" property (see PWM binding[0]) > - enable-gpios: contains a single GPIO specifier for the GPIO which enables > and disables the backlight (see GPIO binding[1]) > + - post-pwm-on-delay-ms: Delay in ms between setting an initial (non-zero) PWM > + and enabling the backlight using GPIO. > + - pwm-off-delay-ms: Delay in ms between disabling the backlight using GPIO > + and setting PWM value to 0. > > [0]: Documentation/devicetree/bindings/pwm/pwm.txt > [1]: Documentation/devicetree/bindings/gpio/gpio.txt > @@ -32,4 +36,6 @@ Example: > > power-supply = <&vdd_bl_reg>; > enable-gpios = <&gpio 58 0>; > + post-pwm-on-delay-ms = <10>; > + pwm-off-delay-ms = <10>; > }; > -- > 2.16.2 >