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
Enjoy!
The following changes since commit bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9:
Linux 5.6-rc1 (2020-02-09 16:08:48 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-iio-rtc-5.7
for you to fetch changes up to 7858658cdcab7ca8057444b1d24c6a28ddaa8589:
mfd: rn5t618: Cleanup i2c_device_id (2020-03-27 09:42:44 +0000)
----------------------------------------------------------------
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
Documentation/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
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog