[PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter

Andrew Lunn andrew at lunn.ch
Thu Dec 3 05:02:16 PST 2026


On Thu, Dec 03, 2026 at 01:54:14PM +0100, Andrew Lunn wrote:
> > +static void socfpga_agilex5_tsn_gmac_setup_plat_dat(struct socfpga_dwmac *dwmac)
> > +{
> > +	struct plat_stmmacenet_data *plat_dat = dwmac->plat_dat;
> > +
> > +	socfpga_agilex5_setup_plat_dat(dwmac);
> > +
> > +	/* The FPGA GMII-to-RGMII converter is only in the RGMII path. It
> > +	 * presents GMII to the MAC and adds both RGMII delays, so only
> > +	 * phy-mode "rgmii-id" describes the board correctly.
> > +	 */
> > +	if (!phy_interface_mode_is_rgmii(plat_dat->phy_interface))
> > +		return;
> 
> Maybe add another check here. If it is one of the four rgmii but not
> RGMII_ID, you know it will not work, so can return EINVAL.

Ah, probably not needed. It looks like stmmac_pltfr_probe() will
probably do this for you.

	 Andrew



More information about the linux-arm-kernel mailing list