Skip to content

Commit 31fd710

Browse files
Marek Vasutpavelmachek
authored andcommitted
dt-bindings: leds: Document mmc trigger
The mmc subsystem supports triggering leds on card activity, document the trigger value here. The value is a pattern in this case. Signed-off-by: Marek Vasut <[email protected]> Cc: Jacek Anaszewski <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Rob Herring <[email protected]> Cc: [email protected] To: [email protected] Signed-off-by: Pavel Machek <[email protected]> Reviewed-by: Rob Herring <[email protected]>
1 parent fd6dd95 commit 31fd710

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,27 @@ properties:
7979
the LED.
8080
$ref: /schemas/types.yaml#/definitions/string
8181

82-
enum:
83-
# LED will act as a back-light, controlled by the framebuffer system
84-
- backlight
85-
# LED will turn on (but for leds-gpio see "default-state" property in
86-
# Documentation/devicetree/bindings/leds/leds-gpio.yaml)
87-
- default-on
88-
# LED "double" flashes at a load average based rate
89-
- heartbeat
90-
# LED indicates disk activity
91-
- disk-activity
92-
# LED indicates IDE disk activity (deprecated), in new implementations
93-
# use "disk-activity"
94-
- ide-disk
95-
# LED flashes at a fixed, configurable rate
96-
- timer
97-
# LED alters the brightness for the specified duration with one software
98-
# timer (requires "led-pattern" property)
99-
- pattern
82+
oneOf:
83+
- enum:
84+
# LED will act as a back-light, controlled by the framebuffer system
85+
- backlight
86+
# LED will turn on (but for leds-gpio see "default-state" property in
87+
# Documentation/devicetree/bindings/leds/leds-gpio.yaml)
88+
- default-on
89+
# LED "double" flashes at a load average based rate
90+
- heartbeat
91+
# LED indicates disk activity
92+
- disk-activity
93+
# LED indicates IDE disk activity (deprecated), in new implementations
94+
# use "disk-activity"
95+
- ide-disk
96+
# LED flashes at a fixed, configurable rate
97+
- timer
98+
# LED alters the brightness for the specified duration with one software
99+
# timer (requires "led-pattern" property)
100+
- pattern
101+
# LED is triggered by SD/MMC activity
102+
- pattern: "^mmc[0-9]+$"
100103

101104
led-pattern:
102105
description: |

0 commit comments

Comments
 (0)