From patchwork Tue Sep 22 19:33:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Moll X-Patchwork-Id: 255355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7404FC2D0E2 for ; Tue, 22 Sep 2020 19:34:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32D242371F for ; Tue, 22 Sep 2020 19:34:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbgIVTeH (ORCPT ); Tue, 22 Sep 2020 15:34:07 -0400 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:25820 "EHLO vsmx011.vodafonemail.xion.oxcs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgIVTeG (ORCPT ); Tue, 22 Sep 2020 15:34:06 -0400 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 20CC459D486; Tue, 22 Sep 2020 19:34:05 +0000 (UTC) Received: from app-43.app.xion.oxcs.net (app-43.app.xion.oxcs.net [10.10.1.43]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id AB9895399F0; Tue, 22 Sep 2020 19:33:54 +0000 (UTC) Date: Tue, 22 Sep 2020 21:33:54 +0200 (CEST) From: Markus Moll To: Pavel Machek , Dan Murphy , Rob Herring Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <1570334746.101942.1600803234657@mail.vodafone.de> Subject: [PATCH v1 2/2] dt: bindings: pca9532: add description of pwm and psc settings MIME-Version: 1.0 X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev73 X-Originating-Client: open-xchange-appsuite X-VADE-STATUS: LEGIT Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org These properties allow users to configure the PCA9532 blink rates. Signed-off-by: Markus Moll --- .../devicetree/bindings/leds/leds-pca9532.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-pca9532.txt b/Documentation/devicetree/bindings/leds/leds-pca9532.txt index f769c52e364..3aa05eca9df 100644 --- a/Documentation/devicetree/bindings/leds/leds-pca9532.txt +++ b/Documentation/devicetree/bindings/leds/leds-pca9532.txt @@ -11,6 +11,14 @@ Required properties: "nxp,pca9533" - reg - I2C slave address +Optional properties: + - nxp,pwm: array of two 8-bit values specifying the blink duty cycle + fractions of each pwm (default <0 0>) + The duty cycle is pwm/256. + - nxp,psc: array of two 8-bit values specifying the blink period of + each pwm (default <0 0>) + The period is (psc+1)/152 seconds. + Each led is represented as a sub-node of the nxp,pca9530. Optional sub-node properties: @@ -26,6 +34,8 @@ Example: leds: pca9530@60 { compatible = "nxp,pca9530"; reg = <0x60>; + nxp,pwm = /bits/ 8 <128 128>; // 50% duty cycle + nxp,psc = /bits/ 8 <151 37>; // 1Hz and 4Hz, respectively red-power { label = "pca:red:power";