Skip to content

feat(PeriphDrivers): Allow skipping RTC clock config for all parts - #1603

Merged
ttmut merged 2 commits into
mainfrom
feat/rtc_msdk_no_gpio_clk
Aug 21, 2026
Merged

feat(PeriphDrivers): Allow skipping RTC clock config for all parts#1603
ttmut merged 2 commits into
mainfrom
feat/rtc_msdk_no_gpio_clk

Conversation

@ttmut

@ttmut ttmut commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description

Continuation of #1601

Wrap clock configuration code in MXC_RTC_Init with MSDK_NO_GPIO_CLK_INIT guard so that clock configuration can be done externally.

In Zephyr side, clock source selection for RTC will be done outside the RTC driver, so remove the obsolete wrapper code. Also add external clock source option to wrap_get_32k_clock_source_instance.

With zephyrproject-rtos/zephyr#116541, we can support RTC_CLK_IN as 32kHz clock source.

Wrap clock configuration in MXC_RTC_Init with MSDK_NO_GPIO_CLK_INIT guard
so that clock configuration can be done externally.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
@github-actions github-actions Bot added MAX32570 Related to the MAX32570 (ME13) MAX32650 Related to the MAX32650 (ME10) MAX32655 Related to the MAX32655 (ME17) MAX32660 Related to the MAX32660 (ME11) MAX32665 Related to the MAX32665 (ME14) MAX32670 Related to the MAX32670 (ME15) MAX32672 Related to the MAX32672 (ME21) MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) MAX32690 Related to the MAX32690 (ME18) MAX78000 Related to the MAX78000 (AI85) MAX78002 Related to the MAX78002 (AI87) MAX32662 Related to the MAX32662 (ME12) MAX32572 Related to the MAX32572 (ME55) Zephyr MSDK Zephyr related change. labels Aug 17, 2026
@ttmut ttmut changed the title feat(PeriphDrivers): Allow skipping GPIO config for RTC in all parts- #1601 feat(PeriphDrivers): Allow skipping clock config for RTC in all parts- #1601 Aug 17, 2026
@ttmut ttmut changed the title feat(PeriphDrivers): Allow skipping clock config for RTC in all parts- #1601 feat(PeriphDrivers): Allow skipping RTC clock config for all parts- #1601 Aug 17, 2026
@ttmut
ttmut force-pushed the feat/rtc_msdk_no_gpio_clk branch from 8cdafbe to b06a2e2 Compare August 17, 2026 22:39
@ttmut ttmut changed the title feat(PeriphDrivers): Allow skipping RTC clock config for all parts- #1601 feat(PeriphDrivers): Allow skipping RTC clock config for all parts Aug 17, 2026
For MAX32657, expand RTC clock source selection to support external
clock input.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
@ttmut
ttmut force-pushed the feat/rtc_msdk_no_gpio_clk branch from b06a2e2 to 51b0a98 Compare August 21, 2026 07:34
@ttmut

ttmut commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

In Zephyr side, clock source selection for RTC will be done outside the RTC driver, so remove the obsolete wrapper code. Also add external clock source option to wrap_get_32k_clock_source_instance.

Restored wrap_max32_rtc.h for now as it could break upstream Zephyr support in case the PR gets rejected. We can remove it once Zephyr changes are accepted.

@ttmut
ttmut merged commit 95b824f into main Aug 21, 2026
15 checks passed
@ttmut
ttmut deleted the feat/rtc_msdk_no_gpio_clk branch August 21, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MAX32570 Related to the MAX32570 (ME13) MAX32572 Related to the MAX32572 (ME55) MAX32650 Related to the MAX32650 (ME10) MAX32655 Related to the MAX32655 (ME17) MAX32660 Related to the MAX32660 (ME11) MAX32662 Related to the MAX32662 (ME12) MAX32665 Related to the MAX32665 (ME14) MAX32670 Related to the MAX32670 (ME15) MAX32672 Related to the MAX32672 (ME21) MAX32675 Related to the MAX32675 (ME16) MAX32680 Related to the MAX32680 (ME20) MAX32690 Related to the MAX32690 (ME18) MAX78000 Related to the MAX78000 (AI85) MAX78002 Related to the MAX78002 (AI87) Zephyr MSDK Zephyr related change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants