aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/leds/leds-gpio.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt b/Documentation/devicetree/bindings/leds/leds-gpio.txt
index df1b3080f6b8..f77148f372ea 100644
--- a/Documentation/devicetree/bindings/leds/leds-gpio.txt
+++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt
@@ -21,6 +21,8 @@ LED sub-node properties:
21 on). The "keep" setting will keep the LED at whatever its current 21 on). The "keep" setting will keep the LED at whatever its current
22 state is, without producing a glitch. The default is off if this 22 state is, without producing a glitch. The default is off if this
23 property is not present. 23 property is not present.
24- retain-state-suspended: (optional) The suspend state can be retained.Such
25 as charge-led gpio.
24 26
25Examples: 27Examples:
26 28
@@ -50,3 +52,13 @@ run-control {
50 default-state = "on"; 52 default-state = "on";
51 }; 53 };
52}; 54};
55
56leds {
57 compatible = "gpio-leds";
58
59 charger-led {
60 gpios = <&gpio1 2 0>;
61 linux,default-trigger = "max8903-charger-charging";
62 retain-state-suspended;
63 };
64};