mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
leds: leds-gpio: add retain-state-suspended property
Some gpio-leds need retain the state even in suspend, such as charger led. But this property missed in devicetree, add it. ([email protected]: fold DT binding updates into this patch) Signed-off-by: Robin Gong <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
25c6579f87
commit
4270a78d23
2 changed files with 15 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue