summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-08-28 09:47:10 +0930
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-08-29 21:10:40 +0200
commit0f34f958768c48037ce19cdc5d863a7316a86d44 (patch)
treec04bcf700b2b1769b052cf86a6a7a89e439ecf66 /Documentation
parent30f21ef22b7b7e1156cc2a7f9e714c002938f056 (diff)
downloadlinux-0-day-0f34f958768c48037ce19cdc5d863a7316a86d44.tar.gz
linux-0-day-0f34f958768c48037ce19cdc5d863a7316a86d44.tar.xz
dt-bindings: leds: gpio: Add optional retain-state-shutdown property
On Baseboard Management Controller (BMC) systems it's sometimes necessary for a LED to retain its state across a BMC reset (which is independent of the host system state). Add a devicetree property to describe this behaviour. The property would typically be used in conjunction with 'default-state = "keep"'. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Acked-by: Pavel Machek <pavel@ucw.cz> Tested-by: Brandon Wyman <bjwyman@gmail.com> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-gpio.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt
index 76535ca371209..a48dda268f81b 100644
--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt
+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt
@@ -18,6 +18,9 @@ LED sub-node properties:
see Documentation/devicetree/bindings/leds/common.txt
- retain-state-suspended: (optional) The suspend state can be retained.Such
as charge-led gpio.
+- retain-state-shutdown: (optional) Retain the state of the LED on shutdown.
+ Useful in BMC systems, for example when the BMC is rebooted while the host
+ remains up.
- panic-indicator : (optional)
see Documentation/devicetree/bindings/leds/common.txt