|
@@ -21,6 +21,8 @@ LED sub-node properties:
|
|
on). The "keep" setting will keep the LED at whatever its current
|
|
on). The "keep" setting will keep the LED at whatever its current
|
|
state is, without producing a glitch. The default is off if this
|
|
state is, without producing a glitch. The default is off if this
|
|
property is not present.
|
|
property is not present.
|
|
|
|
+- retain-state-suspended: (optional) The suspend state can be retained.Such
|
|
|
|
+ as charge-led gpio.
|
|
|
|
|
|
Examples:
|
|
Examples:
|
|
|
|
|
|
@@ -50,3 +52,13 @@ run-control {
|
|
default-state = "on";
|
|
default-state = "on";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+leds {
|
|
|
|
+ compatible = "gpio-leds";
|
|
|
|
+
|
|
|
|
+ charger-led {
|
|
|
|
+ gpios = <&gpio1 2 0>;
|
|
|
|
+ linux,default-trigger = "max8903-charger-charging";
|
|
|
|
+ retain-state-suspended;
|
|
|
|
+ };
|
|
|
|
+};
|