GMAC0_MII_RMII_RGMII_MDC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GMAC0_MII_RMII_RGMII_MDC

274 次查看
myehiash
Contributor I

On S32K388 How to configure the MDC?

and for the following function:

Std_ReturnType Eth_43_GMAC_ReadMmd ( \
                              uint8 CtrlIdx,\
                              uint8 TrcvIdx, \
                              uint8 Mmd, \
                              uint16 RegAddress,\
                              uint16 *RegValPtr
                           )
We need support on how to use it and more detailed description for the parameters. 

0 项奖励
回复
1 回复

215 次查看
Nhi_Nguyen
NXP Employee
NXP Employee

Hi @myehiash ,

For current status, we just can connect to PHY through pin strapping for S32K388 board

Nhi_Nguyen_0-1709791829169.pngNhi_Nguyen_1-1709791870762.pngNhi_Nguyen_2-1709791897215.png

After that, PHY is in RGMII, 1Gbps.

To configure MDC, you just need to configure pin MDC as output. Clock provided from GMAC through this pin.

For the function Eth_43_GMAC_ReadMmd to support PHY transceiver support clause 45. You can read this information in PHY datasheet, like:

Nhi_Nguyen_3-1709792170093.pngNhi_Nguyen_4-1709792192559.png

Description of parameters:

- CtrlIdx: ETH controller index

- TrcvIdx: PHY transceiver's address.

- Mmd:  1 (MMD1),  3 (MMD3), 30 (MMD30)

RegAddress: address of register that you want to write or read. You can read this value in datasheet.

- *RegValPtr : store value read from PHY.

 

Best regards,

Nhi

0 项奖励
回复