> Based on the TJA data sheet, like TJA1103/TJA1104, if the reverse mode > is set. If XMII_MODE is set to MII, the device operates in revMII mode > (TXCLK and RXCLK are input). If XMII_MODE is set to RMII, the device > operates in revRMII mode (REF_CLK is output). So it's just that the input > and output directions of xx_CLK are reversed. > we don't need to tell the MAC to play the role of the PHY, in our case, we > just need the PHY to provide the reference clock in RMII mode. If this is purely about providing a reference clock, normally 25Mhz, there are a few PHY drivers which support this. Find one and copy it. There is no need to invent something new. Andrew