[PATCH 1/3] dt-bindings: net: wireless: qcom: ath10k: Document LED node support

From: Christian Marangi
Date: Fri Jun 16 2023 - 16:58:20 EST


Ath10k based wifi cards can support a LED connected via GPIO internally.
The LED is configured used WMI call. Document support for the LED node
controllable standard LED bindings.

While at it adds also an example for PCIe where LED is commonly
connected and used on routers.

Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
---
.../bindings/net/wireless/qcom,ath10k.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml
index c85ed330426d..7528ece8eff7 100644
--- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml
+++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml
@@ -157,6 +157,11 @@ properties:
vdd-3.3-ch1-supply:
description: Secondary Wi-Fi antenna supply

+ led:
+ $ref: /schemas/leds/common.yaml#
+
+ unevaluatedProperties: false
+
required:
- compatible
- reg
@@ -258,6 +263,43 @@ allOf:
- interrupts

examples:
+ # PCIe
+ - |
+ #include <dt-bindings/leds/common.h>
+
+ pci@1b500000 {
+ reg = <0x1b500000 0x1000
+ 0x1b502000 0x80
+ 0x1b600000 0x100
+ 0x0ff00000 0x100000>;
+ device_type = "pci";
+ #address-cells = <3>;
+ #size-cells = <2>;
+
+ ranges = <0x81000000 0x0 0x00000000 0x0fe00000 0x0 0x00010000 /* I/O */
+ 0x82000000 0x0 0x08000000 0x08000000 0x0 0x07e00000>; /* MEM */
+
+ /* ... */
+
+ bridge@0,0 {
+ reg = <0x00000000 0 0 0 0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ ranges;
+
+ wifi@1,0 {
+ compatible = "qcom,ath10k";
+ reg = <0x00010000 0 0 0 0>;
+
+ led {
+ default-state = "keep";
+ color = <LED_COLOR_ID_WHITE>;
+ function = LED_FUNCTION_WLAN;
+ };
+ };
+ };
+ };
+
# SNoC
- |
#include <dt-bindings/clock/qcom,rpmcc.h>
--
2.40.1


--ISiK3ICplRRKwxPi
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0002-wifi-ath10k-start-LED-with-the-previous-defined-cdev.patch"