Skip to content

Comments

arch/arm64/imx9: Add enet MII clock calculation#18409

Merged
lupyuen merged 1 commit intoapache:masterfrom
tiiuae:add_mii_clock_calculation
Feb 20, 2026
Merged

arch/arm64/imx9: Add enet MII clock calculation#18409
lupyuen merged 1 commit intoapache:masterfrom
tiiuae:add_mii_clock_calculation

Conversation

@arikimari
Copy link
Contributor

Summary

Add MII clock calculation from root clock
Remove MII clock divider define

Old MII clock divider define (=26) was wrong, clock <5MHz
New MII divider calculation (=49) generates correct 2,5MHz clock

Impact

IMX9 hw with ethernet

Testing

Tested with custom NXP93 HW.
Scope measurement gives 2,5MHz clock for MII
Scope measurement with old divider was about 5MHz

Add MII clock calculation from root clock
Remove MII clock divider define

Signed-off-by: Ari Kimari <ari.kimari@tii.ae>
@arikimari arikimari requested a review from jerpelea as a code owner February 19, 2026 08:29
@github-actions github-actions bot added Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: S The size of the change in this PR is small labels Feb 19, 2026
@jerpelea jerpelea changed the title arch/imx9/enet: Add MII clock calculation arch/arm64/imx9: Add enet MII clock calculation Feb 19, 2026
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @arikimari :-) Scope images and working network tests would be nice to have in the testing section please add :-)

@lupyuen lupyuen merged commit 966be68 into apache:master Feb 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants