From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796436775; b=2vR2KuOEdnYNOPhPE2OtJ3WPoSgaEezg3gHHzBO7b3WEG6Iv2pvHtHdR2/kp4TjJCHVY CzN5bCPyJ0gl60hBHSEbd+/H35CzGWfJ15jrnuMKOwFX3NjHpFsgM6sZoXoG6U3bMt6BA +5nf3vCrr8JoEdFPw75iK7o/pko/f29wSrjJTYB/LSnAGBrhzToGQyi2JsrTrkOnZugLw aDJDBqjJQFhRj98K3kCDHeKr7CaxAc7/2k+NqvdMzon59hXAoKA/rabXbX0Xx6EcVRzQw yB1wuNd34pA5yVNUFKq3TsLH/EiVqjkvHmEwAB58dbvVuiiGBOZNmBZ8VNVCWCKMqDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796436775; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=wOuinzQqirWQj01eO2tCZsVA6+N1Nl28mda0bFaLWo0=; b=wpKJstm0mBYDn/j9X630soF4wUOLVExVxGZaliy3BDQbklyUJnsNKy/upRXWn7+90Zxk CE5caf0aGY+TWM/+JVSJ3K9X6jY5q8fs3oQevtJSATnUNEc3hINj81b+jWk0YOpPJFjg+ ZPydnf3ERPGKcECAbfvR4Aw5tzJPHSfTIc6FyDSZjAiCT+Jh30Y68cJcHCgFUxBtN9o62 gQrJL7mqQ+YNXkUThrUQ/wCYbDSQhNh1Bj3F43EQCUlRjFsouzgSabfSIsD6LMpx5XHRU rgRmZafehOBxRLQwA7XcssPbiEK00IpkHdE5E5nb01etSbk39SLlmMjMAnD56WkT0yg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HN4Eo3XM; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC1F3606A322 for ; Sat, 5 Dec 2026 02:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HN4Eo3XM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DCCC1F0092B; Sat, 5 Dec 2026 02:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796436774; bh=wOuinzQqirWQj01eO2tCZsVA6+N1Nl28mda0bFaLWo0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=HN4Eo3XM4519tyCAtxEBMr475bkDOKrKCnYMYMBs2+Ks6g/cP4qqNHDcAIsIopx9w iGRCIf8j4fzDrMUSNfwMShbP/ks/05VmN8ODvH0YGU54nLK3ka3jmlnFlwzET2bZPi 7XG3RktiRzv1IK5hnFvcZB9dUQj9QJaEi/CgH9yusXkbW7WURf8tuafpOGbghO4vnv chwwkRSpLp68RLX9Hm9pV9FQiWtGY7db/HJ52QGDT+YBz7RJycGEqXmrVSqY3XoeWn sA0zdymG5OFYdTUb2M5p3U5IwIOKUnZVP+t7QsClqZKUfkoWfH9dvpz55yb7r4xoZA qaxsH+VugrtXA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Reply-To: sashiko-reviews@lists.linux.dev To: "Qianhui Xu" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205015945.1695359-2-xiaqinghuan@mail.ustc.edu.cn> References: <20261205015945.1695359-1-xiaqinghuan@mail.ustc.edu.cn> <20261205015945.1695359-2-xiaqinghuan@mail.ustc.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 02:12:54 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 conditiona= ls. A standalone non-fallback compatible for separate firmware images does not require a separate schema file, as sibling bindings like qcom,wcn3950-bt.ya= ml 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 =3D "qcom,wcn7861-bt"; > + > + firmware-name =3D "brhbtnv20.bin", "brhbtfw20.tlv"; > + max-speed =3D <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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205015945.1695= 359-1-xiaqinghuan@mail.ustc.edu.cn?part=3D1