Commit e91a4d5d authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Lee Jones

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: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230303122925.6610-1-manivannan.sadhasivam@linaro.org
parent 8af70e20
...@@ -90,22 +90,49 @@ properties: ...@@ -90,22 +90,49 @@ properties:
- heartbeat - heartbeat
# LED indicates disk activity # LED indicates disk activity
- disk-activity - disk-activity
# LED indicates disk read activity
- disk-read - disk-read
# LED indicates disk write activity
- disk-write - disk-write
# LED flashes at a fixed, configurable rate # LED flashes at a fixed, configurable rate
- timer - timer
# LED alters the brightness for the specified duration with one software # LED alters the brightness for the specified duration with one software
# timer (requires "led-pattern" property) # timer (requires "led-pattern" property)
- pattern - pattern
# LED indicates mic mute state
- audio-micmute
# LED indicates audio mute state
- audio-mute
# LED indicates bluetooth power state
- bluetooth-power
# LED indicates activity of all CPUs
- cpu
# LED indicates camera flash state
- flash
# LED indicated keyboard capslock
- kbd-capslock
# LED indicates MTD memory activity
- mtd
# LED indicates NAND memory activity (deprecated),
# in new implementations use "mtd"
- nand-disk
# No trigger assigned to the LED. This is the default mode
# if trigger is absent
- none
# LED indicates camera torch state
- torch
# LED indicates USB gadget activity
- usb-gadget - usb-gadget
# LED indicates USB host activity
- usb-host - usb-host
# LED is triggered by CPU activity
- pattern: "^cpu[0-9]*$" - pattern: "^cpu[0-9]*$"
- pattern: "^hci[0-9]+-power$"
# LED is triggered by Bluetooth activity # LED is triggered by Bluetooth activity
- pattern: "^mmc[0-9]+$" - pattern: "^hci[0-9]+-power$"
# LED is triggered by SD/MMC activity # LED is triggered by SD/MMC activity
- pattern: "^phy[0-9]+tx$" - pattern: "^mmc[0-9]+$"
# LED is triggered by WLAN activity # LED is triggered by WLAN activity
- pattern: "^phy[0-9]+tx$"
led-pattern: led-pattern:
description: | description: |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment