From patchwork Sat Aug 8 02:04:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Feng X-Patchwork-Id: 255458 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=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT 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 487A1C433DF for ; Sat, 8 Aug 2020 02:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D4722086A for ; Sat, 8 Aug 2020 02:05:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="PM77PxTV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726204AbgHHCFZ (ORCPT ); Fri, 7 Aug 2020 22:05:25 -0400 Received: from m12-18.163.com ([220.181.12.18]:40660 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgHHCFZ (ORCPT ); Fri, 7 Aug 2020 22:05:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=58O72jhnrDHl5eaGDS i3G0TKF4cP/BfnN/97i4BIIUM=; b=PM77PxTVMbqsonZea0PseEBcsU3qAeqLv+ vLYnrGez8l5WQnhyPX6ajKQOftG7qOx1cb/JF8OwMBBKKv6jFPZ9p5CA9EjGe8F5 7KU8ZMwI2vWNCwxk+VpXS1EkF7wSdFFG5PYjCgaJsffdli5OoP+0fK9eWQJcJriO b40pF2Nz4= Received: from localhost.localdomain (unknown [58.33.79.182]) by smtp14 (Coremail) with SMTP id EsCowABnvrJDCC5fRqxLIA--.16258S3; Sat, 08 Aug 2020 10:04:58 +0800 (CST) From: Grant Feng To: von81@163.com, jacek.anaszewski@gmail.com, pavel@ucw.cz, dmurphy@ti.com, robh+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] leds: Add an optional property named 'sdb-gpios' Date: Sat, 8 Aug 2020 10:04:39 +0800 Message-Id: <20200808020439.20606-2-von81@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200808020439.20606-1-von81@163.com> References: <20200808020439.20606-1-von81@163.com> X-CM-TRANSID: EsCowABnvrJDCC5fRqxLIA--.16258S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrKw4fCFWfXFW7XFy3XrWfAFb_yoWDtFc_Ja s7Cr4IgrZ8uF4vgw1DZr1avr4UCw4xAF1kCw4IqF1kAw1xt3sIgF92q34Yyr1UGana9r43 Ca97ta4UJ3ZFkjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0dMaUUUUUU== X-Originating-IP: [58.33.79.182] X-CM-SenderInfo: xyrqmii6rwjhhfrp/xtbBiAp6OlaD8FYqmQAAsC Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The chip enters hardware shutdown when the SDB pin is pulled low. The chip releases hardware shutdown when the SDB pin is pulled high. Signed-off-by: Grant Feng --- Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt b/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt index 926c2117942c..94f02827fd83 100644 --- a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt +++ b/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt @@ -15,6 +15,8 @@ Required properties: - reg: I2C slave address - address-cells : must be 1 - size-cells : must be 0 +- sdb-gpios : (optional) + Specifier of the GPIO connected to SDB pin. LED sub-node properties: - reg : LED channel number (1..N) @@ -31,6 +33,7 @@ is31fl3236: led-controller@3c { reg = <0x3c>; #address-cells = <1>; #size-cells = <0>; + sdb-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; led@1 { reg = <1>;