]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: spacemit: support the SpacemiT P1 RTC
authorAlex Elder <elder@riscstar.com>
Mon, 25 Aug 2025 17:20:53 +0000 (12:20 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Sep 2025 15:38:21 +0000 (17:38 +0200)
commita6de182daa2b1a627d88a594526a0db4ac1e396e
tree86421cf1b0b2c1387f281cbf8308f9e77a2cba7e
parent6266aea864fa5484f6e8313f913a69e794765fab
rtc: spacemit: support the SpacemiT P1 RTC

Add support for the RTC found in the SpacemiT P1 PMIC.  Initially
only setting and reading the time are supported.

The PMIC is implemented as a multi-function device.  This RTC is
probed based on this driver being named in a MFD cell in the simple
MFD I2C driver.

Signed-off-by: Alex Elder <elder@riscstar.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20250825172057.163883-5-elder@riscstar.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-spacemit-p1.c [new file with mode: 0644]