Devicetree
 help / color / mirror / Atom feed
* [PATCH ath-next 0/9] wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support
@ 2026-11-30  9:50 Josef Schlehofer
  2026-11-30  9:50 ` [PATCH ath-next 5/9] dt-bindings: net: wireless: add QCA6006 binding Josef Schlehofer
  0 siblings, 1 reply; 2+ messages in thread
From: Josef Schlehofer @ 2026-11-30  9:50 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: linux-wireless, Johannes Berg, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel

This series adds the AR6006 hw1.1 (QCA6006, USB 0cf3:9372) to ath6kl.
The chip is the third radio of the Xiaomi AIoT AC2350 router and its
second 2.4 GHz radio. The router runs OpenWrt on a big-endian QCA9563.

It depends on the big-endian fixes sent earlier:
https://lore.kernel.org/r/20261129154710.86640-1-pepe.schlehofer@gmail.com

The series ran on that router with OpenWrt 25.12, backported to its
backports 6.18.55 tree. The MAC address and the 2.4 GHz limit came
from the device tree, added at runtime to the existing node of the
USB port. The firmware booted, station mode joined a WPA2 network and
got a DHCP lease, and AP mode associated a WPA2 client with unicast
data both ways. Further runs took the MAC address from an nvmem cell,
went through a deferred probe and let the firmware connect on a
channel outside the limit, which the driver rejected. I only had one
ath6kl device available, so I could not test two devices at the same
time. Suspend/resume and firmware recovery were not tested either.

Patch 4 gives every device its own band and channel copies, so the
device tree limit in patch 8 does not touch other ath6kl devices.
Patches 5, 6 and 8 add a device tree binding, the MAC address from the
device tree and ieee80211-freq-limit. Patch 7 fixes an old NULL
dereference for a connection on a frequency that has no channel, which
a dropped band makes more likely. The USB ID comes last, so no bisect
point binds the driver to the chip early.

HT is not advertised to cfg80211 because this firmware does not
provide RSN-CAP-OVERRIDE. The firmware nevertheless selected HT
rates in station mode, while the AP ran without HT. The vendor
driver sets the RSN capabilities with a separate command, which
could be added later.

The firmware is not in linux-firmware. I asked Qualcomm about it here:
https://lore.kernel.org/r/20261129142154.53536-1-pepe.schlehofer@gmail.com

The binding passes dt_binding_check. All patches build without
warnings with W=1 and sparse for big- and little-endian MIPS.

Josef Schlehofer (9):
  wifi: ath6kl: add AR6006 hw1.1 support
  wifi: ath6kl: handle the AR6006 WMI layout
  wifi: ath6kl: ignore AR6006 regulatory domain events
  wifi: ath6kl: use per-device band and channel copies
  dt-bindings: net: wireless: add QCA6006 binding
  wifi: ath6kl: take the AR6006 MAC address from DT
  wifi: ath6kl: handle unsupported connection frequencies
  wifi: ath6kl: honour ieee80211-freq-limit from DT
  wifi: ath6kl: add QCA6006 USB ID

 .../bindings/net/wireless/qcom,qca6006.yaml   |  56 ++++++++
 MAINTAINERS                                   |   1 +
 drivers/net/wireless/ath/ath6kl/Kconfig       |   4 +-
 drivers/net/wireless/ath/ath6kl/bmi.h         |   1 +
 drivers/net/wireless/ath/ath6kl/cfg80211.c    | 102 +++++++++++---
 drivers/net/wireless/ath/ath6kl/core.c        |  13 ++
 drivers/net/wireless/ath/ath6kl/core.h        |  26 ++++
 drivers/net/wireless/ath/ath6kl/init.c        | 128 ++++++++++++++++--
 drivers/net/wireless/ath/ath6kl/main.c        |  39 +++++-
 drivers/net/wireless/ath/ath6kl/target.h      |   8 +-
 drivers/net/wireless/ath/ath6kl/usb.c         |   6 +-
 drivers/net/wireless/ath/ath6kl/wmi.c         |  88 ++++++++++--
 drivers/net/wireless/ath/ath6kl/wmi.h         |  51 +++++++
 13 files changed, 475 insertions(+), 48 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml


base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
prerequisite-patch-id: 89962941e5e2bec4646eadeb25f7429dec473b24
prerequisite-patch-id: 8ef8976331b491b95bde120d4e16f11bb2201feb
prerequisite-patch-id: fce0da8f0fbbba34b79af8437b3842d93af001b6
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH ath-next 5/9] dt-bindings: net: wireless: add QCA6006 binding
  2026-11-30  9:50 [PATCH ath-next 0/9] wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support Josef Schlehofer
@ 2026-11-30  9:50 ` Josef Schlehofer
  0 siblings, 0 replies; 2+ messages in thread
From: Josef Schlehofer @ 2026-11-30  9:50 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: linux-wireless, Johannes Berg, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, devicetree, linux-kernel

Describe the QCA6006 (AR6006 hw1.1) USB wireless chip as a USB device
node, so a board can give it a MAC address and an ieee80211-freq-limit.
The Xiaomi AIoT AC2350 router needs both. Its QCA6006 has only a
2.4 GHz front end, and its board data carries the Atheros default MAC
address.

The compatible follows usb-device.yaml, with VID and PID in lower case
and leading zeroes suppressed. The common wireless properties come
from wireless-controller.yaml.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
---
 .../bindings/net/wireless/qcom,qca6006.yaml   | 56 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml

diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml
new file mode 100644
index 000000000..3f727c368
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/wireless/qcom,qca6006.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Atheros QCA6006 USB wireless chip
+
+maintainers:
+  - Josef Schlehofer <pepe.schlehofer@gmail.com>
+
+description:
+  The QCA6006 (AR6006 hw1.1) is a wireless chip connected over USB. The
+  node describes the USB device on the port of its hub.
+
+allOf:
+  - $ref: /schemas/usb/usb-device.yaml#
+  - $ref: wireless-controller.yaml#
+
+properties:
+  compatible:
+    const: usbcf3,9372  # QCA6006 (AR6006 hw1.1)
+
+  nvmem-cells:
+    maxItems: 1
+    description: Reference to an nvmem node for the MAC address
+
+  nvmem-cell-names:
+    items:
+      - const: mac-address
+
+required:
+  - compatible
+  - reg
+
+dependentRequired:
+  nvmem-cells: [nvmem-cell-names]
+  nvmem-cell-names: [nvmem-cells]
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    usb {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        wifi@1 {
+            compatible = "usbcf3,9372";
+            reg = <1>;
+            ieee80211-freq-limit = <2400000 2483000>;
+            local-mac-address = [02 00 00 00 00 01];
+        };
+    };
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index deb787820..7b9e18566 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4384,6 +4384,7 @@ ATHEROS ATH6KL WIRELESS DRIVER
 L:	linux-wireless@vger.kernel.org
 S:	Orphan
 W:	https://wireless.docs.kernel.org/en/latest/en/users/drivers/ath6kl.html
+F:	Documentation/devicetree/bindings/net/wireless/qcom,qca6006.yaml
 F:	drivers/net/wireless/ath/ath6kl/
 
 ATI_REMOTE2 DRIVER
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  9:50 [PATCH ath-next 0/9] wifi: ath6kl: add AR6006 hw1.1 (QCA6006) support Josef Schlehofer
2026-11-30  9:50 ` [PATCH ath-next 5/9] dt-bindings: net: wireless: add QCA6006 binding Josef Schlehofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox