linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/5] Add rtc support for rn5t618 mfd
@ 2019-12-11 21:54 Andreas Kemnade
  2019-12-11 21:54 ` [PATCH v4 1/5] dt-bindings: mfd: rn5t618: Document optional property interrupts Andreas Kemnade
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Andreas Kemnade @ 2019-12-11 21:54 UTC (permalink / raw)
  To: lee.jones, robh+dt, mark.rutland, a.zummo, alexandre.belloni,
	devicetree, linux-kernel, linux-rtc, stefan, b.galvani, phh,
	letux-kernel
  Cc: Andreas Kemnade

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
but due to missing ability to test that I do not add them here.

The rtc driver itself is based on 
https://github.com/kobolabs/Kobo-Reader/blob/master/hw/imx6sll-clara/kernel.tar.bz2
but heavily reworked.

It was tested on the Kobo Clara HD.

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 (5):
  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

 Documentation/devicetree/bindings/mfd/rn5t618.txt |   4 +
 drivers/mfd/Kconfig                               |   1 +
 drivers/mfd/rn5t618.c                             | 106 +++++-
 drivers/rtc/Kconfig                               |  10 +
 drivers/rtc/Makefile                              |   1 +
 drivers/rtc/rtc-rc5t619.c                         | 444 ++++++++++++++++++++++
 include/linux/mfd/rn5t618.h                       |  26 ++
 7 files changed, 590 insertions(+), 2 deletions(-)
 create mode 100644 drivers/rtc/rtc-rc5t619.c

-- 
2.11.0


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

end of thread, other threads:[~2019-12-18 20:55 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 21:54 [PATCH v4 0/5] Add rtc support for rn5t618 mfd Andreas Kemnade
2019-12-11 21:54 ` [PATCH v4 1/5] dt-bindings: mfd: rn5t618: Document optional property interrupts Andreas Kemnade
2019-12-16 15:27   ` Lee Jones
2019-12-18 20:54   ` Rob Herring
2019-12-11 21:54 ` [PATCH v4 2/5] mfd: rn5t618: add IRQ support Andreas Kemnade
2019-12-16 15:27   ` Lee Jones
2019-12-16 16:01     ` Andreas Kemnade
2019-12-11 21:54 ` [PATCH v4 3/5] mfd: rn5t618: add RTC related registers Andreas Kemnade
2019-12-16 15:28   ` Lee Jones
2019-12-11 21:54 ` [PATCH v4 4/5] mfd: rn5t618: add more subdevices Andreas Kemnade
2019-12-16 15:31   ` Lee Jones
2019-12-16 16:00     ` Andreas Kemnade
2019-12-17  8:01       ` Lee Jones
2019-12-17 11:25         ` Andreas Kemnade
2019-12-17 19:26           ` Andreas Kemnade
2019-12-11 21:54 ` [PATCH v4 5/5] rtc: rc5t619: add ricoh rc5t619 RTC driver Andreas Kemnade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).