Re: [PATCH 0/2] rtc: mt6397: expose the RTC's spare bytes as nvmem

From: Alexandre Belloni

Date: Wed Sep 30 2026 - 13:43:09 EST


On Thu, 17 Sep 2026 23:57:45 -0500, Ryan Brue wrote:
> Four of the MT6397 RTC's alarm registers use only their low bits. Each alarm
> field lives in the low byte of its own register and the driver masks its
> writes accordingly, so the high byte of four of them is storage the clock and
> the alarm never touch. MediaTek's documentation names them RTC_NEW_SPARE0 to
> RTC_NEW_SPARE3 and assigns the first to a fuel gauge, which is how its PMIC
> battery drivers carry a state of charge across a reboot.
>
> [...]

Applied, thanks!

[1/2] dt-bindings: mfd: mediatek: mt6397: describe the RTC's nvmem layout
https://git.kernel.org/abelloni/c/8423c476ab2a
[2/2] rtc: mt6397: expose the spare bytes of the alarm registers as nvmem
https://git.kernel.org/abelloni/c/1aaaf94a61ee

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com