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>
This commit is contained in:
Linus Walleij 2016-08-16 21:41:36 +02:00 committed by Jacek Anaszewski
parent 7f866986e7
commit 1d1a77ddc8
5 changed files with 13 additions and 16 deletions

View File

@ -19,6 +19,13 @@ Optional properties for child nodes:
a device, i.e. no other LED class device can be assigned the same a device, i.e. no other LED class device can be assigned the same
label. 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 - linux,default-trigger : This parameter, if present, is a
string defining the trigger assigned to the LED. Current triggers are: string defining the trigger assigned to the LED. Current triggers are:
"backlight" - LED will act as a back-light, controlled by the framebuffer "backlight" - LED will act as a back-light, controlled by the framebuffer

View File

@ -49,7 +49,7 @@ LED sub-node optional properties:
- active-low : Boolean, makes LED active low. - active-low : Boolean, makes LED active low.
Default : false Default : false
- default-state : see - default-state : see
Documentation/devicetree/bindings/leds/leds-gpio.txt Documentation/devicetree/bindings/leds/common.txt
- linux,default-trigger : see - linux,default-trigger : see
Documentation/devicetree/bindings/leds/common.txt Documentation/devicetree/bindings/leds/common.txt

View File

@ -28,7 +28,7 @@ LED sub-node optional properties:
- active-low : Boolean, makes LED active low. - active-low : Boolean, makes LED active low.
Default : false Default : false
- default-state : see - default-state : see
Documentation/devicetree/bindings/leds/leds-gpio.txt Documentation/devicetree/bindings/leds/common.txt
- linux,default-trigger : see - linux,default-trigger : see
Documentation/devicetree/bindings/leds/common.txt Documentation/devicetree/bindings/leds/common.txt

View File

@ -14,13 +14,8 @@ LED sub-node properties:
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- linux,default-trigger : (optional) - linux,default-trigger : (optional)
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- default-state: (optional) The initial state of the LED. Valid - default-state: (optional) The initial state of the LED.
values are "on", "off", and "keep". If the LED is already on or off see Documentation/devicetree/bindings/leds/common.txt
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.
- retain-state-suspended: (optional) The suspend state can be retained.Such - retain-state-suspended: (optional) The suspend state can be retained.Such
as charge-led gpio. as charge-led gpio.
- panic-indicator : (optional) - panic-indicator : (optional)

View File

@ -23,13 +23,8 @@ Optional properties:
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- linux,default-trigger : (optional) - linux,default-trigger : (optional)
see Documentation/devicetree/bindings/leds/common.txt see Documentation/devicetree/bindings/leds/common.txt
- default-state: (optional) The initial state of the LED. Valid - default-state: (optional) The initial state of the LED
values are "on", "off", and "keep". If the LED is already on or off see Documentation/devicetree/bindings/leds/common.txt
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.
Example: Example: