[PATCH 3/3] net: stmmac: dwmac-socfpga: Add mac-mode DT property support

Andrew Lunn andrew at lunn.ch
Fri Jul 3 06:15:32 PDT 2026


> > I don't actually see a need for mac-mode. From what you are saying,
> > there is no choice. The MAC is hard wired to the converter block. So
> > you can just look at the compatible. You are going to need to use the
> > compatible anyway, to mask the phy-mode to handle the "MAC" doing the
> > RGMII delays.
> > 
> >        Andrew
> > 
> Hi Maxime, Andrew
> 
> Thanks for the reviews!
> 
> Hi Andrew,
> 
> The challenge with using compatible is that the TSN Config2 board has 
> two ports — only gmac1 uses the GMII-to-RGMII converter, while gmac2 
> connects directly to its PHY.

The two MACs are not compatible then, and each should have its own
compatible string. This is all in the SoC .dtsi file, so not really a
problem.

       Andrew



More information about the linux-arm-kernel mailing list