From: sashiko-bot@kernel.org
To: "Arthur Crépin Leblond" <arthur@marmottus.net>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 2/2] dt-bindings: net: convert wiznet,w5x00 to YAML
Date: Wed, 05 Aug 2026 17:58:42 +0000 [thread overview]
Message-ID: <20260805175843.590851F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260804-wiznet-link-gpio-v2-2-3b1d0c870f35@marmottus.net>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The device tree example contains multiple syntax errors and unresolved references that will cause `make dt_binding_check` to fail fatally.
- [Low] The `pinctrl-names` property incorrectly uses `enum` alongside `minItems: 1` for a string array constraint.
--
--- Patch [2]: [PATCH v2 2/2] dt-bindings: net: convert wiznet,w5x00 to YAML ---
commit 03b1fc0266172468d4c1e28d10eec5fa26175fe7
Author: Arthur Crépin Leblond <arthur@marmottus.net>
dt-bindings: net: convert wiznet,w5x00 to YAML
Convert the Wiznet w5x00 SPI Ethernet controller binding from
text to DT schema format.
> diff --git a/Documentation/devicetree/bindings/net/wiznet,w5x00.yaml b/Documentation/devicetree/bindings/net/wiznet,w5x00.yaml
> new file mode 100644
> index 0000000000000..8f45a5d773fe3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/wiznet,w5x00.yaml
> @@ -0,0 +1,103 @@
[ ... ]
> + pinctrl-names:
> + description:
> + List of assigned state names, see pinctrl binding documentation.
> + enum:
> + - default
> + minItems: 1
[Severity: Low]
Does this incorrectly restrict pinctrl-names to a scalar string instead of a
string-array?
Since pinctrl-names is inherently defined as a string-array, using
enum: [ default ] restricts the property to a scalar string, which will cause
schema validation to fail for valid device trees. The standard approach
requires:
items:
- const: default
[ ... ]
> +examples:
> + - |
> + /* Example (for Raspberry Pi with pin control stuff for GPIO irq) */
> +
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ethernet@0: w5500@0 {
[Severity: Low]
Is the label ethernet@0 valid here?
DTS labels cannot contain the '@' character. This will cause a strict
compilation failure when this YAML example is parsed by dtc during
make dt_binding_check.
> + compatible = "wiznet,w5500";
> + reg = <0>;
> + pinctrl-names = "default";
> + pinctrl-0 = <ð1_pins>;
> + interrupt-parent = <&gpio>;
[Severity: Low]
Could this unresolved &gpio phandle reference cause a compiler error during
dt_binding_check?
Since &gpio is not defined in the scope of this standalone example, dtc will
fail to resolve it.
> + interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
> + spi-max-frequency = <30000000>;
> + link-gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
> + local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
> + };
> + };
> +
> + &gpio {
> + eth1_pins: eth1_pins {
> + brcm,pins = <25 4>;
> + brcm,function = <0 0>; /* in */
> + brcm,pull = <0 0>; /* none */
> + };
[Severity: Low]
Are we missing a final closing brace for the &gpio node here?
This syntax error seems to have been introduced during the conversion from
the text binding, and it will prevent make dt_binding_check from compiling
the example.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260804-wiznet-link-gpio-v2-0-3b1d0c870f35@marmottus.net?part=2
prev parent reply other threads:[~2026-08-05 17:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 17:40 [PATCH v2 0/2] w5100: restore GPIO-based link detection Arthur Crépin Leblond
2026-08-04 17:40 ` [PATCH v2 1/2] " Arthur Crépin Leblond
2026-08-04 18:44 ` Arnd Bergmann
2026-08-04 20:58 ` Jakub Kicinski
2026-08-05 7:56 ` Arnd Bergmann
2026-08-05 17:58 ` sashiko-bot
2026-08-04 17:40 ` [PATCH v2 2/2] dt-bindings: net: convert wiznet,w5x00 to YAML Arthur Crépin Leblond
2026-08-04 18:49 ` Rob Herring (Arm)
2026-08-05 11:08 ` Krzysztof Kozlowski
2026-08-05 17:23 ` Arthur Crépin Leblond
2026-08-05 17:58 ` sashiko-bot [this message]
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=20260805175843.590851F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=arthur@marmottus.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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