Repository navigation
UPSTREAM-PEND: drivers: rtc: MSPM0 rtc native register access - #49
Open
Sunil-Hegde wants to merge 10 commits into
Open
Sunil-Hegde wants to merge 10 commits into
Sunil-Hegde wants to merge 10 commits into
Conversation
Sunil-Hegde
force-pushed
the
msp_downstream_rtc
branch
from
September 24, 2026 06:41
fe3b888 to
278d026
Compare
Sunil-Hegde
force-pushed
the
msp_downstream_rtc
branch
from
September 29, 2026 05:27
278d026 to
4dcd56d
Compare
Sunil-Hegde
force-pushed
the
msp_downstream_rtc
branch
from
October 6, 2026 08:39
4dcd56d to
f90dc44
Compare
Sunil-Hegde
force-pushed
the
msp_downstream_rtc
branch
from
October 6, 2026 09:05
f90dc44 to
795cb8e
Compare
…gis... PR: 115394 Replace all HAL calls to native register read/writes. Also, create macros in the same file eliminating the need for including the driver lib. This also adds a bug fix to the set alarm functions where earlier, Day of Month alarm write could overwrite Day of Week value. Both are combined into a single write to fix the problem. Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
… al... PR: 115394 Add seperate register struct for Alarm registers in-order to reduce code duplication for set and get alarm APIs. Earlier, each alarm had its own APIs which are merged into a single API and is handled via the alarm id. Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
PR: 115394 Add value check for rtc time passed in set alarm API and allow clearing an alarm via the set API. Allow alarm callback to be set to null as the existing Tests suggest. Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
…sid... PR: 115394 In the ISR, the alarm should not be called while still holding the lock. Therefore, copy the contents to a local alarm struct inside the lock and callback is triggered once lock is released. Also, change some functions using k_spinlock_t to use K_SPINLOCK macro for uniformity. Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
PR: 115394 Add RTC as a supported peripheral in the board.yaml Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
PR: 115394 Add RTC as a supported peripheral in the board.yaml Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
PR: 115394 Add RTC node and corresponding interrupt to the MSPM33 base dt. Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
PR: 115394 Add RTC as a supported peripheral in the board.yaml Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
…321a PR: 115394 Add board overlay for lp_mspm33c321a board Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
… co... PR: 115394 Add overlays and config files for the following boards to enable twister tests: - lp_mspm0g3519 - lp_mspm0l2228 - lp_mspm33c321a Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
Sunil-Hegde
force-pushed
the
msp_downstream_rtc
branch
from
October 7, 2026 09:17
795cb8e to
a667ffc
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Convert MSPM0 RTC driver to use native register read/writes
instead of calls to the driver lib.
Improvements and bug fixes over the HAL version:
the values from Day of week value, combined both in to a single
register write.
setting alarm registers. Earlier, separate APIs were present for
getting or setting alarm values for different alarm instances.
spinlock which is not safe. Remove callback from inside the
spinlock.
Depends on #43