* [PATCH 0/2] Bluetooth: qca: add WCN7861 support @ 2026-12-05 1:59 Qianhui Xu 2026-12-05 1:59 ` [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Qianhui Xu 2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu 0 siblings, 2 replies; 5+ messages in thread From: Qianhui Xu @ 2026-12-05 1:59 UTC (permalink / raw) To: Marcel Holtmann, Luiz Augusto von Dentz, linux-bluetooth Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-arm-msm, linux-kernel WCN7861 is a UART-attached Bluetooth controller that speaks the same protocol as the WCN7850 but ships its own firmware and PMU rails. Boards therefore describe it with a dedicated compatible instead of reusing qcom,wcn7850-bt. 1/2 adds the binding for that compatible, so board devicetrees validate and the regulator requirements are checked instead of being skipped as unmatched. 2/2 adds the matching entry to hci_qca and reuses qca_soc_data_wcn7850; the firmware file names come from the device tree, so no separate soc_type is needed. The controller was brought up on a WCN7861 board: hci0 reports UP RUNNING and btqca downloads both firmware files. Both patches apply on 7.4-rc5. Qianhui Xu (2): dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Bluetooth: hci_qca: add WCN7861 .../net/bluetooth/qcom,wcn7861-bt.yaml | 83 +++++++++++++++++++ drivers/bluetooth/hci_qca.c | 1 + 2 files changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml --- *** AI-assistance disclosure *** This series was prepared with the help of an LLM coding assistant. The author reviewed every line, checked every quoted claim against the tree, and ran the checks quoted in the commit messages; the design decisions and any errors are the author's. -- 2.53.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 2026-12-05 1:59 [PATCH 0/2] Bluetooth: qca: add WCN7861 support Qianhui Xu @ 2026-12-05 1:59 ` Qianhui Xu 2026-12-05 2:12 ` sashiko-bot 2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu 1 sibling, 1 reply; 5+ messages in thread From: Qianhui Xu @ 2026-12-05 1:59 UTC (permalink / raw) To: Marcel Holtmann, Luiz Augusto von Dentz, linux-bluetooth Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-arm-msm, linux-kernel WCN7861 is wired as a serial device and speaks the same UART protocol as the WCN7850, but it ships its own firmware images, so board files carry a dedicated compatible rather than falling back to qcom,wcn7850-bt. Without a schema, devicetrees using that compatible fail validation with "failed to match any schema" and the regulator requirements go unchecked. make dt_binding_check DT_SCHEMA_FILES=qcom,wcn7861-bt.yaml passes. Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn> --- .../net/bluetooth/qcom,wcn7861-bt.yaml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml diff --git a/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml b/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml new file mode 100644 index 0000000000000..814b1ad945fd0 --- /dev/null +++ b/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth/qcom,wcn7861-bt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCN7861 Bluetooth + +maintainers: + - Bartosz Golaszewski <brgl@bgdev.pl> + - Balakrishna Godavarthi <quic_bgodavar@quicinc.com> + - Rocky Liao <quic_rjliao@quicinc.com> + +description: + The WCN7861 speaks the same UART protocol as the WCN7850, but it is a + distinct chip with its own firmware images, so it carries its own + compatible and its own schema instead of reusing qcom,wcn7850-bt. + +properties: + compatible: + const: qcom,wcn7861-bt + + vddaon-supply: + description: VDD_AON supply regulator handle + + vddrfa0p8-supply: + description: VDD_RFA_0P8 supply regulator handle + + vddrfa1p2-supply: + description: VDD_RFA_1P2 supply regulator handle + + vddrfa1p8-supply: + description: VDD_RFA_1P8 supply regulator handle + + vddrfacmn-supply: + description: VDD_RFA_CMN supply regulator handle + + vddwlcx-supply: + description: VDD_WLCX supply regulator handle + + vddwlmx-supply: + description: VDD_WLMX supply regulator handle + + firmware-name: + minItems: 1 + items: + - description: specify the name of nvm firmware to load + - description: specify the name of rampatch firmware to load + +required: + - compatible + - vddrfacmn-supply + - vddaon-supply + - vddwlcx-supply + - vddwlmx-supply + - vddrfa0p8-supply + - vddrfa1p2-supply + - vddrfa1p8-supply + +allOf: + - $ref: bluetooth-controller.yaml# + - $ref: qcom,bluetooth-common.yaml + - $ref: /schemas/serial/serial-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + serial { + bluetooth { + compatible = "qcom,wcn7861-bt"; + + firmware-name = "brhbtnv20.bin", "brhbtfw20.tlv"; + max-speed = <8000000>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>; + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + }; + }; -- 2.53.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 2026-12-05 1:59 ` [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Qianhui Xu @ 2026-12-05 2:12 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-12-05 2:12 UTC (permalink / raw) To: Qianhui Xu; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 5 potential issues to consider: - [Low] dt-bindings: qcom,wcn7861-bt.yaml duplicates qcom,wcn7850-bt.yaml - [Low] dt-bindings: redundant firmware-name definition in qcom,wcn7861-bt.yaml - [Low] dt-bindings: redundant wording and capitalization in commit subject - [Low] dt-bindings: top-level description states schema rationale not hardware - [Low] dt-bindings: bluetooth: WCN7861 example max-speed unsupported by hci_qca -- commit 4b6eff660e21dbe4b677ef2a2ffdc353f6de9109 Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn> dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 This commit adds a new Device Tree binding schema for the Qualcomm WCN7861 Bluetooth controller, documenting its compatible string, regulator supplies, firmware-name property, and an example serial node. > dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 [Severity: Low] Per Documentation/devicetree/bindings/submitting-patches.rst, the prefix should match the lowercase binding directory (dt-bindings: bluetooth: or dt-bindings: net: bluetooth:) and drop "schema", which is redundant with dt-bindings: (for example, "dt-bindings: bluetooth: Add Qualcomm WCN7861"). > diff --git a/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml b/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml > new file mode 100644 > index 0000000000000..814b1ad945fd0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/bluetooth/qcom,wcn7861-bt.yaml [ ... ] > +description: > + The WCN7861 speaks the same UART protocol as the WCN7850, but it is a > + distinct chip with its own firmware images, so it carries its own > + compatible and its own schema instead of reusing qcom,wcn7850-bt. [Severity: Low] Should this top-level description document the WCN7861 Bluetooth hardware itself rather than schema-organization rationale? Per Documentation/devicetree/bindings/writing-schema.rst, binding rationale belongs in the commit message. > + > +properties: > + compatible: > + const: qcom,wcn7861-bt [Severity: Low] Does WCN7861 need a separate binding file instead of being added to qcom,wcn7850-bt.yaml? All seven active supply properties, the required list, the allOf references, and unevaluatedProperties: false duplicate qcom,wcn7850-bt.yaml verbatim. The only difference there is five deprecated legacy properties, and qcom,wcn7850-bt.yaml already uses an enum for compatible with no conditionals. A standalone non-fallback compatible for separate firmware images does not require a separate schema file, as sibling bindings like qcom,wcn3950-bt.yaml group distinct chips in one schema via a compatible enum. Adding qcom,wcn7861-bt to qcom,wcn7850-bt.yaml (with a small if/then block disallowing the five deprecated properties if strict rejection is wanted) would avoid duplicating the schema. [ ... ] > + firmware-name: > + minItems: 1 > + items: > + - description: specify the name of nvm firmware to load > + - description: specify the name of rampatch firmware to load [Severity: Low] Is this firmware-name definition redundant? The schema already references qcom,bluetooth-common.yaml in allOf with unevaluatedProperties: false, which provides this exact definition, and none of the sibling qcom,*-bt.yaml bindings redefine it locally. It can be dropped. [ ... ] > +examples: > + - | > + serial { > + bluetooth { > + compatible = "qcom,wcn7861-bt"; > + > + firmware-name = "brhbtnv20.bin", "brhbtfw20.tlv"; > + max-speed = <8000000>; [Severity: Low] Is 8000000 bps supported by hci_qca? enum qca_baudrate in drivers/bluetooth/btqca.h has no 8 Mbps entry, so qca_get_baudrate_value() in drivers/bluetooth/hci_qca.c silently falls back to QCA_BAUDRATE_115200 for 8000000. In qca_set_speed(), qca_set_baudrate() programs the controller to 115200 bps while host_set_baudrate() switches the host UART to 8000000 bps. Any board DTS following this example will hit a UART baudrate mismatch that breaks Bluetooth initialization and firmware download. The example should use a supported speed such as 3200000 until hci_qca supports 8 Mbps. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261205015945.1695359-1-xiaqinghuan@mail.ustc.edu.cn?part=1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 2026-12-05 1:59 [PATCH 0/2] Bluetooth: qca: add WCN7861 support Qianhui Xu 2026-12-05 1:59 ` [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Qianhui Xu @ 2026-12-05 1:59 ` Qianhui Xu 2026-12-05 2:17 ` sashiko-bot 1 sibling, 1 reply; 5+ messages in thread From: Qianhui Xu @ 2026-12-05 1:59 UTC (permalink / raw) To: Marcel Holtmann, Luiz Augusto von Dentz, linux-bluetooth Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree, linux-arm-msm, linux-kernel WCN7861 is a UART-attached controller that uses the same setup and firmware download sequence as the WCN7850. It ships its own firmware images and PMU rails, so boards describe it with a dedicated compatible; without a match entry the serdev driver never probes and the controller stays unconfigured. Reuse qca_soc_data_wcn7850 for it. The firmware files are taken from the firmware-name property in the device tree, which boards already provide, so no new soc_type is required here. Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn> --- drivers/bluetooth/hci_qca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 158f294c18902..2482d9026bc4e 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -2830,6 +2830,7 @@ static const struct of_device_id qca_bluetooth_of_match[] = { { .compatible = "qcom,wcn6750-bt", .data = &qca_soc_data_wcn6750}, { .compatible = "qcom,wcn6855-bt", .data = &qca_soc_data_wcn6855}, { .compatible = "qcom,wcn7850-bt", .data = &qca_soc_data_wcn7850}, + { .compatible = "qcom,wcn7861-bt", .data = &qca_soc_data_wcn7850}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match); -- 2.53.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu @ 2026-12-05 2:17 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-12-05 2:17 UTC (permalink / raw) To: Qianhui Xu; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] Bluetooth: hci_qca: WCN7861 8 Mbps max-speed silently mapped to 115200 bps - [Medium] Bluetooth: hci_qca: WCN7861 falls back to WCN7850 firmware in qca_uart_setup() -- commit 2194e250fb59f2883c19b620ae0e9cc9454f43b9 Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn> Bluetooth: hci_qca: add WCN7861 This commit adds the "qcom,wcn7861-bt" compatible string to qca_bluetooth_of_match[] in hci_qca, reusing qca_soc_data_wcn7850. > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > index d693e28427251..9ef4362e9406b 100644 > --- a/drivers/bluetooth/hci_qca.c > +++ b/drivers/bluetooth/hci_qca.c > @@ -2831,6 +2831,7 @@ static const struct of_device_id qca_bluetooth_of_match[] = { > { .compatible = "qcom,wcn6750-bt", .data = &qca_soc_data_wcn6750}, > { .compatible = "qcom,wcn6855-bt", .data = &qca_soc_data_wcn6855}, > { .compatible = "qcom,wcn7850-bt", .data = &qca_soc_data_wcn7850}, > + { .compatible = "qcom,wcn7861-bt", .data = &qca_soc_data_wcn7850}, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match); [Severity: Medium] Can reusing qca_soc_data_wcn7850 cause qca_uart_setup() to download WCN7850 firmware onto WCN7861 hardware? Commit "dt-bindings: Bluetooth: add schema for Qualcomm WCN7861" leaves firmware-name optional with minItems: 1, and qca_serdev_probe() ignores the return value of device_property_read_string_array(). If a devicetree omits firmware-name or provides only the NVM entry, qca_uart_setup() falls back to the QCA_WCN7850 defaults (qca/hmtbtfw%02x.tlv and hmtnv), breaking controller initialization. Should WCN7861 have its own soc_type with default firmware names, or should the binding and qca_serdev_probe() require both firmware-name entries? [Severity: High] Does qca_set_speed() desynchronize the UART baudrate when a WCN7861 devicetree sets max-speed = <8000000> as shown in the binding example? qca_get_baudrate_value() has no 8 Mbps entry and falls back to QCA_BAUDRATE_115200. qca_set_speed() then sets the controller to 115200 bps via qca_set_baudrate() and the host UART to 8000000 bps via host_set_baudrate(), so later commands in qca_uart_setup() time out. qca_setup() also passes QCA_BAUDRATE_115200 into qca_uart_setup(), which patches the NVM baudrate tag with 115200 instead of 8000000. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261205015945.1695359-1-xiaqinghuan@mail.ustc.edu.cn?part=2 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-05 2:17 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-12-05 1:59 [PATCH 0/2] Bluetooth: qca: add WCN7861 support Qianhui Xu 2026-12-05 1:59 ` [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Qianhui Xu 2026-12-05 2:12 ` sashiko-bot 2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu 2026-12-05 2:17 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox