devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] rtc: mediatek: add support for SoC based RTC on MT7622
@ 2017-10-23  7:16 sean.wang-NuS5LvNUpcJWk0Htik3J/w
  2017-10-23  7:16 ` [PATCH v3 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC sean.wang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: sean.wang-NuS5LvNUpcJWk0Htik3J/w @ 2017-10-23  7:16 UTC (permalink / raw)
  To: a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
	alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8
  Cc: linux-rtc-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Sean Wang

From: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>

Changes since v2:
- Remove time extension with yr_base 
- Add fixup that ensures all time fields in hardware keeping consistency
inside the mtk_rtc_get_alarm_or_time call
- Add validity for time range should be between 2001 to 2099
- Enhance comments with aligned style and explanation for certain limiation in
hardware
- Rename dt-binding naming from rtc-mediatek.txt to rtc-mt7622.txt
- Rename config naming from RTC_DRV_MEDIATEK to RTC_DRV_MT7622

Changes since v1:
- Rename to rtc-mt7622.c from rtc-mediatek.c
- Use [readl,writel]_relaxed instead of __raw_* version
- Remove redundant register reading in mtk_rtc_get_alarm_or_time()
- Stop alarm when alarm is really expired in mtk_rtc_alarmirq()
- Extend the maximum year the RTC/Alarm can count/support using year rebasing
- Remove unnesscary log which is already done in core layer

This patchset introduces support for MediaTek SoC based real time clock
(RTC) Currently, the driver is already tested successfully with hwclock
and wakealarm on MT7622 SoC. And it should also be workable on other
similar MediaTek SoCs. And patch 3 is a distinct patch used to distinguish
between either SoC based or PMIC based RTC to avoid confusion for the RTC
selection for the target SoC.

Sean Wang (4):
  dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC
  rtc: mediatek: add driver for RTC on MT7622 SoC
  rtc: mediatek: enhance the description for MediaTek PMIC based RTC
  rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver

 .../devicetree/bindings/rtc/rtc-mt7622.txt         |  21 +
 MAINTAINERS                                        |   3 +
 drivers/rtc/Kconfig                                |  18 +-
 drivers/rtc/Makefile                               |   1 +
 drivers/rtc/rtc-mt7622.c                           | 422 +++++++++++++++++++++
 5 files changed, 461 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt7622.txt
 create mode 100644 drivers/rtc/rtc-mt7622.c

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2017-10-26  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23  7:16 [PATCH v3 0/4] rtc: mediatek: add support for SoC based RTC on MT7622 sean.wang-NuS5LvNUpcJWk0Htik3J/w
2017-10-23  7:16 ` [PATCH v3 1/4] dt-bindings: rtc: mediatek: add bindings for MediaTek SoC based RTC sean.wang
     [not found] ` <cover.1508741262.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-10-23  7:16   ` [PATCH v3 2/4] rtc: mediatek: add driver for RTC on MT7622 SoC sean.wang-NuS5LvNUpcJWk0Htik3J/w
     [not found]     ` <daf20f5d249700320d6b1c1d2ed25fd1bd392ca3.1508741263.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-10-24 16:38       ` Yingjoe Chen
2017-10-23  7:16 ` [PATCH v3 3/4] rtc: mediatek: enhance the description for MediaTek PMIC based RTC sean.wang
2017-10-23  7:16 ` [PATCH v3 4/4] rtc: mediatek: update MAINTAINERS entry with MediaTek RTC driver sean.wang
2017-10-26  9:34 ` [PATCH v3 0/4] rtc: mediatek: add support for SoC based RTC on MT7622 Alexandre Belloni

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).