i.MX6 no GMII support. Supports MII, RMII and RGMII.
Please refer to the datasheet and reference manual.
RGMII shares the reference clock from one of the list i.MX6, phy or external oscillator.
And you question is very confused to me.
you said GMII. and the connection shown is RGMII.
GMII has 8 bit for data. RGMII has 4 bit for data.
GMII seperate the TX and RX reference clock. RGMII share the reference clock.
Could you please make sure which type of phy in your question. and you really understand the signals of a phy.
here is your connection
RGMII connection as below.
i.MX6 Switch
-------- ----------
TXD[3:0]---------RXD[3:0]
TX_CTL----------RX_CTL
GTX_CLK-------RX_CLK
RXD[3:0]---------TXD[3:0]
RX_CTL----------TX_CTL
RX_CLK----------GTX_CLK