Received: by 10.213.65.68 with SMTP id h4csp2339473imn; Mon, 9 Apr 2018 01:38:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3JEPemlQT6vff/1cQjkPjsmyWaP4/hpnK9sjS2lriXtcoafhaBfByTBXYUVf88ccNZIMv X-Received: by 10.99.95.144 with SMTP id t138mr23817601pgb.94.1523263102098; Mon, 09 Apr 2018 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523263102; cv=none; d=google.com; s=arc-20160816; b=PpQ6/iYYLGPTDFcD6HFKpIEM4WkGsVn7q9KRXBMfFtGgxmUz1SJlGhSloQrLvjEtrK oapuUeTAdEyGemjc0HSOOA10bty91SA4L0w6nI5rQQmdks9PJvX3Fzuv5rDbt+bx5Wu7 tuFEkv1IiuJCHhbtroR0hbEpOx1WaXuPs87uNlrHAt1dib1PmFvLJG2UEJt2uN/x/elk mxVhVBf3GLh+bMmQWAMm5tWfxBU6MVefpyncTDf8DVchk3ueN1gwzimc8qURj/WppWIn EsKzCQmb8v82MG0CV9Z7dSj/8s3Dbmtp0PWqPfViukHjWr/O8CUOSUh5GEqnetwVTa8u AW7A== 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=CJsLoNjdeHDBEfZGPAmfatjrXDxAIS5Rjdel4pk+0hw=; b=PA6lAaAtP1fabT3d+IOYTv3mDZcPOh9OHVI+v3MOo8WZcTp9qwAs5zE0MlIgz/LwDb C+h4qcutGI7a6hElk97JWk1OgzIFkcZJCaI7CIYYUZw+csBeW9wdIPXpWZwwOxOcW45m 6eBBSg/5xGW8Hh8IB0YXjAuv9xjGqdOO21daxudGTGYhbhiSCDckT7+Bd+j9UPr627MN ee/Ml/pii0S77c4QL9Lw4XWe3r28c5IiaJPwN/SMDWHTjtsWPx8DI/UMraM9ks5Wg7xy 2ZcJCsCic6y1kRE1A1SorHCOdmz/n62WPYjB8riqF1lYOV+CzvoJVH7ItPPp/sCcw7Oc vEeg== 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 n74si12224424pfk.51.2018.04.09.01.37.45; Mon, 09 Apr 2018 01:38:22 -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; 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 S1752500AbeDIId7 (ORCPT + 99 others); Mon, 9 Apr 2018 04:33:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57826 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373AbeDIIdq (ORCPT ); Mon, 9 Apr 2018 04:33:46 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 32BA82733A9 From: Enric Balletbo i Serra To: Daniel Thompson , Doug Anderson , Pavel Machek , Rob Herring , Lee Jones Cc: Jingoo Han , Richard Purdie , Jacek Anaszewski , Brian Norris , Guenter Roeck , Alexandru Stan , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [RESEND PATCH v3 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional. Date: Mon, 9 Apr 2018 10:33:33 +0200 Message-Id: <20180409083333.1249-5-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180409083333.1249-1-enric.balletbo@collabora.com> References: <20180409083333.1249-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 Acked-by: Daniel Thompson --- .../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.16.3