From: sashiko-bot@kernel.org
To: muhammad.nazim.amirul.nazle.asmade@altera.com
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/4] arm64: dts: socfpga: agilex5: Add SoCDK TSN Config2 board
Date: Wed, 15 Jul 2026 02:13:26 +0000 [thread overview]
Message-ID: <20260715021327.262A51F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260714021303.30042-3-muhammad.nazim.amirul.nazle.asmade@altera.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Double RGMII delay insertion on gmac2 due to incorrect phy-mode.
- [High] Conceptual misuse of 'rgmii-id' for MAC-side delays on gmac1 and missing driver implementation causing double-delays.
--
--- Patch [2]: [PATCH v3 2/4] arm64: dts: socfpga: agilex5: Add SoCDK TSN Config2 board ---
commit 1726dd01c79b5342df101114181fa6297c1dabde
Author: Nazim Amirul <muhammad.nazim.amirul.nazle.asmade@altera.com>
arm64: dts: socfpga: agilex5: Add SoCDK TSN Config2 board
This commit adds the device tree for the Intel SoCFPGA Agilex5 SoCDK TSN
Config2 board variant. This configuration enables gmac1 as a TSN port
alongside the standard gmac2 Ethernet port.
> diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_tsn_cfg2.dts b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_tsn_cfg2.dts
> new file mode 100644
> --- /dev/null
> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_tsn_cfg2.dts
[ ... ]
> +&gmac1 {
> + status = "okay";
> + compatible = "altr,socfpga-stmmac-agilex5-tsn",
> + "altr,socfpga-stmmac-agilex5",
> + "snps,dwxgmac-2.10";
> + phy-mode = "rgmii-id";
[Severity: High]
The commit message states that phy-mode is set to "rgmii-id" to reflect
MAC-side delays, relying on the "altr,socfpga-stmmac-agilex5-tsn" compatible
string for the driver to detect the converter and strip the delay bits.
Since the driver implementation for this board-specific compatible string does
not appear to be included in this patch series, won't the driver fall back to
"altr,socfpga-stmmac-agilex5" and fail to strip the delay bits?
Additionally, if the MAC side (FPGA soft IP) already provides the delays,
should the phy-mode simply be set to "rgmii" to intrinsically prevent the PHY
from adding its own delays, instead of relying on a driver workaround?
> + phy-handle = <&emac1_phy0>;
> + max-frame-size = <9000>;
[ ... ]
> +&gmac2 {
> + status = "okay";
> + phy-mode = "rgmii-id";
[Severity: High]
The commit message notes this board retains the standard gmac2 Ethernet port.
In the baseline Agilex5 SoCDK, the HPS MAC intrinsically provides TX/RX clock
delays for gmac2, so phy-mode is typically set to "rgmii".
Does setting phy-mode to "rgmii-id" here cause the PHY to inject a second,
erroneous set of delays on top of the native MAC hardware delays, potentially
breaking RGMII link timing for the standard Ethernet port?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260714021303.30042-1-muhammad.nazim.amirul.nazle.asmade@altera.com?part=2
next prev parent reply other threads:[~2026-07-15 2:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 2:12 [PATCH v3 0/4] Add Agilex5 SoCDK TSN Config2 board support muhammad.nazim.amirul.nazle.asmade
2026-07-14 2:13 ` [PATCH v3 1/4] dt-bindings: arm: altera: Add Agilex5 SoCDK TSN Config2 board muhammad.nazim.amirul.nazle.asmade
2026-07-15 4:40 ` Krzysztof Kozlowski
2026-07-14 2:13 ` [PATCH v3 2/4] arm64: dts: socfpga: agilex5: Add " muhammad.nazim.amirul.nazle.asmade
2026-07-15 2:13 ` sashiko-bot [this message]
2026-07-14 2:13 ` [PATCH v3 3/4] dt-bindings: net: altr,socfpga-stmmac: Add altr,socfpga-stmmac-agilex5-tsn compatible muhammad.nazim.amirul.nazle.asmade
2026-07-14 2:13 ` [PATCH net-next v3 4/4] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter muhammad.nazim.amirul.nazle.asmade
2026-07-15 1:22 ` Andrew Lunn
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=20260715021327.262A51F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=muhammad.nazim.amirul.nazle.asmade@altera.com \
--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