Skip to contentSkip to conversation

dt-bindings: net: wireless: qcom,ath10k: add PCI devices

PATCH In review Rosen Penev 2 participants 4 messages Nov 11 – Nov 14

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: net: wireless: qcom,ath10k: add PCI devices

ath10k PCI devices can be described as children of their PCI host bridge, for example to supply the MAC address and calibration data through nvmem cells. The only compatible for that was "qcom,ath10k", but the generic PCI device schema requires a node under a PCI bus to carry a "pciVVVV,DDDD" or "pciclass,..." compatible, so such nodes fail validation.

Add the PCI vendor/device IDs handled by the ath10k PCI driver, as the ath9k and ath11k PCI bindings already do.

---
 .../devicetree/bindings/net/wireless/qcom,ath10k.yaml    | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml +9 -0
index 0cb065265df4..992926ce5c5e 100644
@@ -15,6 +15,15 @@ description:
 properties:
   compatible:
     enum:
+      - pci0777,11ac  # QCA988X (Ubiquiti branded)
+      - pci168c,003c  # QCA988X
+      - pci168c,003e  # QCA6174
+      - pci168c,0040  # QCA99X0
+      - pci168c,0041  # QCA6164
+      - pci168c,0042  # QCA9377
+      - pci168c,0046  # QCA9984
+      - pci168c,0050  # QCA9887
+      - pci168c,0056  # QCA9888
       - qcom,ath10k # SDIO-based devices
       - qcom,ipq4019-wifi
       - qcom,wcn3990-wifi # SNoC-based devices
Signature · 1 line
2.56.0
#1 lore raw
Quoted 9 lines · Rosen Penev

ath10k PCI devices can be described as children of their PCI host bridge, for example to supply the MAC address and calibration data through nvmem cells. The only compatible for that was "qcom,ath10k", but the generic PCI device schema requires a node under a PCI bus to carry a "pciVVVV,DDDD" or "pciclass,..." compatible, so such nodes fail validation.

Add the PCI vendor/device IDs handled by the ath10k PCI driver, as the ath9k and ath11k PCI bindings already do.

We do not need to least all PCI devices here. Were is any actual DTS user of these?

Best regards,
Krzysztof

#2 lore raw
Quoted 9 lines · Krzysztof Kozlowski
Quoted 7 lines · Rosen Penev

ath10k PCI devices can be described as children of their PCI host bridge, for example to supply the MAC address and calibration data through nvmem cells. The only compatible for that was "qcom,ath10k", but the generic PCI device schema requires a node under a PCI bus to carry a "pciVVVV,DDDD" or "pciclass,..." compatible, so such nodes fail validation.

Quoted 5 lines
Quoted 2 lines

Add the PCI vendor/device IDs handled by the ath10k PCI driver, as the ath9k and ath11k PCI bindings already do.

We do not need to least all PCI devices here. Were is any actual DTS user of these?

I have some WIP patches that include the QCA988X. Reason for it is nvram calibration and MAC lookup.

This is basically copy/paste of what's already present in ath9k.yaml.

AFAIK this came up because of dtbs_check

Quoted 4 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 13 lines · Rosen Penev
Quoted 12 lines · Krzysztof Kozlowski
Quoted 9 lines · Rosen Penev

ath10k PCI devices can be described as children of their PCI host bridge, for example to supply the MAC address and calibration data through nvmem cells. The only compatible for that was "qcom,ath10k", but the generic PCI device schema requires a node under a PCI bus to carry a "pciVVVV,DDDD" or "pciclass,..." compatible, so such nodes fail validation.

Add the PCI vendor/device IDs handled by the ath10k PCI driver, as the ath9k and ath11k PCI bindings already do.

Quoted 8 lines
Quoted 2 lines

We do not need to least all PCI devices here. Were is any actual DTS user of these?

I have some WIP patches that include the QCA988X. Reason for it is nvram calibration and MAC lookup.

This is basically copy/paste of what's already present in ath9k.yaml.

AFAIK this came up because of dtbs_check

It cannot come as dtbs_check result, because there are no DTS with these.

Best regards,
Krzysztof