U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] max313xx RTC driver
@ 2023-03-19 21:23 Chris Packham
  2023-03-19 21:23 ` [PATCH v2 1/2] include: kernel.h: port find_closest() from Linux Chris Packham
  2023-03-19 21:23 ` [PATCH v2 2/2] drivers: rtc: add max313xx series rtc driver Chris Packham
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Packham @ 2023-03-19 21:23 UTC (permalink / raw)
  To: u-boot; +Cc: Chris Packham, Ibrahim Tilki, Sergei Antonov, Simon Glass

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.

For reference the datasheets are all available at

https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31328.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31329.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31331.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31334.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31341B-MAX31341C.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31342.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31343.pdf

[1] - https://lore.kernel.org/all/20221108122254.1185-2-Ibrahim.Tilki@analog.com/

Changes in v2:
- Add note on which Linux version this came from
- Collect review from Simon
- Enable in sandbox for compile testing
- Note feature omissions in Kconfig
- Incorporate review comments from Simon
- Collect r-by from Simon

Chris Packham (2):
  include: kernel.h: port find_closest() from Linux
  drivers: rtc: add max313xx series rtc driver

 configs/sandbox_defconfig |   1 +
 drivers/rtc/Kconfig       |  13 ++
 drivers/rtc/Makefile      |   1 +
 drivers/rtc/max313xx.c    | 459 ++++++++++++++++++++++++++++++++++++++
 include/linux/kernel.h    |  24 ++
 5 files changed, 498 insertions(+)
 create mode 100644 drivers/rtc/max313xx.c

-- 
2.40.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-31 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19 21:23 [PATCH v2 0/2] max313xx RTC driver Chris Packham
2023-03-19 21:23 ` [PATCH v2 1/2] include: kernel.h: port find_closest() from Linux Chris Packham
2023-03-31 14:15   ` Tom Rini
2023-03-19 21:23 ` [PATCH v2 2/2] drivers: rtc: add max313xx series rtc driver Chris Packham
2023-03-31 14:15   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox