[PATCH 0/3] Use MFD for Dallas/Maxim DS1374 driver series

Johnson CH Chen (陳昭勳)
2020-06-22T10:03:31Z

Hello all,

This patch set uses MFD structure for DS1374 so that RTC and Watchdog
functions can be separately. Therefore, we can add more Watchdog
subfunctions here.

A DS1374 MFD core driver supports the I2C communication to RTC and
Watchdog devices.

1. Add DS1374 MFD core driver with I2C bus.
2. Let DS1374 RTC driver has RTC and Alarm functions only.
3. Add DS1374 Watchdog driver.

Thanks,
Johnson

Johnson Chen (3):
mfd: ds1374: Introduce Dallas/Maxim DS1374 MFD core driver
rtc: rtc-ds1374: Move out Watchdog function and I2C client
watchdog: ds1374_wdt: Introduce Dallas/Maxim DS1374 Watchdog driver

drivers/mfd/Kconfig | 11 +
drivers/mfd/Makefile | 2 +
drivers/mfd/ds1374.c | 101 ++++++++
drivers/rtc/Kconfig | 9 +-
drivers/rtc/rtc-ds1374.c | 458 ++++++----------------------------
drivers/watchdog/Kconfig | 11 +
drivers/watchdog/Makefile | 1 +
drivers/watchdog/ds1374_wdt.c | 330 ++++++++++++++++++++++++
8 files changed, 532 insertions(+), 391 deletions(-)
create mode 100644 drivers/mfd/ds1374.c
create mode 100644 drivers/watchdog/ds1374_wdt.c

--
2.20.1