This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/66AK2G02: Is RMII supported on Linux for the 66AK2G02

Part Number: 66AK2G02

Tool/software: Linux

Hi all,

Is RMII supported under Linux for the 66AK2G02?

I see RGMII is, but I want to use RMII on a custom product.

Thanks

Ville

  • Hi Ville,

    This should be supported, see Documentation/devicetree/bindings/net/ethernet.txt:
    - phy-mode: string, operation mode of the PHY interface. This is now a de-facto
    standard property; supported values are:
    * "mii"
    * "gmii"
    * "sgmii"
    * "qsgmii"
    * "tbi"
    * "rev-mii"
    * "rmii"
    * "rgmii" (RX and TX delays are added by the MAC when required)
    * "rgmii-id" (RGMII with internal RX and TX delays provided by the PHY, the
    MAC should not add the RX or TX delays in this case)
    * "rgmii-rxid" (RGMII with internal RX delay provided by the PHY, the MAC
    should not add an RX delay in this case)
    * "rgmii-txid" (RGMII with internal TX delay provided by the PHY, the MAC
    should not add an TX delay in this case)
    * "rtbi"
    * "smii"
    * "xgmii"
    * "trgmii"

    You should be able to get the rmii mode working.

    Best Regards,
    Yordan
  • Hi Yordan,

    This doesn't appear to work for me. I've figured out that to enable the RMII clock you need to write 4 to the ETH CLKCTRL register. Also thsee is an ethernet CFG register that needs to be set to 1 (RMII) instead of RGMII (2). The change that you suggested does neither of these... can you double check your suggestion does actually allow the netcp/ethss/etc to start using RMII mode?

    Thanks

    Ville

  • Hi VIlle,

    Let me check this.

    Best Regards,
    Yordan