Skip to content

Conversation

@TimJTi
Copy link
Contributor

@TimJTi TimJTi commented Jan 16, 2023

Summary

When using UPLL clock on SAMA5D2 and SAMA5D3 with a crystal which is NOT 12MHz, the CKTRIM SFR register bits must be set correctly to allow the 480MHz clock to run at the correct frequency.

Also found that the SFR bit definitions for this were incorrectly applied to SAMA5D4 but they only apply to SAMA5D2 and SAMA5D3 as best as I can tell.

Impact

None, since these bits had never been set in previous versions of NuttX.

Testing

Custom board with SAMA5D27C-D1G, using 24MHz crystal, and USB host and device connections.

@xiaoxiang781216 xiaoxiang781216 merged commit 6b4da4a into apache:master Jan 16, 2023
@TimJTi TimJTi deleted the SAMA5D2/3-UTMI-CLK-trim-for-non-12MHz-crystals branch January 16, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants