From: sashiko-bot@kernel.org
To: "Yanli Yang" <yanli.yang@bedmex.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH v2 2/3] dt-bindings: net: bluetooth: Add AIC8800D80
Date: Sun, 20 Sep 2026 10:01:15 +0000 [thread overview]
Message-ID: <20260920100116.6DAD91F000FF@smtp.kernel.org> (raw)
In-Reply-To: <a4304d4068002ca854d2aea5609ac8440935a8b2.1789897503.git.yanli.yang@bedmex.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: net: bluetooth: Incorrect max-speed property constraint
- [Low] dt-bindings: net: bluetooth: Unidiomatic reg property constraint syntax
--
commit 8cfd6d94bf45715d77abf03541df961e63f18ae5
Author: Yanli Yang <yanli.yang@bedmex.com>
dt-bindings: net: bluetooth: Add AIC8800D80
This commit adds a devicetree binding for the AIC8800D80 Bluetooth chip.
It describes the SDIO firmware-loading function and the UART HCI interface
which uses the H4 protocol with hardware flow control.
> diff --git a/Documentation/devicetree/bindings/net/bluetooth/aic,aic8800d80-bt.yaml b/Documentation/devicetree/bindings/net/bluetooth/aic,aic8800d80-bt.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/bluetooth/aic,aic8800d80-bt.yaml
[ ... ]
> +allOf:
> + - $ref: bluetooth-controller.yaml#
> + - if:
> + properties:
> + compatible:
> + const: aic,aic8800d80-bt-sdio
> + then:
> + properties:
> + reg:
> + const: [[1]]
[Severity: Low]
Is this the correct syntax for constraining the reg property?
In devicetree YAML bindings, reg constraints are typically expressed using
standard json-schema properties like minimum/maximum or an items list
definition. Does using a 2D array [[1]] expose the internal parsing
representation of dt-schema, making it unidiomatic? Could this fail
validation in future tooling updates or confuse other developers?
> + max-speed: false
> + aic,firmware-sdio: false
> + required:
> + - reg
> + else:
> + properties:
> + reg: false
> + max-speed:
> + const: 1500000
> + required:
> + - max-speed
[Severity: Medium]
Does this incorrectly mandate a fixed max-speed?
According to standard devicetree principles and the core
serial-peripheral-props.yaml specification, max-speed represents a
board-specific hardware limitation and should only be present if the maximum
is less than the slave device can support. By requiring it and forcing it to
const: 1500000, does this force redundant, fixed configuration into every
device tree using this compatible string?
Would this also prevent developers from specifying a lower speed if their
particular board design has signal quality issues? If the device always
operates at 1.5 Mbaud by default, should the kernel driver handle that based
on the compatible string rather than hardcoding a required static property in
the DT?
> + - aic,firmware-sdio
> + allOf:
> + - $ref: /schemas/serial/serial-peripheral-props.yaml#
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1789897503.git.yanli.yang@bedmex.com?part=2
next prev parent reply other threads:[~2026-09-20 10:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 8:12 [RFC PATCH bluetooth-next 0/3] Bluetooth: Add AIC8800D80 SDIO firmware loader and UART HCI Yanli Yang
2026-09-16 8:12 ` [RFC PATCH bluetooth-next 1/3] dt-bindings: vendor-prefixes: Add AIC Semiconductor Yanli Yang
2026-09-16 8:12 ` [RFC PATCH bluetooth-next 2/3] dt-bindings: net: bluetooth: Add AIC8800D80 Yanli Yang
2026-09-16 8:12 ` [RFC PATCH bluetooth-next 3/3] Bluetooth: btaic: Add AIC8800D80 SDIO loader and UART transport Yanli Yang
2026-09-17 2:33 ` sashiko-bot
2026-09-20 9:50 ` [RFC PATCH v2 0/3] Bluetooth: Add AIC8800D80 SDIO firmware loader and UART HCI Yanli Yang
2026-09-20 9:50 ` [RFC PATCH v2 1/3] dt-bindings: vendor-prefixes: Add AIC Semiconductor Yanli Yang
2026-09-20 9:50 ` [RFC PATCH v2 2/3] dt-bindings: net: bluetooth: Add AIC8800D80 Yanli Yang
2026-09-20 10:01 ` sashiko-bot [this message]
2026-09-20 9:50 ` [RFC PATCH v2 3/3] Bluetooth: btaic: Add AIC8800D80 SDIO loader and UART transport Yanli Yang
2026-09-21 7:25 ` [RFC PATCH v3 0/3] Bluetooth: Add AIC8800D80 support Yanli Yang
2026-09-21 7:25 ` [RFC PATCH v3 1/3] Bluetooth: dt-bindings: Add AIC vendor prefix Yanli Yang
2026-09-21 7:25 ` [RFC PATCH v3 2/3] Bluetooth: dt-bindings: Add AIC8800D80 Yanli Yang
2026-09-21 7:34 ` sashiko-bot
2026-09-21 7:25 ` [RFC PATCH v3 3/3] Bluetooth: btaic: Add AIC8800D80 support Yanli Yang
2026-09-21 7:39 ` 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=20260920100116.6DAD91F000FF@smtp.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=yanli.yang@bedmex.com \
/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