From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: linux-can@vger.kernel.org,
"Oliver Hartkopp" <socketcan@hartkopp.net>,
conor+dt@kernel.org, devicetree@vger.kernel.org,
"Vincent Mailhol" <mailhol@kernel.org>,
"Marc Kleine-Budde" <mkl@pengutronix.de>,
"Oleksij Rempel" <o.rempel@pengutronix.de>,
robh@kernel.org
Subject: Re: [PATCH] dt-bindings: net: can: holt,hi3110: Convert to DT schema
Date: Mon, 14 Sep 2026 03:12:56 +0000 [thread overview]
Message-ID: <20260914031256.D4E501F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260914030215.437602-3-quchaosheng000406@163.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The schema omits a reference to the standard SPI peripheral properties schema, which will cause valid standard SPI properties (like `spi-max-frequency`) to be falsely rejected.
- [Low] The maximum supported clock frequency is documented in the schema text but not formally enforced as a JSON Schema constraint.
--
commit 708f7e5cdeffdf3f0881283fe507970525fe6ae2
Author: Quchaosheng <quchaosheng000406@163.com>
dt-bindings: net: can: holt,hi3110: Convert to DT schema
This commit converts the Holt HI-311X stand-alone CAN controller binding from
free-form text to a DT schema. It references the common can-controller schema
and explicitly models the alternative between a provided clock and a clock
frequency fallback.
> diff --git a/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
> new file mode 100644
> index 0000000000000..8c433fcac4a5a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/can/holt,hi311x.yaml
> @@ -0,0 +1,80 @@
[ ... ]
> +description:
> + The Holt HI-3110 is a stand-alone CAN controller with an SPI interface.
> +
> +allOf:
> + - $ref: can-controller.yaml#
[Severity: Low]
Does this schema need a reference to /schemas/spi/spi-peripheral-props.yaml#?
Because unevaluatedProperties is set to false at the bottom of the schema,
and the SPI peripheral properties are not pulled in by can-controller.yaml,
valid SPI properties like spi-max-frequency will be treated as undocumented
and falsely rejected by dtbs_check.
> +
> +properties:
> + compatible:
> + const: holt,hi3110
[ ... ]
> + clock-frequency:
> + description:
> + Frequency of the clock feeding the CAN controller, in Hz. Used when
> + no clocks property is provided. The maximum supported frequency is
> + 40000000.
> + $ref: /schemas/types.yaml#/definitions/uint32
[Severity: Low]
Should this property include a formal maximum: 40000000 constraint?
The description mentions the 40 MHz limit, but without the JSON Schema
constraint, device trees configuring a higher frequency will silently pass
schema validation even though the driver enforces the limit at runtime.
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260914030215.437602-3-quchaosheng000406@163.com?part=1
next prev parent reply other threads:[~2026-09-14 3:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 3:02 [PATCH] dt-bindings: net: can: bosch,cc770: Convert to DT schema Quchaosheng
2026-09-14 3:02 ` [PATCH] net: can: cc770: update the binding file reference in the driver comment Quchaosheng
2026-09-14 3:06 ` sashiko-bot
2026-09-14 3:02 ` [PATCH] dt-bindings: net: can: holt,hi3110: Convert to DT schema Quchaosheng
2026-09-14 3:12 ` sashiko-bot [this message]
2026-09-15 10:52 ` Krzysztof Kozlowski
2026-09-17 9:21 ` Quchaosheng
2026-09-14 3:02 ` [PATCH] dt-bindings: net: can: fsl,mpc5xxx-mscan: " Quchaosheng
2026-09-14 3:12 ` sashiko-bot
2026-09-14 3:09 ` [PATCH] dt-bindings: net: can: bosch,cc770: " sashiko-bot
2026-09-23 2:30 ` Quchaosheng
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=20260914031256.D4E501F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=mkl@pengutronix.de \
--cc=o.rempel@pengutronix.de \
--cc=quchaosheng000406@163.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=socketcan@hartkopp.net \
/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