* [PATCH v7] dt-bindings: leds: Document commonly used LED triggers
@ 2023-03-03 12:29 Manivannan Sadhasivam
2023-03-03 13:33 ` Lee Jones
0 siblings, 1 reply; 3+ messages in thread
From: Manivannan Sadhasivam @ 2023-03-03 12:29 UTC (permalink / raw)
To: lee, jacek.anaszewski, pavel, robh+dt, krzysztof.kozlowski+dt
Cc: devicetree, linux-kernel, linux-leds, thunder.leizhen, festevam,
Manivannan Sadhasivam, Rob Herring
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: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
Changes in v7:
* Rebased on top of next/master
Changes in v6:
* Rebased on top of lee/for-leds-next branch
* Fixed the comment location for few triggers
Changes in v5:
* Rebased on top of v6.2-rc1
Changes in v4:
* Removed the sorting of triggers
* Removed the "items" as they were not needed
* Reworded the description
* Dropped Zhen Lei's tested-by tag as the patch has changed
* Added kbd-capslock trigger
Changes in v3:
* Rebased on top of v6.1-rc1
* Added WLAN Rx trigger
* Added tested tag from Zhen Lei
Changes in v2:
* Added more triggers, fixed the regex
* Sorted triggers in ascending order
.../devicetree/bindings/leds/common.yaml | 33 +++++++++++++++++--
1 file changed, 30 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 15e3f6645682..61e63ed81ced 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -90,22 +90,49 @@ properties:
- heartbeat
# LED indicates disk activity
- disk-activity
+ # LED indicates disk read activity
- disk-read
+ # LED indicates disk write activity
- disk-write
# LED flashes at a fixed, configurable rate
- timer
# LED alters the brightness for the specified duration with one software
# timer (requires "led-pattern" property)
- 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
+ # LED indicates USB host activity
- usb-host
+ # LED is triggered by CPU activity
- pattern: "^cpu[0-9]*$"
- - pattern: "^hci[0-9]+-power$"
# LED is triggered by Bluetooth activity
- - pattern: "^mmc[0-9]+$"
+ - pattern: "^hci[0-9]+-power$"
# LED is triggered by SD/MMC activity
- - pattern: "^phy[0-9]+tx$"
+ - pattern: "^mmc[0-9]+$"
# LED is triggered by WLAN activity
+ - pattern: "^phy[0-9]+tx$"
led-pattern:
description: |
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v7] dt-bindings: leds: Document commonly used LED triggers
2023-03-03 12:29 [PATCH v7] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
@ 2023-03-03 13:33 ` Lee Jones
0 siblings, 0 replies; 3+ messages in thread
From: Lee Jones @ 2023-03-03 13:33 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: jacek.anaszewski, pavel, robh+dt, krzysztof.kozlowski+dt,
devicetree, linux-kernel, linux-leds, thunder.leizhen, festevam,
Rob Herring
On Fri, 03 Mar 2023, Manivannan Sadhasivam wrote:
> 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: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
You signed it off twice, but I fixed that.
> ---
>
> Changes in v7:
>
> * Rebased on top of next/master
>
> Changes in v6:
>
> * Rebased on top of lee/for-leds-next branch
> * Fixed the comment location for few triggers
>
> Changes in v5:
>
> * Rebased on top of v6.2-rc1
>
> Changes in v4:
>
> * Removed the sorting of triggers
> * Removed the "items" as they were not needed
> * Reworded the description
> * Dropped Zhen Lei's tested-by tag as the patch has changed
> * Added kbd-capslock trigger
>
> Changes in v3:
>
> * Rebased on top of v6.1-rc1
> * Added WLAN Rx trigger
> * Added tested tag from Zhen Lei
>
> Changes in v2:
>
> * Added more triggers, fixed the regex
> * Sorted triggers in ascending order
>
> .../devicetree/bindings/leds/common.yaml | 33 +++++++++++++++++--
> 1 file changed, 30 insertions(+), 3 deletions(-)
Applied, thanks
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v7 0/2] Fix crash when using Qcom LLCC/EDAC drivers
@ 2023-05-17 6:24 Manivannan Sadhasivam
2023-05-17 6:24 ` [PATCH v7] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
0 siblings, 1 reply; 3+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17 6:24 UTC (permalink / raw)
To: andersson, bp, mchehab
Cc: james.morse, rric, linux-arm-msm, linux-edac, linux-kernel,
dmitry.baryshkov, Manivannan Sadhasivam
Hello,
This series fixes the crash seen on the Qualcomm SM8450 chipset with the
LLCC/EDAC drivers. The problem was due to the Qcom EDAC driver using the
fixed LLCC register offsets for detecting the LLCC errors.
This seems to have worked for SoCs till SM8450. But in SM8450, the LLCC
register offsets were changed. So accessing the fixed offsets causes the
crash on this platform.
So for fixing this issue, and also to make it work on future SoCs, let's
pass the LLCC offsets from the Qcom LLCC driver based on the individual
SoCs and let the EDAC driver make use of them.
This series has been tested on SM8450 based dev board.
Thanks,
Mani
[1] https://lore.kernel.org/linux-arm-msm/20230314053725.13623-1-manivannan.sadhasivam@linaro.org/
Changes in v7:
* Rebased on top of v6.4-rc1
Changes in v6:
* Rebased on top of v6.3-rc1
* Dropped the Kconfig patch that got applied
Changes in v5:
* Added fixes tag and CCed stable mentioning the dependency
* Added a patch to fix the build error with COMPILE_TEST
Changes in v4:
* Dropped the patches that were already applied
* Rebased on top of v6.1-rc5
Changes in v3:
* Instead of using SoC specific register offset naming convention, used
LLCC version based as suggested by Sai
* Fixed the existing reg_offset naming convention to clearly represent
the LLCC version from which the offsets were changed
* Added Sai's Acked-by to MAINTAINERS patch
* Added a new patch that removes an extra error no assignment
Changes in v2:
* Volunteered myself as a maintainer for the EDAC driver since the current
maintainers have left Qualcomm and I couldn't get hold of them.
Manivannan Sadhasivam (2):
EDAC/qcom: Remove extra error no assignment in qcom_llcc_core_setup()
EDAC/qcom: Get rid of hardcoded register offsets
drivers/edac/qcom_edac.c | 119 ++++++++++++++---------------
include/linux/soc/qcom/llcc-qcom.h | 6 --
2 files changed, 59 insertions(+), 66 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v7] dt-bindings: leds: Document commonly used LED triggers
2023-05-17 6:24 [PATCH v7 0/2] Fix crash when using Qcom LLCC/EDAC drivers Manivannan Sadhasivam
@ 2023-05-17 6:24 ` Manivannan Sadhasivam
0 siblings, 0 replies; 3+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17 6:24 UTC (permalink / raw)
To: andersson, bp, mchehab
Cc: james.morse, rric, linux-arm-msm, linux-edac, linux-kernel,
dmitry.baryshkov, Manivannan Sadhasivam, Rob Herring
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: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
Changes in v7:
* Rebased on top of next/master
Changes in v6:
* Rebased on top of lee/for-leds-next branch
* Fixed the comment location for few triggers
Changes in v5:
* Rebased on top of v6.2-rc1
Changes in v4:
* Removed the sorting of triggers
* Removed the "items" as they were not needed
* Reworded the description
* Dropped Zhen Lei's tested-by tag as the patch has changed
* Added kbd-capslock trigger
Changes in v3:
* Rebased on top of v6.1-rc1
* Added WLAN Rx trigger
* Added tested tag from Zhen Lei
Changes in v2:
* Added more triggers, fixed the regex
* Sorted triggers in ascending order
.../devicetree/bindings/leds/common.yaml | 33 +++++++++++++++++--
1 file changed, 30 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 15e3f6645682..61e63ed81ced 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -90,22 +90,49 @@ properties:
- heartbeat
# LED indicates disk activity
- disk-activity
+ # LED indicates disk read activity
- disk-read
+ # LED indicates disk write activity
- disk-write
# LED flashes at a fixed, configurable rate
- timer
# LED alters the brightness for the specified duration with one software
# timer (requires "led-pattern" property)
- 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
+ # LED indicates USB host activity
- usb-host
+ # LED is triggered by CPU activity
- pattern: "^cpu[0-9]*$"
- - pattern: "^hci[0-9]+-power$"
# LED is triggered by Bluetooth activity
- - pattern: "^mmc[0-9]+$"
+ - pattern: "^hci[0-9]+-power$"
# LED is triggered by SD/MMC activity
- - pattern: "^phy[0-9]+tx$"
+ - pattern: "^mmc[0-9]+$"
# LED is triggered by WLAN activity
+ - pattern: "^phy[0-9]+tx$"
led-pattern:
description: |
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-17 6:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 12:29 [PATCH v7] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
2023-03-03 13:33 ` Lee Jones
-- strict thread matches above, loose matches on Subject: below --
2023-05-17 6:24 [PATCH v7 0/2] Fix crash when using Qcom LLCC/EDAC drivers Manivannan Sadhasivam
2023-05-17 6:24 ` [PATCH v7] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox