]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: s5m: add support for S2MPG10 RTC
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 9 Apr 2025 20:37:48 +0000 (21:37 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Jun 2025 21:58:40 +0000 (23:58 +0200)
commite64180846e7e4397938bbd0acf0640836f0f8051
treece76e1a1dbdb8d4003b3c7b28b91d6ce6471c3a9
parenta57743bf009e788ada3607ac6b74ae9ebbd4ed74
rtc: s5m: add support for S2MPG10 RTC

Add support for Samsung's S2MPG10 PMIC RTC, which is similar to the
existing PMIC RTCs supported by this driver.

S2MPG10 doesn't use I2C, so we expect the core driver to have created a
regmap for us.

Additionally, it can be used for doing a cold-reset. If requested to do
so (via DT), S2MPG10 is programmed with a watchdog configuration that
will perform a full power cycle upon watchdog expiry.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-27-d66d5f39b6bf@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s5m.c