From: sashiko-bot@kernel.org
To: "Jisheng Zhang" <jszhang@kernel.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v2 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC
Date: Tue, 01 Dec 2026 17:17:17 +0000 [thread overview]
Message-ID: <sashiko-outbox-243801@kernel.org> (raw)
In-Reply-To: <20261130165639.12839-2-jszhang@kernel.org>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: net: missing clock and reset headers in
syna,sl2610-dwmac example
- [Low] dt-bindings: net: non-canonical property order in
syna,sl2610-dwmac.yaml
--
commit 858c2e1d1708ecbd6e675afdc52b3cefc59b8633
Author: Jisheng Zhang <jszhang@kernel.org>
dt-bindings: net: Add Synaptics SL2610 DWMAC
This commit adds the Device Tree binding schema for the Synaptics SL2610
integration of the DesignWare Ethernet MAC (DWMAC 5.20).
> diff --git a/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml
> new file mode 100644
> index 0000000000000..eaa8b86dd358e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml
> @@ -0,0 +1,128 @@
[ ... ]
> +properties:
> + compatible:
> + items:
> + - const: syna,sl2610-dwmac
> + - const: snps,dwmac-5.20
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + interrupt-names:
> + const: macirq
> +
> + clocks:
> + items:
> + - description: MAC clock
> + - description: Peripheral register interface clock
> + - description: PTP reference clock
> +
> + clock-names:
> + items:
> + - const: stmmaceth
> + - const: pclk
> + - const: ptp_ref
> +
> + resets:
> + maxItems: 1
> +
> + reset-names:
> + const: stmmaceth
> +
> + power-domains:
> + maxItems: 1
> +
> + syna,syscon:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + items:
> + - items:
> + - description: Phandle to the SL2610 system controller.
> + - description: Offset of the Ethernet interface control register.
> + enum: [0xa18, 0xa3c]
> + description:
> + Phandle and register offset used to configure the Ethernet PHY
> + interface mode.
> +
> + phy-mode:
> + enum:
> + - rmii
> + - rgmii
> + - rgmii-id
> + - rgmii-rxid
> + - rgmii-txid
> +
> +required:
> + - compatible
> + - clocks
> + - clock-names
> + - syna,syscon
> + - phy-mode
[Severity: Low]
This isn't a bug, but in properties, required and the example node below,
interrupts and interrupt-names are placed before clocks and clock-names,
and the vendor-specific syna,syscon property is placed before standard
properties (phy-mode and phy-handle). Per DT schema conventions, clocks
should precede interrupts, and standard properties should precede
vendor-specific ones.
> +
> +dependencies:
> + resets: [reset-names]
> + reset-names: [resets]
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/syna,sl2610.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/reset/syna,sl2610-reset.h>
> +
> + ethernet@f7a06000 {
> + compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20";
> + reg = <0xf7a06000 0x2000>;
> + interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "macirq";
> + clocks = <&clk CLK_GETHRGMII1>, <&clk CLK_GETHRGMII1SYS>,
> + <&clk CLK_GE1_PTP_REF>;
> + clock-names = "stmmaceth", "pclk", "ptp_ref";
> + resets = <&rst RST_SOC_GETH1>;
[Severity: Medium]
Does this example break make dt_binding_check? Neither
dt-bindings/clock/syna,sl2610.h nor dt-bindings/reset/syna,sl2610-reset.h
exists in include/dt-bindings/, so preprocessing the extracted example DTS
fails due to missing headers and undefined clock and reset macros.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130165639.12839-1-jszhang@kernel.org?part=1
next prev parent reply other threads:[~2026-12-01 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 16:56 [PATCH net-next v2 0/2] net: stmmac: add SL2610 ethernet support Jisheng Zhang
2026-11-30 16:56 ` [PATCH net-next v2 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC Jisheng Zhang
2026-11-30 20:11 ` Rob Herring (Arm)
2026-12-01 0:17 ` Jisheng Zhang
2026-12-01 17:17 ` sashiko-bot [this message]
2026-11-30 16:56 ` [PATCH net-next v2 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC Jisheng Zhang
2026-11-30 19:52 ` Andrew Lunn
2026-12-01 17:17 ` 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=sashiko-outbox-243801@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@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