The internal switch is MT7530-based and the same code for the AN7581 should work. The switch also provide the MDIO-bus.
Source code
On the mdio bus 4 ge-phys are connected on mdio address 9,10,11,12. A driver implementing the calibration logic is needed.
SDK driver code
Controlling the phy leds can be done the same way as in this code:
MT7988 code