
This series is based on the in-flight linux patch that is adding support for this family of RTCs to linux[1]. The u-boot driver is a bit different due to some of the differences between Linux and u-boot and I've dropped the support for hwmon and clock source functions. Where possible I've tried to keep things such that the U-Boot and Linux versions can be compared and kept in sync.
[1] - https://lore.kernel.org/all/20221108122254.1185-2-Ibrahim.Tilki@analog.com/
Chris Packham (2): include: kernel.h: port find_closest() from Linux drivers: rtc: add max313xx series rtc driver
drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/max313xx.c | 442 +++++++++++++++++++++++++++++++++++++++++ include/linux/kernel.h | 24 +++ 4 files changed, 475 insertions(+) create mode 100644 drivers/rtc/max313xx.c