Received: by 10.223.176.5 with SMTP id f5csp704545wra; Wed, 7 Feb 2018 06:15:35 -0800 (PST) X-Google-Smtp-Source: AH8x226YLt7kjC71WPzwyl+SS7BxNZG8JUEENw/Hc+bZVpw37qALRdqrISOTsxOcLBL/HiCiLWAY X-Received: by 10.99.111.11 with SMTP id k11mr4947219pgc.86.1518012935241; Wed, 07 Feb 2018 06:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518012935; cv=none; d=google.com; s=arc-20160816; b=fYa+krT1fAzhNQw6uBJINAwkF3wUYpkgTEsgrHKdhpveCNhQZ9kfJag4kJWXeo6dUi 56er8xguU/8BK8KDsXrwP6prim8mlPykVFYm/VOqQJQyytzhPRvfdJpt0AaBADDbw1fX GO3HIxh3FEyEc0KmCYqgXr5b/67vZ7FNpyjufrnjZJe1z1kavy8fosHEjnPFogLCdYBK gxogFtZMW9P2sPjNq/Bo9n5DpoNPKxzOWU8lExhz2ExFWnVNMwzOSDy/s+HmWD6LJViL bVaIWDyr4iri/RuqnpL0EdZu/oPZQ5OeB55+h2xPevhlBa3FKodjb8AuOVD5HeRABoep w3nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=f/+or85e3cfLk5SP2+KMFTqUIa2NeX9lWiARYWAdSbQ=; b=pOXhFgT3tyBxyZ/epy644NLOXLXLJz0huX3BrGlrxt4dw1msCgW7BWx4LWJAPKAWeR 7dsVx/7tn1yBKqWO4C3s9IaQIzm5PzzQJLxDYXysrxobFEUQCQbY/aZR/ORmWOW/2ORF HFwskvqrNH+TNNOTpMc3wu1AVuTpdFcF3MNNkrM+MfhY6Eb4fkESYQzmkrDUljuFa5BT nQtjA+lly5XT//sBwlw6o8ySGk6ezzSB7dT79rB96+YWgCzpng+GS0/p87S0S+OTHE5g OfaavNBr4DsCCHsS7L3Q5+B9NMUfdRMj1lM16JOWG9dgwsI2qyma0FlZYV2r5CJkY0sA BEig== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si1137290pls.421.2018.02.07.06.15.08; Wed, 07 Feb 2018 06:15:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754374AbeBGOOC (ORCPT + 99 others); Wed, 7 Feb 2018 09:14:02 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41542 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754258AbeBGONv (ORCPT ); Wed, 7 Feb 2018 09:13:51 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 15514271EF7 From: Enric Balletbo i Serra To: Daniel Thompson , Doug Anderson , Pavel Machek , Rob Herring Cc: 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: [PATCH v2 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional. Date: Wed, 7 Feb 2018 15:13:37 +0100 Message-Id: <20180207141337.22247-5-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180207141337.22247-1-enric.balletbo@collabora.com> References: <20180207141337.22247-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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