Skip to content

UPSTREAM-PEND: drivers: counter: k3_rtc: Add TI RTC driver#25

Merged
soumya-TI merged 13 commits into
TexasInstruments:v4.3.0-ti-nextfrom
Sunil-Hegde:ti_rtc_downstream
Apr 13, 2026
Merged

UPSTREAM-PEND: drivers: counter: k3_rtc: Add TI RTC driver#25
soumya-TI merged 13 commits into
TexasInstruments:v4.3.0-ti-nextfrom
Sunil-Hegde:ti_rtc_downstream

Conversation

@Sunil-Hegde

Copy link
Copy Markdown
  • This rtc driver is used in k3 devices
  • tested on skam62/a53 and am62l a53

@Sunil-Hegde
Sunil-Hegde force-pushed the ti_rtc_downstream branch 3 times, most recently from 0461d77 to 3ff79db Compare March 25, 2026 05:20
@Sunil-Hegde Sunil-Hegde changed the title Ti rtc downstream drivers: counter: k3_rtc: Add TI RTC driver Mar 25, 2026
@Sunil-Hegde Sunil-Hegde changed the title drivers: counter: k3_rtc: Add TI RTC driver UPSTREAM_PEND: drivers: counter: k3_rtc: Add TI RTC driver Mar 25, 2026
@Sunil-Hegde Sunil-Hegde changed the title UPSTREAM_PEND: drivers: counter: k3_rtc: Add TI RTC driver UPSTREAM-PEND: drivers: counter: k3_rtc: Add TI RTC driver Mar 25, 2026
@Sunil-Hegde
Sunil-Hegde force-pushed the ti_rtc_downstream branch 2 times, most recently from 7a04b1a to 6aa974f Compare March 30, 2026 06:32
JarmouniA and others added 13 commits April 13, 2026 13:51
commit 3d78a76 upstream.

Fix how Doxygen special commands \retval & \return are used in doc text.
\retval: Starts a description for a function's return value with name
<return value>, which needs to be attached and to not be a word that is
part of the sentence, and each return val should have its own \retval.
Otherwise \retval is replaced with \return.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
commit 4704c6d upstream.

Quite a few well established APIs are stuck in unstable status, move
them to stable.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
commit 34befef upstream.

Introduce a counter set value api to set the ticks for 32b and 64b.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
commit 849ba3a upstream.

There is already a helper for converting ticks to ns. Add one
that does the opposite.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
commit fd72085 upstream

Some counters, such as those that use fractional adders, tick at
resolutions greater than 4294967295Hz. This changes the freq in the common
info to a uint64_t. This adds a KConfig that can be selected by a driver.

This also has the counter ticks to sec (and vice versa) helper functions
call the get frequency for 64 bits if the kconfig is selected.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
commit ac8f220 upstream.

Run clang-format on counter.h

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
commit 779383e upstream.

Add apis for 64 bits.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
…n 64b

commit c07454f upstream.

Add inline helpers to convert nanoseconds or microseconds to 64b ticks
and vice versa.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
- This is the counter based rtc module used in k3 devices.

PR: 104048

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
This commit adds the counter RTC driver used in TI k3
devices.

PR: 104048

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
 - Add RTC node in am62-main.dtsi which can also be
   used as a counter
 - Add child counter_rtc node which can be used as a
   virtual rtc.
 - Add interrupts in am62x_a53.dtsi

PR: 104048

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
Enable RTC node for a53 core.

PR: 104048

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
 - Set RTC init priority to initialise zephyr,rtc-counter driver after
   counter driver is initialsed whose default priority is 60.

PR: 104048

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
@soumya-TI
soumya-TI merged commit 8541849 into TexasInstruments:v4.3.0-ti-next Apr 13, 2026
7 of 9 checks passed
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.

5 participants