[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200825080758.5283-2-von81@163.com>
Date: Tue, 25 Aug 2020 16:07:58 +0800
From: Grant Feng <von81@....com>
To: von81@....com, jacek.anaszewski@...il.com, pavel@....cz,
dmurphy@...com, robh+dt@...nel.org, linux-leds@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v3 2/2] leds: Add an optional property named 'shutdown-gpios'
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 <von81@....com>
---
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..ee761abb98a7 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
+- shutdown-gpios : (optional)
+ Specifier of the GPIO connected to SDB pin of the chip.
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>;
+ shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
led@1 {
reg = <1>;
--
2.17.1
Powered by blists - more mailing lists