HomeFreeBSD

cgem: support SGMII PHY connection mode

Description

cgem: support SGMII PHY connection mode

As the PolarFire SoC needs SGMII to connect the PHY, check the
'phy-mode' property of device tree node for ethernet and act on it
appropriately.

Add the compatible strings for the PolarFire SoC device tree.
'microchip,mpfs-mss-gem" is not officially documented but has been
observed in the available firmware for this platform, so it is included
for now.

Also, fix a typo in if_cgem_hw.h.

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Conclusive Engineering
Differential Revision: https://reviews.freebsd.org/D34764

(cherry picked from commit 34f4c17a2b3df50e9badd030edba187d6acf3b87)

Details

Provenance
bsd_dino.skAuthored on Apr 7 2022, 1:04 PM
mhorneCommitted on May 16 2022, 1:34 PM
Reviewer
mhorne
Differential Revision
D34764: Enhance if_cgem (add SGMII connection type, rewrite errata logic, fix typo)
Parents
rGa1785a30090c: cgem: rework hardware quirk detection
Branches
Unknown
Tags
Unknown