[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200226190504.6467-1-andreas@kemnade.info>
Date: Wed, 26 Feb 2020 20:04:59 +0100
From: Andreas Kemnade <andreas@...nade.info>
To: lee.jones@...aro.org, robh+dt@...nel.org, mark.rutland@....com,
a.zummo@...ertech.it, alexandre.belloni@...tlin.com,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-rtc@...r.kernel.org, stefan@...er.ch, b.galvani@...il.com,
phh@....me, letux-kernel@...nphoenux.org, GNUtoo@...erdimension.org
Cc: Andreas Kemnade <andreas@...nade.info>
Subject: [PATCH RESEND v5 0/5] Add rtc support for rn5t618 mfd
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 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.
For cleaning up there is a separate off-topic patch:
mfd: rn5t618: cleanup i2c_device_id
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 (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 | 109 +++++-
drivers/rtc/Kconfig | 10 +
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-rc5t619.c | 444 ++++++++++++++++++++++
include/linux/mfd/rn5t618.h | 26 ++
7 files changed, 593 insertions(+), 2 deletions(-)
create mode 100644 drivers/rtc/rtc-rc5t619.c
--
2.11.0
Powered by blists - more mailing lists