]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: Introduce ti-k3-rtc
authorNishanth Menon <nm@ti.com>
Thu, 23 Jun 2022 17:08:08 +0000 (12:08 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 24 Jun 2022 19:35:31 +0000 (21:35 +0200)
commit3c7b949e32bcdf7ac525518ae7f48651218b8e4f
tree8d0bd3772ec0dfecc6c5deb47120cb528cc429fd
parent92b395f0e97646e38642748779d6e078d7bae876
rtc: Introduce ti-k3-rtc

Introduce support for Texas Instruments Real Time Clock controller on
newer K3 family of SoCs such as AM62x.

The hardware module that is being supported is the "digital only"
version which doesn't have capability of external wakeup sources and
external power backup. However, for many practical applications, this
should suffice as RTC is operational across low power sequences.

The hardware block by itself is split into two distinct domains
internally to further reduce the power consumption with the actual
counter block and comparators clocked off a 32k clock source (which
based on SoC integration can be sourced by an external crystal) and an
register interface block which is driven by the bus clock. While optimal
from power perspective, it does create some complicated synchronizations
and sequences that one must be wary of in the driver handling.

Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Georgi Vlaev <g-vlaev@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220623170808.20998-3-nm@ti.com
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-ti-k3.c [new file with mode: 0644]