Skip to content

soc: espressif: convert rtc peripheral to clock subsystem #90122

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

sylvioalves
Copy link
Collaborator

@sylvioalves sylvioalves commented May 19, 2025

Current ESP32 clock system is mixed with RTC labeling/registers,
but it doesn't implement a real-time clock (RTC) driver.

To avoid confusion and allow adding a proper RTC driver later,
this commit renames the existing RTC interface to CLOCK and make
it as a subsystem without any peripheral attached to it.

This better reflects its actual purpose as a general clock controller.

@sylvioalves sylvioalves requested review from LucasTambor, wmrsouza, marekmatej and raffarost and removed request for LucasTambor May 19, 2025 06:12
Copy link

Current ESP32 clock system is mixed with RTC labeling/registers,
but it doesn't implement a real-time clock (RTC) driver.

To avoid confusion and allow adding a proper RTC driver later,
this commit renames the existing RTC interface to CLOCK and make
it as a subsystem without any peripheral attached to it.

This better reflects its actual purpose as a general clock controller.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
@sylvioalves sylvioalves changed the title driver: clock: rename RTC interface to CLOCK for clarity oc: espressif: convert rtc peripheral to clock subsystem May 19, 2025
@sylvioalves sylvioalves changed the title oc: espressif: convert rtc peripheral to clock subsystem soc: espressif: convert rtc peripheral to clock subsystem May 19, 2025
@sylvioalves sylvioalves marked this pull request as ready for review May 19, 2025 11:39
@github-actions github-actions bot added area: Clock Control area: Counter platform: ESP32 Espressif ESP32 area: Samples Samples area: Watchdog Watchdog area: RISCV RISCV Architecture (32-bit & 64-bit) area: Xtensa Xtensa Architecture labels May 19, 2025
@sylvioalves
Copy link
Collaborator Author

@nordic-krch, can you take a look as PR's assignee?

@sylvioalves sylvioalves requested a review from kartben May 26, 2025 20:01
@sylvioalves sylvioalves self-assigned this Jun 2, 2025
@kartben kartben merged commit e0a915a into zephyrproject-rtos:main Jun 2, 2025
34 checks passed
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: RISCV RISCV Architecture (32-bit & 64-bit) area: Samples Samples area: Watchdog Watchdog area: Xtensa Xtensa Architecture platform: ESP32 Espressif ESP32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants