diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-08-16 21:41:36 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-08-19 21:05:39 +0200 |
commit | 1d1a77ddc8acfa3d506f1958e09a12085e71fc69 (patch) | |
tree | 9da585d17ceb3afc0dac10a99de709c647577d2f /Documentation/devicetree/bindings/leds/common.txt | |
parent | leds: add PM8058 LEDs driver (diff) | |
download | linux-1d1a77ddc8acfa3d506f1958e09a12085e71fc69.tar.xz linux-1d1a77ddc8acfa3d506f1958e09a12085e71fc69.zip |
leds: centralize definition of "default-state" property
Four different drivers define the "default-state" property.
Move this into the common.txt common LEDs properties.
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/common.txt')
-rw-r--r-- | Documentation/devicetree/bindings/leds/common.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt index 93ef6e6e43b5..696be5792625 100644 --- a/Documentation/devicetree/bindings/leds/common.txt +++ b/Documentation/devicetree/bindings/leds/common.txt @@ -19,6 +19,13 @@ Optional properties for child nodes: a device, i.e. no other LED class device can be assigned the same label. +- default-state : The initial state of the LED. Valid values are "on", "off", + and "keep". If the LED is already on or off and the default-state property is + set the to same value, then no glitch should be produced where the LED + momentarily turns off (or 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. + - linux,default-trigger : This parameter, if present, is a string defining the trigger assigned to the LED. Current triggers are: "backlight" - LED will act as a back-light, controlled by the framebuffer |