-
Notifications
You must be signed in to change notification settings - Fork 8.4k
driver: clock: espressif: always use calibrated frequency #100599
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
Open
sylvioalves
wants to merge
3
commits into
zephyrproject-rtos:main
Choose a base branch
from
sylvioalves:bugfix/espressif-clock-source-cal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
driver: clock: espressif: always use calibrated frequency #100599
sylvioalves
wants to merge
3
commits into
zephyrproject-rtos:main
from
sylvioalves:bugfix/espressif-clock-source-cal
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wmrsouza
previously approved these changes
Dec 5, 2025
raffarost
previously approved these changes
Dec 5, 2025
38e2f80 to
4142de8
Compare
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
4110ae0 to
0da50fc
Compare
raffarost
previously approved these changes
Dec 9, 2025
wmrsouza
previously approved these changes
Dec 9, 2025
When clock get_rate() is called, return by default the calibrated frequency instead of nominal one. This improves accuracy specially when internal RC SLOW clock is used. To guarantee that nominal values can be still be retrieved, add a new type of clock subsys for such scenario. west.yml is also updated to add fix into calibration sources. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
ESP32-H2 counter test works with default tolerance. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Update the test case to use the nominal clock_subsys and print calibration deviation. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
0da50fc to
42b635f
Compare
Contributor
Author
|
Rebased. |
|
wmrsouza
approved these changes
Dec 9, 2025
raffarost
approved these changes
Dec 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Clock Control
area: Counter
area: Tests
Issues related to a particular existing or missing test
manifest
manifest-hal_espressif
platform: ESP32
Espressif ESP32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



When clock get_rate() is called, return calibrated frequency instead of nominal one. This improves accuracy specially when internal RC SLOW clock is used.