From: sashiko-bot@kernel.org
To: Quchaosheng <quchaosheng000406@163.com>
Cc: "Marc Kleine-Budde" <mkl@pengutronix.de>,
linux-can@vger.kernel.org, "Vincent Mailhol" <mailhol@kernel.org>,
conor+dt@kernel.org, devicetree@vger.kernel.org,
"Oleksij Rempel" <o.rempel@pengutronix.de>,
robh@kernel.org, "Oliver Hartkopp" <socketcan@hartkopp.net>
Subject: Re: [PATCH v2] dt-bindings: net: can: convert ifi_canfd to DT schema
Date: Mon, 14 Sep 2026 01:45:24 +0000 [thread overview]
Message-ID: <20260914014524.C31E51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260914013636.394263-1-quchaosheng000406@163.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] DT Schema Error: `additionalProperties: false` incorrectly restricts inherited properties
--
commit 762b0b1dc7188a87b810716f4344f47313aba8cb
Author: Quchaosheng <quchaosheng000406@163.com>
dt-bindings: net: can: convert ifi_canfd to DT schema
This patch converts the IFI CAN-FD controller binding from a free-form
text document to a YAML DT schema. It also references the common
can-controller.yaml schema to inherit standard CAN properties.
> diff --git a/Documentation/devicetree/bindings/net/can/ifi,canfd.yaml b/Documentation/devicetree/bindings/net/can/ifi,canfd.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/can/ifi,canfd.yaml
[ ... ]
> +allOf:
> + - $ref: can-controller.yaml#
> +
> +properties:
> + compatible:
> + const: ifi,canfd-1.0
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
[Severity: Medium]
Will this strict restriction prevent inherited properties from being used?
Because this schema inherits from can-controller.yaml# using an allOf
block, using additionalProperties: false here only evaluates the local
properties block. If a standard CAN property like bitrate or
termination-gpios is added to a device tree node, dtbs_check will reject
it as an unallowed additional property.
Should this use unevaluatedProperties: false instead to properly allow the
properties defined in the referenced schema?
> +
> +examples:
> + - |
> + canfd0: can@ff220000 {
> + compatible = "ifi,canfd-1.0";
> + reg = <0xff220000 0x1000>;
> + interrupts = <0 43 0>;
> + };
> +...
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260914013636.394263-1-quchaosheng000406@163.com?part=1
next prev parent reply other threads:[~2026-09-14 1:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 1:36 [PATCH v2] dt-bindings: net: can: convert ifi_canfd to DT schema Quchaosheng
2026-09-14 1:45 ` sashiko-bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-14 1:37 Quchaosheng
2026-09-14 1:45 ` 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=20260914014524.C31E51F000FF@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