Received: by 10.223.176.5 with SMTP id f5csp832365wra; Wed, 7 Feb 2018 08:13:28 -0800 (PST) X-Google-Smtp-Source: AH8x226ibyVU70+lM2BifpLc66XNLIPeS+6GcunZ3H73mOtiqGozbkftLRzfEaEKAr0b6tRbI+tf X-Received: by 10.101.70.140 with SMTP id h12mr5404314pgr.166.1518020008257; Wed, 07 Feb 2018 08:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518020008; cv=none; d=google.com; s=arc-20160816; b=xiiOomy/hD5Up6pvojhCwatxdJGiDVtmGt51PycYacUHIAVJ3oQuN4H3VszC5tcPU8 E0WdGLvPbLz9DBH2Yiu3MKpGEL0n14N7VC0bOoyHKQkR3xzIXL44iiKky9vPyAGJWP/K mxgzaPyLLQeuLsKur5+riUoInTiR0lLld3ft3ms/D2u8RcCuIh7NEKXFN3eLcmuri8EI Q2bc00bCqoznedQ9bzMUSUyTkKGHlHV2vhWkeZk6pZo5twrWkwvoVrWFPHXcat2yM+ro CxUbbvvi3mJLKYB4tnP+wbviHwJSk9ALSBV7ayezMP7BdkFBUmGDvSd6fpUCrjDVqWho LyaA== 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=3Es9Mv/Ca/xwyOuo9oFO8uPCs5+VvA8rM6iBlvn1QfQ=; b=ruvQECQjCDf/Qc59Mi7DFAxXk8oo++0b3EXkg0Li6nf/fIvPzMxHPLJS7klXZnyyyN gnvCcnwM0P4kd1mIpNQWnQd4jPw6Iu89RZchKMKKO6Yq5TEn1Vj+HzufFoa9OZmLJPCD ZmFUP5G8TcCCk5BtIgsdSCpPKB5SQjXPqRrTZEqM2XkzapQcN+EIcVpHN8aMhMIbDFxr ZdCBKggthWMnOebLGZUMp4Gc3AXfEMpHJdOVDzGYAzGFR6osc3cjrkIZ1TdmIaWJGSHP 2R2S1VP7zMTP+oXBDm7sbw7YUr7Lnipz9fhRjbsMVnAYZ+zzIDOEzK3B48Q5yyVjJxpY jIbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bSrUdeIt; 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 71-v6si1234112plc.603.2018.02.07.08.13.14; Wed, 07 Feb 2018 08:13:28 -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=bSrUdeIt; 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 S1754567AbeBGQLE (ORCPT + 99 others); Wed, 7 Feb 2018 11:11:04 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33387 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754254AbeBGQLB (ORCPT ); Wed, 7 Feb 2018 11:11:01 -0500 Received: by mail-wr0-f195.google.com with SMTP id s5so1640598wra.0 for ; Wed, 07 Feb 2018 08:11:01 -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=3Es9Mv/Ca/xwyOuo9oFO8uPCs5+VvA8rM6iBlvn1QfQ=; b=bSrUdeItnZbhJSqqmWzFS1t/c50sAq4LgqUN7spbFuhfA5Oj6cL/6CI8a6fq1Ph+BD oUPmG0WkM7FAx+RGTOKtQuFcUvBklWb6jWyzr7zYMhqttJbHol0ApF9NljolbVNvp5a1 6EC+L7V2b0JjK8g496IY3GO5R8R00FuJM82pM= 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=3Es9Mv/Ca/xwyOuo9oFO8uPCs5+VvA8rM6iBlvn1QfQ=; b=J8k7U8YNs+BUGg/d3cphCGR7aiaxgzv/Vt5Uemb5eUrbLb5eRzuweBRovhyN74sb5o e7wbsFdSZEpCxiYwvf/Jf3mvmBc2WBVYea6vn2lZqpofV4qqCnibomM5s++19R5ijE/7 nhXgV/J989ZasVv0yWfBZEktUkLvYU/wVdlz8Go7iT0JYb2nBNGApkypbyGZn1HOokgA wjpDaDXSXpWZeluZxmfkctCcrVPfsxmEoEQfzNv4cSyNCX+KJmEe1TH++5ijWD9q3HHw hn8m1oJ9G+szVCo7lEGQmf3NpfvhRuGlTPEx0oD2waqoKePXg+doMxNAVerfYh4cD7aZ 3LUw== X-Gm-Message-State: APf1xPBwgtnn85/R4aA/29MS0h+IfbcfAFK6z15M/YDzDQYgxBADjz2L M/vTpIIbJHbElJwR0jGrLevivA== X-Received: by 10.223.158.193 with SMTP id b1mr6455459wrf.156.1518019860527; Wed, 07 Feb 2018 08:11:00 -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 l92sm2816681wrc.31.2018.02.07.08.10.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 08:10:59 -0800 (PST) Date: Wed, 7 Feb 2018 16:10:57 +0000 From: Daniel Thompson To: Enric Balletbo i Serra Cc: 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@vger.kernel.org Subject: Re: [PATCH v2 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional. Message-ID: <20180207161057.fkgrspfkdtnp5ymk@oak.lan> References: <20180207141337.22247-1-enric.balletbo@collabora.com> <20180207141337.22247-5-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180207141337.22247-5-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 Wed, Feb 07, 2018 at 03:13:37PM +0100, Enric Balletbo i Serra wrote: > The patch 'backlight: pwm_bl: compute brightness of LED linearly to > human eye' introduced a default brightness-levels table that is used > when brightness-levels is not available in the dts. So move > brightness-levels and default-brightness-level to be optional. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Rob Herring Acked-by: Daniel Thompson > --- > Changes since v1: > - Fix a couple of typos as requested by Rob. > - s/availablel/available/ > - s/move move/move/ > - "so move..." should be a new sentence. > - Add Reviewed-by: Rob Herring > > .../devicetree/bindings/leds/backlight/pwm-backlight.txt | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > index ce9b5746b774..64fa2fbd98c9 100644 > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt > @@ -3,13 +3,6 @@ pwm-backlight bindings > Required properties: > - compatible: "pwm-backlight" > - pwms: OF device-tree PWM specification (see PWM binding[0]) > - - brightness-levels: Array of distinct brightness levels. Typically these > - are in the range from 0 to 255, but any range starting at 0 will do. > - The actual brightness level (PWM duty cycle) will be interpolated > - from these values. 0 means a 0% duty cycle (darkest/off), while the > - last value in the array represents a 100% duty cycle (brightest). > - - default-brightness-level: the default brightness level (index into the > - array defined by the "brightness-levels" property) > - power-supply: regulator for supply voltage > > Optional properties: > @@ -21,6 +14,14 @@ Optional properties: > 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. > + - brightness-levels: Array of distinct brightness levels. Typically these > + are in the range from 0 to 255, but any range starting at > + 0 will do. The actual brightness level (PWM duty cycle) > + will be interpolated from these values. 0 means a 0% duty > + cycle (darkest/off), while the last value in the array > + represents a 100% duty cycle (brightest). > + - default-brightness-level: The default brightness level (index into the > + array defined by the "brightness-levels" property). > - num-interpolated-steps: Number of interpolated steps between each value > of brightness-levels table. This way a high > resolution pwm duty cycle can be used without > -- > 2.15.1 >