Skip to content

Conversation

@ptonystark
Copy link

Code changes:

  • Check the oscillator stop (OS) bit during RTC initialization.
  • If the OS bit is set due to a low voltage condition (e.g., drained super capacitor), clear it to reinitialize the oscillator.

Problem study:
The oscillator stop bit of the External RTC Register must be cleared manually to make it functional.
When the RTC receives low voltage, it triggers the OS bit to be set.

Scenario:
When the super capacitor voltage is drained, the OS bit is set, indicating that the oscillator has stopped. For all subsequent initializations, this OS bit needs to be manually cleared to ensure the RTC operates correctly.

Datasheet:
rtc os bit

Setting the OC bit to zero initially to clear the old status set
Overdr0ne pushed a commit to Overdr0ne/linux-imx that referenced this pull request Jul 28, 2025
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.

1 participant