How to setting MDIO/MDC in i.MX

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

How to setting MDIO/MDC in i.MX

2,951 次查看
waynechung2
Contributor III

Hi,
I try setting the MDIO/MDC in iMX and sending data.
But I can't measure any signal by logic analyzer.
Thanks.

Best Regards,

Wayne.

0 项奖励
回复
8 回复数

2,941 次查看
joanxie
NXP TechSupport
NXP TechSupport

which imx processor do you use?

 

0 项奖励
回复

2,933 次查看
waynechung2
Contributor III

Hi  NXP,

My imx processor is "iMX8M Plus", I want to setting in M7.

When I finish setting, I can't probe any signal from MDC/MDIO.

My setting as follows,

1. gpio setting 

- {pin_num: AH28, peripheral: ENET_QOS, signal: enet_qos_mdc, pin_signal: ENET_MDC, PUE: Weak_Pull_Down, ODE:       Open_Drain_Disable, FSEL: Slow, DSE: X6, SION: DISABLED}
- {pin_num: AH29, peripheral: ENET_QOS, signal: enet_qos_mdio, pin_signal: ENET_MDIO, PE: Enabled, HYS: CMOS, PUE: Weak_Pull_Down, ODE: Open_Drain_Disable, FSEL: Slow,
DSE: X6, SION: DISABLED}

2. other setting

#define EXAMPLE_ENET ENET1

#define EXAMPLE_CLOCK_FREQ \
(CLOCK_GetPllFreq(kCLOCK_SystemPll1Ctrl) / (CLOCK_GetRootPreDivider(kCLOCK_RootEnetQos)) / \
(CLOCK_GetRootPostDivider(kCLOCK_RootEnetQos)))


- BOARD_InitModuleClock
CLOCK_SetRootMux(kCLOCK_RootEnetQos, kCLOCK_EnetQosRootmuxSysPll1Div5);
CLOCK_SetRootDivider(kCLOCK_RootEnetQos, 1U, 10U);

Thanks.

Best Regards,

Wayne.

0 项奖励
回复

2,920 次查看
joanxie
NXP TechSupport
NXP TechSupport

could you get "MAC_MDIO_ADDRESS"  correctly?

 

0 项奖励
回复

2,908 次查看
waynechung2
Contributor III

Hi ,

How to get the "MAC_MDIO_ADDRESS" ?

Thanks.

Best Regards,

Wayne.

0 项奖励
回复

2,867 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the chapter 11.7.6.1.42 MDIO Address (MAC_MDIO_ADDRESS) of reference, you can read this register in the memory

0 项奖励
回复

2,902 次查看
joanxie
NXP TechSupport
NXP TechSupport

this is a register, you can check detailed information in the reference manual

0 项奖励
回复

2,891 次查看
waynechung2
Contributor III

Hi,

I found this register in "ENET_QOS-> MAC_MDIO_ADDRESS".

Is it correct ?

Thanks.

 

Best Regards,

Wayne.

0 项奖励
回复

2,884 次查看
waynechung2
Contributor III

Hi,

I reference the MIMXRT1176xxxxx enet driver example code and port to iMX8M Plus M7.

I can't get the PHY CHECK ID and even I measure the MDIO line, it didn't have any signal.

I think maybe my MDIO initial is not correct.

How could we check about it ?

Thanks.

Best Regards,

Wayne.

0 项奖励
回复