From patchwork Mon Jun 10 23:37:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10985649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC9D5924 for ; Mon, 10 Jun 2019 23:37:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE39E28174 for ; Mon, 10 Jun 2019 23:37:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D192428694; Mon, 10 Jun 2019 23:37:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5D1428174 for ; Mon, 10 Jun 2019 23:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390726AbfFJXhp (ORCPT ); Mon, 10 Jun 2019 19:37:45 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46948 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390671AbfFJXho (ORCPT ); Mon, 10 Jun 2019 19:37:44 -0400 Received: by mail-pl1-f196.google.com with SMTP id e5so4251611pls.13 for ; Mon, 10 Jun 2019 16:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PwvhwkI8F4zvLVsJwAGnKk3UZTvA+WVT+qCBY1uqWqg=; b=hijO8nHj6AanoC+to/aLESdGAjYajAq/Wwo6ROP8Jh065ysj+O/VWUY+CjGk1QGNLO Nzjj4CGR7IV5n0DZhEvJ8T9VttRm3HNbJ8f655p8CVolKCbEHYeRHF0Q7pT55hBt7oMM UA5ufOa5wv1gkQHsFvqsinxJo7kP1Tysa/l1g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PwvhwkI8F4zvLVsJwAGnKk3UZTvA+WVT+qCBY1uqWqg=; b=LxqyecS61kvkArSWYT4qt2ZW15jQ5vaOokI5UF/ETZrnOWYTuL5hQvPj8CLyzcUifw 6ANszLtlURrDWfoKkfmqC6ucofW36IJVvgQZyo4kWXqkNPRn3ANy2khzfEd1VzaG4VsS HfPM5DX/XIaqmR12OUEKl/iXIGvFaKDc6XsdKQJ5Jt2Hgv5u6l2nbKnHER2xEVmG3SLd wVAKhoAUpUmFZAcZu0DxOT2SiD3bTCnSTVDqECB0LjSWAuEoKxeOfTapa1Cgn5VZBF2M /2jSiGNe4hvLCLpCVV9DDe5hrBqlD+3SJeTkXd2Np+OqFiwRhB5qJ+nZSIVWkflvhw/x x0VQ== X-Gm-Message-State: APjAAAW8MZKHOqLKipNrk/rWnTVd1zuzXqMKP8Cqratnxgtfa3AeRjsx zMcI3yBy+CS5nXGCSMJy5tLAcQ== X-Google-Smtp-Source: APXvYqxzuWk+HHUFs0uzAZUj3UB9CiltN6z/LVO8neBboHeE9VutR2V17/0JmmVYiipinsqCD9j37w== X-Received: by 2002:a17:902:7581:: with SMTP id j1mr72670630pll.23.1560209864163; Mon, 10 Jun 2019 16:37:44 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id q144sm8898518pfc.103.2019.06.10.16.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 16:37:43 -0700 (PDT) From: Matthias Kaehlcke To: Lee Jones , Daniel Thompson , Jingoo Han , Jacek Anaszewski , Pavel Machek , Rob Herring , Mark Rutland , Thierry Reding , Bartlomiej Zolnierkiewicz , Enric Balletbo i Serra Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, Douglas Anderson , Brian Norris , Matthias Kaehlcke Subject: [PATCH 1/2] dt-bindings: pwm-backlight: Add 'max-brightness' property Date: Mon, 10 Jun 2019 16:37:38 -0700 Message-Id: <20190610233739.29477-1-mka@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add an optional 'max-brightness' property, which is used to specify the number of brightness levels (max-brightness + 1) when the node has no 'brightness-levels' table. Signed-off-by: Matthias Kaehlcke Acked-by: Pavel Machek --- .../devicetree/bindings/leds/backlight/pwm-backlight.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt index 64fa2fbd98c9..98f4ba626054 100644 --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt @@ -27,6 +27,9 @@ Optional properties: resolution pwm duty cycle can be used without having to list out every possible value in the brightness-level array. + - max-brightness: Maximum brightness value. Used to specify the number of + brightness levels (max-brightness + 1) when the node + has no 'brightness-levels' table. [0]: Documentation/devicetree/bindings/pwm/pwm.txt [1]: Documentation/devicetree/bindings/gpio/gpio.txt