>From d1e1a93fbfcbe711659f7ed7480633bf4d382377 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Fri, 16 Jun 2023 22:58:20 +0200 Subject: [PATCH 1/3] dt-bindings: net: wireless: qcom: ath10k: Document LED node support 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 --- .../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 + + 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 = ; + function = LED_FUNCTION_WLAN; + }; + }; + }; + }; + # SNoC - | #include -- 2.40.1