Skip to content

Commit 1d1a77d

Browse files
Linus Walleijjanaszewski
authored andcommitted
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>
1 parent 7f86698 commit 1d1a77d

5 files changed

Lines changed: 13 additions & 16 deletions

File tree

‎Documentation/devicetree/bindings/leds/common.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ Optional properties for child nodes:
1919
a device, i.e. no other LED class device can be assigned the same
2020
label.
2121

22+
- default-state : The initial state of the LED. Valid values are "on", "off",
23+
and "keep". If the LED is already on or off and the default-state property is
24+
set the to same value, then no glitch should be produced where the LED
25+
momentarily turns off (or on). The "keep" setting will keep the LED at
26+
whatever its current state is, without producing a glitch. The default is
27+
off if this property is not present.
28+
2229
- linux,default-trigger : This parameter, if present, is a
2330
string defining the trigger assigned to the LED. Current triggers are:
2431
"backlight" - LED will act as a back-light, controlled by the framebuffer

‎Documentation/devicetree/bindings/leds/leds-bcm6328.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ LED sub-node optional properties:
4949
- active-low : Boolean, makes LED active low.
5050
Default : false
5151
- default-state : see
52-
Documentation/devicetree/bindings/leds/leds-gpio.txt
52+
Documentation/devicetree/bindings/leds/common.txt
5353
- linux,default-trigger : see
5454
Documentation/devicetree/bindings/leds/common.txt
5555

‎Documentation/devicetree/bindings/leds/leds-bcm6358.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ LED sub-node optional properties:
2828
- active-low : Boolean, makes LED active low.
2929
Default : false
3030
- default-state : see
31-
Documentation/devicetree/bindings/leds/leds-gpio.txt
31+
Documentation/devicetree/bindings/leds/common.txt
3232
- linux,default-trigger : see
3333
Documentation/devicetree/bindings/leds/common.txt
3434

‎Documentation/devicetree/bindings/leds/leds-gpio.txt‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@ LED sub-node properties:
1414
see Documentation/devicetree/bindings/leds/common.txt
1515
- linux,default-trigger : (optional)
1616
see Documentation/devicetree/bindings/leds/common.txt
17-
- default-state: (optional) The initial state of the LED. Valid
18-
values are "on", "off", and "keep". If the LED is already on or off
19-
and the default-state property is set the to same value, then no
20-
glitch should be produced where the LED momentarily turns off (or
21-
on). The "keep" setting will keep the LED at whatever its current
22-
state is, without producing a glitch. The default is off if this
23-
property is not present.
17+
- default-state: (optional) The initial state of the LED.
18+
see Documentation/devicetree/bindings/leds/common.txt
2419
- retain-state-suspended: (optional) The suspend state can be retained.Such
2520
as charge-led gpio.
2621
- panic-indicator : (optional)

‎Documentation/devicetree/bindings/leds/register-bit-led.txt‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ Optional properties:
2323
see Documentation/devicetree/bindings/leds/common.txt
2424
- linux,default-trigger : (optional)
2525
see Documentation/devicetree/bindings/leds/common.txt
26-
- default-state: (optional) The initial state of the LED. Valid
27-
values are "on", "off", and "keep". If the LED is already on or off
28-
and the default-state property is set the to same value, then no
29-
glitch should be produced where the LED momentarily turns off (or
30-
on). The "keep" setting will keep the LED at whatever its current
31-
state is, without producing a glitch. The default is off if this
32-
property is not present.
26+
- default-state: (optional) The initial state of the LED
27+
see Documentation/devicetree/bindings/leds/common.txt
3328

3429
Example:
3530

0 commit comments

Comments
 (0)