@@ -21,6 +21,8 @@ LED sub-node properties:
on). The "keep" setting will keep the LED at whatever its current
state is, without producing a glitch. The default is off if this
property is not present.
+- retain-state-suspended: (optional) The suspend state can be retained.Such
+ as charge-led gpio.
Examples:
@@ -50,3 +52,13 @@ run-control {
default-state = "on";
};
};
+
+leds {
+ compatible = "gpio-leds";
+
+ charger-led {
+ gpios = <&gpio1 2 0>;
+ linux,default-trigger = "max8903-charger-charging";
+ retain-state-suspended;
+ };
+};
Update the binding doc for new property: "retain-state-suspended" Signed-off-by: Robin Gong <b38343@freescale.com> --- .../devicetree/bindings/leds/leds-gpio.txt | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)