Hello,
I am using a custom board based on the LS1012A processor. This board uses the SerDes protocol 0x3508, which means that my MAC1 is SGMII (1G) and the MAC2 is RGMII. Both SerDes MACs are directly connected to a KSZ9477 Switch (MAC-MAC). I am doing the support in the U-Boot to allow the firmware update via TFTP. But both interfaces can not communicate with a simple ping.
I configured the custom board based on the LS1012A-FRWY board. I have compared it with the LS1012ARDB because it uses the same schema for the MAC ports. However, I did not see any significant change that could help me solve the problem. I will divide this question for each Ethernet mode.
SGMII:
The pfe_eth driver could connect to the PFE_MDIO and configure it with a fixed link of 1Gbps/Full Duplex. However, when I read the status register of the MDIO, it shows that the link is down (see image below). Considering that the LS1012A uses PFE firmware, is there something I need to do to allow a MAC-MAC link? Or could the problem be in the hardware?

RGMII:
The RGMII (MAC2) does not even configure the MDIO (see the image below). Does the internal MDIO work with the RGMII? How can I configure the RGMII to work directly with the switch?

I am using the LSDK-20.04-update_290520 for the U-Boot. The RCW configures the SerDes to use the internal 125MHz clock. And we are using the TFA configuration settings.
Thank you in advance,
Igor