AM623: RGMII to RMII configuration changes

Part Number: AM623

Tool/software:

Hi,

My customer wants to know which configurations need to be changed from RGMII to RMII in CPSW.
RGMII is working in their current software (non-Linux OS).
They checked TRM and found below two points need to be changed, but are there any other parts?
- PINMUX
- CTRLMMR_ENET1_CTRL and CTRLMMR_ENET2_CTRL[2-0] PORT_MODE_SEL bit fields

Below PHYs are used for each configuration.
RGMII : DP83867IRRGZR 1.8V
RMII: DP83822IRHBR

Thanks and regards,
Koichiro Tashiro

  • Hello Koichiro-san, 

    RGMII is working in their current software (non-Linux OS).

    What OS is your customer using? Or is it just baremetal?

    -Daolin

  • Hi Daolin,

    Their OS is VxWorks, but I know VxWorks related topic is out of scope.
    So register level information would be fine.

    Thanks and regards,
    Koichiro Tashiro

  • Hello Koichiro-san, 

    Cpsw peripheral registers and the Linux are the major changes required for rmii to work. We are checking if any other changes are also needed to enable the same. Please expect a reply in one day so that we can validate internally.

    Thanks and regards,

    Teja.

  • Hello Koichiro-san, 

    As you mentioned earlier, ENET1_CTRL_PORT_MODE_SEL and ENET2_CTRL_PORT_MODE_SEL has to be updated according to the TRM document (RMII -> 0x1h, RGMII -> 0x2h). Other than this, the following differences would be needed in configuration from RGMII to RMII:

    • in RGMII mode, "pn_gig­_force" field in CPSW_PN_MAC_CONTROL register has to be set. This has to be reset to 0.
    • "pn_gig" field in the same register is set in order to enable gigabit comunication. That has to be reset to 0. 
    • "pn_ifctl_a" field in the same register is used to control the speed of RMII between 10M and 100M modes.

    Pinmux changes are also needed according to the board layout. These should enable the user to change from RGMII to RMII mode. 

    If you have any further queries, please let us know.

    Thanks and regards,
    Teja.