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 --- .../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 + +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)