Received: by 10.223.185.116 with SMTP id b49csp3618514wrg; Mon, 19 Feb 2018 03:12:36 -0800 (PST) X-Google-Smtp-Source: AH8x2243qJptSRor7vHCvKHCz3EaarIhH5UMNbcB5pHjU50Bx3v+k4ugGjBw9nMbALWBIbrFnmYr X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr13759424plo.397.1519038756497; Mon, 19 Feb 2018 03:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519038756; cv=none; d=google.com; s=arc-20160816; b=0ghBC0QhvDI/uwHdp3iMfxsj1BYLRC6L7vIlXWpjYS1J5DECqY9KUPWJRWLUafbSDn ry+3zb6WUzyvRwEREwV6do6IHtbvB6FMVMpU/SHRrV/+eAPvRAnR+VwtMusvEDh015kY dEqrvCLah1HO7mXWOgLFrBnpn1sc+QV+Riepap16nfOUD86/Sc2WVHZj0G634on7HdTj PMvKf2QG284yvXF/PZpzm+zTCNjxhYLstmIk9qdnrgyS9ZTWIAqfW0P77R2w4LCAiR0p UpaA3W7CFtQtKc2CO6/WoHMCaeREDmibgA/3t/d2PWjqv/35i7ntidlMFVsdi4ySh9iM 4vBw== 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=bUeQOJ/IzzaqglA8egBXu/LTESykhd+ua9tk8rRwFgY=; b=u1XN+b7ZxT7CZXsiERBMlxyiJ8R5qKw4ifdcMNAU1ZYrN4woH4jVcVdPY13t8o4wlt y6lhPgfln1ia41802JFm3HTBVIEVd9jqKEbFx7g+2nZZRyVp83LYXbG1yohKKud8hSx3 cBQmgq65rPEKOEpWamSxCJ3MO1XDU6qJ7RVXhntNLFCa3ug99B+QtgkVUVeEmIV66ngF t5Gieb+jNJp37IMpeorQvZbC+1an/8ptuChRH91AO7i0yMY0gLX8JFfuWdBYYTobpl97 UivN1cV3jV8OEd3JVQ6Wa4mgJoAEfsAjaCNikEGCisEKFO3yn4j8NVsfn6T3uVe44FnL 96zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N+PMIJ/6; 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 g7si9861902pfc.393.2018.02.19.03.12.21; Mon, 19 Feb 2018 03:12:36 -0800 (PST) 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=N+PMIJ/6; 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 S1752562AbeBSLLm (ORCPT + 99 others); Mon, 19 Feb 2018 06:11:42 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:45341 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752486AbeBSLLl (ORCPT ); Mon, 19 Feb 2018 06:11:41 -0500 Received: by mail-wr0-f193.google.com with SMTP id p104so7846798wrc.12 for ; Mon, 19 Feb 2018 03:11:40 -0800 (PST) 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=bUeQOJ/IzzaqglA8egBXu/LTESykhd+ua9tk8rRwFgY=; b=N+PMIJ/6OTtC3/Io79/HF1hYEix931mrd4sUfxxNDEZ5PAn80X84AK4CM7goe5v1SQ jcgcc6hMExvsVtHCdkIYq3ce9s9R1DVqUY1COShsrXik88kwb+YHG/H1xFhmd9jpfycG ihvQ74PUYu8jlxhxRN2vp/qC7l9AKBvgigkFk= 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=bUeQOJ/IzzaqglA8egBXu/LTESykhd+ua9tk8rRwFgY=; b=fWjGxgJuDyOUPuqxZ/FGQ4utEEY77LzmLF7mp/kOCCvqwA/3BstomE01jj+l0aNCCN T/rS/xl3ae7VjnJoL+zpfoeZRjYwrvE+9Ej3TGrzsDIenM28z2+EnlcHzMuPgzsWC7kd idbXplxBtqbwi4KJhTSfVgw6iVDI+nEhHdzcYiQVzNijTXJG/etWyx9LbQOgQFyXfRv4 FRCP5MgAY30dC9tsysTqxPTBSTnjgt+SKC0d+hWWrJKSNvWjsicYQZHGM9L5IYhVe2t9 B2XgqwL0HjwVOsrZbS94tk6MMeqWtMi/KNOdb8SPogS8PsT+0F5UNd9s30BVH46myOvv w6tw== X-Gm-Message-State: APf1xPAx7/XPaOLvL8MCPjMges0PBMgh6+UwwkNC35nJQEr/TMbJfEIL sNsqIrooPdZ/F+Am9xOxi/wMBg== X-Received: by 10.223.148.195 with SMTP id 61mr5344164wrr.248.1519038700039; Mon, 19 Feb 2018 03:11:40 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id m127sm9798120wmm.0.2018.02.19.03.11.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Feb 2018 03:11:39 -0800 (PST) Date: Mon, 19 Feb 2018 11:11:36 +0000 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, kernel@collabora.com Subject: Re: [RESEND PATCH v5 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties. Message-ID: <20180219111136.jpv4wtcm6h2hfwac@oak.lan> References: <20180216174034.15936-1-enric.balletbo@collabora.com> <20180216174034.15936-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180216174034.15936-2-enric.balletbo@collabora.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 16, 2018 at 06:40:31PM +0100, 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: Daniel Thompson > --- > Based on the original Huang Lin work. > > 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.15.1 >