K606
Contributor
6 months agoEMAC drivers Agilex5
I would like to use these Altera drivers (Driver 0, Driver 1) for the EMACs on the Agilex5.
They seem to be compatible as followed:
compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwxgmac-2.10", "snps,dwxgmac";
My question is: is it possible to use these drivers without connecting to a PHY? Or do they need a PHY to be instantiated and tested?
And if so - would the followin .dts change be sufficient?
&gmac0 { status = "okay"; }; &gmac1 { status = "okay"; };
Thanks,
K
I am not an expert on the GMII interface, but your connections look correct to me. Clocks and resets need to be connected appropriately, and the tx related signals of one ethernet need to be connected to corresponding rx related signals on the other ethernet.
You'll know you have the connections correct when link gets established on both ends as observed with ifconfig or ip commands.