From: sashiko-bot@kernel.org
To: "Qianhui Xu" <xiaqinghuan@mail.ustc.edu.cn>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861
Date: Sat, 05 Dec 2026 02:12:54 +0000 [thread overview]
Message-ID: <sashiko-outbox-250931@kernel.org> (raw)
In-Reply-To: <20261205015945.1695359-2-xiaqinghuan@mail.ustc.edu.cn>
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
next prev parent reply other threads:[~2026-12-05 2:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu
2026-12-05 2:17 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-250931@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=xiaqinghuan@mail.ustc.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox