How to setting MDIO/MDC in i.MX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to setting MDIO/MDC in i.MX

2,958 Views
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 Kudos
Reply
8 Replies

2,948 Views
joanxie
NXP TechSupport
NXP TechSupport

which imx processor do you use?

 

0 Kudos
Reply

2,940 Views
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 Kudos
Reply

2,927 Views
joanxie
NXP TechSupport
NXP TechSupport

could you get "MAC_MDIO_ADDRESS"  correctly?

 

0 Kudos
Reply

2,915 Views
waynechung2
Contributor III

Hi ,

How to get the "MAC_MDIO_ADDRESS" ?

Thanks.

Best Regards,

Wayne.

0 Kudos
Reply

2,874 Views
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 Kudos
Reply

2,909 Views
joanxie
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

2,898 Views
waynechung2
Contributor III

Hi,

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

Is it correct ?

Thanks.

 

Best Regards,

Wayne.

0 Kudos
Reply

2,891 Views
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 Kudos
Reply