Lines Matching +full:retain +full:- +full:state +full:- +full:shutdown
1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacek Anaszewski <jacek.anaszewski@gmail.com>
11 - Pavel Machek <pavel@ucw.cz>
14 Each LED is represented as a sub-node of the gpio-leds device. Each
19 const: gpio-leds
24 "(^led-[0-9a-f]$|led)":
33 retain-state-suspended:
35 The suspend state can be retained.Such as charge-led gpio.
38 retain-state-shutdown:
40 Retain the state of the LED on shutdown. Useful in BMC systems, for
45 - gpios
50 - |
52 #include <dt-bindings/gpio/gpio.h>
53 #include <dt-bindings/leds/common.h>
56 compatible = "gpio-leds";
57 led-0 {
59 linux,default-trigger = "disk-activity";
63 led-1 {
66 default-state = "keep";
71 run-control {
72 compatible = "gpio-leds";
73 led-0 {
76 default-state = "off";
78 led-1 {
81 default-state = "on";