I have some Microchip (SMSC) LAN9303 Ethernet switches in my system. The LAN9303 is a 3-port switch which has 2 connections for twisted pair cables and one MII connection. The switch chips are some distance apart and each is connected to an FPGA which in turn is connected to a very high data rate link.
The idea was to link the switches via their MII ports so that equipment plugged into switch 1 could talk to switch 2. To do this one LAN9303 was set up as an MII Phy and the other as an MII MAC. Thus one switch thought it was a mac talking to a phy, and the other switch thought it was a PHY talking to a MAC. This worked ok.
Now, to save pins, the LAN9303s have been connected using RMII. As the LAN9303 can only operate as a RMII PHY (not a MAC) I have 2 RMII PHYs connected together. They're just connected with wires at the moment (about 20mm long), as I want to get them working like this on the bench before connecting into the larger system.
The LAN9303 allows the RMII clock to be an input or an output, so I have one switch providing the clock as an output and the other has the clock as an input. This seems to be working OK.
I've tried to read up on this but I've had trouble finding out much what the data coming in to and out of an RMII phy should look like and whether the data it expects to see from a MAC looks like the data is sends out to an RMII MAC?