Add DORMANT_CLOCK_SOURCE_RTC option on RP2040 #3048

Merged
will-v-pi merged 5 commits from low-power-dormant-rtc into develop 2026-07-01 09:56:17 -05:00
will-v-pi commented 2026-06-30 08:03:50 -05:00 (Migrated from github.com)

This runs RTC from XOSC, which allows going dormant without an external timer, at the expense of higher power consumption (about double DORMANT_CLOCK_SOURCE_XOSC, but still 5x less than sleep)

I think this is the lowest power the RP2040 can run at without an external clock source for the RTC, so is a useful option to add

This runs RTC from XOSC, which allows going dormant without an external timer, at the expense of higher power consumption (about double `DORMANT_CLOCK_SOURCE_XOSC`, but still 5x less than sleep) I think this is the lowest power the RP2040 can run at without an external clock source for the RTC, so is a useful option to add
kilograham (Migrated from github.com) reviewed 2026-06-30 08:03:50 -05:00
lurch (Migrated from github.com) reviewed 2026-06-30 08:54:58 -05:00
lurch (Migrated from github.com) commented 2026-06-30 08:54:58 -05:00

Does the "except clk_rtc which will be run from the XOSC" here mean that the "but XOSC and ROSC will be stopped" wording a few lines above needs to be changed? 🤷 (I'm afraid I never got to grips with all this clock-source stuff)

Does the "except clk_rtc which will be run from the XOSC" here mean that the "but XOSC and ROSC will be stopped" wording a few lines above needs to be changed? :shrug: (I'm afraid I never got to grips with all this clock-source stuff)
will-v-pi (Migrated from github.com) reviewed 2026-06-30 08:57:59 -05:00
will-v-pi (Migrated from github.com) commented 2026-06-30 08:57:59 -05:00

I think I won't change it up there, but can add more to this note:

 * they can be stopped, except clk_rtc which will be run from the XOSC so that it continues running for the timer.
 * In this case the XOSC will not be stopped.
I think I won't change it up there, but can add more to this note: ```suggestion * they can be stopped, except clk_rtc which will be run from the XOSC so that it continues running for the timer. * In this case the XOSC will not be stopped. ```
lurch (Migrated from github.com) reviewed 2026-06-30 09:47:30 -05:00
@ -243,6 +250,13 @@ int low_power_dormant_until_aon_timer(absolute_time_t until, dormant_clock_sourc
*
lurch (Migrated from github.com) commented 2026-06-30 09:47:30 -05:00

I guess the "In this case the XOSC will not be stopped." ought to be mentioned here too?

I guess the "In this case the XOSC will not be stopped." ought to be mentioned here too?
will-v-pi (Migrated from github.com) reviewed 2026-06-30 12:35:55 -05:00
@ -243,6 +250,13 @@ int low_power_dormant_until_aon_timer(absolute_time_t until, dormant_clock_sourc
*
will-v-pi (Migrated from github.com) commented 2026-06-30 12:35:55 -05:00

Thanks, added

Thanks, added
will-v-pi (Migrated from github.com) reviewed 2026-06-30 13:01:22 -05:00
liamfraser (Migrated from github.com) reviewed 2026-07-01 04:35:56 -05:00
will-v-pi (Migrated from github.com) reviewed 2026-07-01 05:41:44 -05:00
liamfraser (Migrated from github.com) approved these changes 2026-07-01 08:43:34 -05:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!3048
No description provided.