Skip to content

Commit e91a4d5

Browse files
Mani-Sadhasivamlag-linaro
authored andcommitted
dt-bindings: leds: Document commonly used LED triggers
Document the commonly used LED triggers by the SoCs. Not all triggers are documented as some of them are very application specific. Most of the triggers documented here are currently used in devicetrees of many SoCs. While at it, add missing comments and also place the comment above the triggers (hci, mmc, wlan) to match the rest of the binding. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230303122925.6610-1-manivannan.sadhasivam@linaro.org
1 parent 8af70e2 commit e91a4d5

1 file changed

Lines changed: 30 additions & 3 deletions

File tree

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,49 @@ properties:
9090
- heartbeat
9191
# LED indicates disk activity
9292
- disk-activity
93+
# LED indicates disk read activity
9394
- disk-read
95+
# LED indicates disk write activity
9496
- disk-write
9597
# LED flashes at a fixed, configurable rate
9698
- timer
9799
# LED alters the brightness for the specified duration with one software
98100
# timer (requires "led-pattern" property)
99101
- pattern
102+
# LED indicates mic mute state
103+
- audio-micmute
104+
# LED indicates audio mute state
105+
- audio-mute
106+
# LED indicates bluetooth power state
107+
- bluetooth-power
108+
# LED indicates activity of all CPUs
109+
- cpu
110+
# LED indicates camera flash state
111+
- flash
112+
# LED indicated keyboard capslock
113+
- kbd-capslock
114+
# LED indicates MTD memory activity
115+
- mtd
116+
# LED indicates NAND memory activity (deprecated),
117+
# in new implementations use "mtd"
118+
- nand-disk
119+
# No trigger assigned to the LED. This is the default mode
120+
# if trigger is absent
121+
- none
122+
# LED indicates camera torch state
123+
- torch
124+
# LED indicates USB gadget activity
100125
- usb-gadget
126+
# LED indicates USB host activity
101127
- usb-host
128+
# LED is triggered by CPU activity
102129
- pattern: "^cpu[0-9]*$"
103-
- pattern: "^hci[0-9]+-power$"
104130
# LED is triggered by Bluetooth activity
105-
- pattern: "^mmc[0-9]+$"
131+
- pattern: "^hci[0-9]+-power$"
106132
# LED is triggered by SD/MMC activity
107-
- pattern: "^phy[0-9]+tx$"
133+
- pattern: "^mmc[0-9]+$"
108134
# LED is triggered by WLAN activity
135+
- pattern: "^phy[0-9]+tx$"
109136

110137
led-pattern:
111138
description: |

0 commit comments

Comments
 (0)