Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENET2 Module not being clocked on MIMXRT1062_FMURT6 #59010

Closed
sumitbatra-nxp opened this issue Jun 7, 2023 · 0 comments · Fixed by #58047
Closed

ENET2 Module not being clocked on MIMXRT1062_FMURT6 #59010

sumitbatra-nxp opened this issue Jun 7, 2023 · 0 comments · Fixed by #58047
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@sumitbatra-nxp
Copy link
Contributor

Issue Description
50MHz Ref clock was not getting generated for ENET2 module.
Direction of the clock was from PHY to MAC

To Reproduce
Steps to reproduce the behavior:

  1. west build -p always -b mimxrt1062_fmurt6 samples/net/eth_native_posix/
  2. west flash
  3. Carrier is always down, LINK LED is not up when connected to compatible link partner

Expected behavior
Carrier Up, IP and MAC configured for the ethernet interface, Orange Link LED should be lighted up.

Fix
Fix the sequence of Enet2 ref clk enablement -

  1. Set ENET2 ref clock to be generated by External OSC - Setting Bits - Collection of changes from gerrit #14 ENET2_CLK_SEL in register IOMUXC_GPR_GPR1 (0x400A_C004)
  2. ENET2 ref clock direction as output - Set bit doc: remove :orphan: from README.rst #18 - ENET2_TX_CLK_DIR in register IOMUXC_GPR_GPR1 (0x400A_C004)
  3. Set ENET2 ref clk frequency to 50MHz - Setting 01 to Bit 2 and 3 of 0x400D_80E0 (CCM_ANALOG_PLL_ENET)
@sumitbatra-nxp sumitbatra-nxp added the bug The issue is a bug, or the PR is fixing a bug label Jun 7, 2023
sumitbatra-nxp added a commit to NXPHoverGames/zephyr that referenced this issue Jun 7, 2023
This patch fixes zephyrproject-rtos#59010

This patch sets ENET2 ref clock to be generated by External OSC

ENET2 ref clock direction as output

ENET2 ref clk frequency to 50MHz

Signed-off-by: Sumit Batra <[email protected]>
@jgl-meta jgl-meta added the priority: low Low impact/importance bug label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug
Projects
None yet
4 participants