提交 0f34f958 编写于 作者: A Andrew Jeffery 提交者: Jacek Anaszewski

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: NAndrew Jeffery <andrew@aj.id.au>
Acked-by: NPavel Machek <pavel@ucw.cz>
Tested-by: NBrandon Wyman <bjwyman@gmail.com>
Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
上级 30f21ef2
...@@ -18,6 +18,9 @@ LED sub-node properties: ...@@ -18,6 +18,9 @@ LED sub-node properties:
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- retain-state-suspended: (optional) The suspend state can be retained.Such - retain-state-suspended: (optional) The suspend state can be retained.Such
as charge-led gpio. 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) - panic-indicator : (optional)
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册