[PATCH v7 0/7] mfd: rn5t618: Add RTC/ADC support
From: Andreas Kemnade
Date: Fri Mar 20 2020 - 04:11:58 EST
In the variant RC5T619 the mfd has an RTC. This patchset adds
support for it. To do so it adds the missing register defines in
rn5t618.h and general irq handling for that.
It seems that the IRQ definitions are the same except missing RTC
for the RN5T618 but due to missing ability to test that they are
not added here.
It also adds support for the ADC, it is available in both the
RN5T618 and RC5T619 but due to missing ability to test that,
the subdevice is only added for the RC5T619.
It was tested on the Kobo Clara HD.
Changes in v7:
- cleanup in IRQ init stuff
Changes in v6:
- put together with ADC series
- also added cleanup i2_device_id patch to avoid merge
conflicts
Changes in v5:
- static rn5t618_irq_init
- PLATFORM_DEVID_NONE
- added some Acked-Bys
Changes in v4:
- use macros for IRQ definitions
- merge rn5t618-core.c and rn5t618-irq.c
Changes in v3:
- alignment cleanup
- output cleanup, remove useless toggling of alarm flag in rtc probe
- updated bindings description, so patch 1/5 becomes 2/6 and so on
Changes in v2:
- no dead code in irq code
- various improvements and cleanups in rtc driver itself
Andreas Kemnade (7):
dt-bindings: mfd: rn5t618: Document optional property interrupts
mfd: rn5t618: add IRQ support
mfd: rn5t618: add RTC related registers
mfd: rn5t618: add more subdevices
rtc: rc5t619: add Ricoh RC5T619 RTC driver
iio: adc: rn5t618: Add ADC driver for RN5T618/RC5T619
mfd: rn5t618: cleanup i2c_device_id
.../devicetree/bindings/mfd/rn5t618.txt | 4 +
drivers/iio/adc/Kconfig | 10 +
drivers/iio/adc/Makefile | 1 +
drivers/iio/adc/rn5t618-adc.c | 256 ++++++++++
drivers/mfd/Kconfig | 1 +
drivers/mfd/rn5t618.c | 109 ++++-
drivers/rtc/Kconfig | 10 +
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-rc5t619.c | 444 ++++++++++++++++++
include/linux/mfd/rn5t618.h | 26 +
10 files changed, 851 insertions(+), 11 deletions(-)
create mode 100644 drivers/iio/adc/rn5t618-adc.c
create mode 100644 drivers/rtc/rtc-rc5t619.c
--
2.20.1