Skip to content

Add Support for MediaTek MT2712 RTC

Ran Bi linux-arm-kernel linux-devicetree linux-mediatek linux-rtc lkml 3 versions – Applied

Status from this message: Applied to v5.6-next/dts64

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesApplied
  2. v24 patches 12 repliesSuperseded
  3. v13 patches 4 repliesSuperseded

Changes in v3 from the cover letter

1. change struct mt2712_rtc
2. use 100 as year offset
3. change irq handle thread
4. remove useless rtc time check
5. not modify struct rtc_time in set_time/set_alarm functions
6. modify rtc init function
7. add power lost flag for get_time/set_time functions
8. add .alarm_irq_enable callback
9. set rtc->range_min and rtc->range_max to do range checking
10. use fixed driver name

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4bindings: rtc: add bindings for MT2712 RTCDocumentation/devicetree/bindings/rtc/rtc-mt2712.txt+14 -00 replies
2/4rtc: add support for the MediaTek MT2712 RTCdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-mt2712.c+433 -00 replies
3/4arm64: dts: add RTC nodes for MT2712arch/arm64/boot/dts/mediatek/mt2712e.dtsi+6 -01 reply
4/4MAINTAINERS: add MT2712 RTC filesMAINTAINERS+2 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Add Support for MediaTek MT2712 RTC

This patchset add support to MT2712 RTC. MT2712 RTC is a SoC based RTC with different architecture compared to MT7622 RTC.

Changes in V3:
1. change struct mt2712_rtc
2. use 100 as year offset
3. change irq handle thread
4. remove useless rtc time check
5. not modify struct rtc_time in set_time/set_alarm functions
6. modify rtc init function
7. add power lost flag for get_time/set_time functions
8. add .alarm_irq_enable callback
9. set rtc->range_min and rtc->range_max to do range checking
10. use fixed driver name

Changes in V2:
1. change minimum year from 1968 to 2000
2. fix lock usage
3. stop to calculate useless day of week
4. stop to set default date after init
5. change the prefix of functions
6. use devm_request_threaded_irq() to replace request_threaded_irq()
7. add mt2712 rtc related files into MAINTAINERS

Ran Bi (4):
bindings: rtc: add bindings for MT2712 RTC
rtc: add support for the MediaTek MT2712 RTC
arm64: dts: add RTC nodes for MT2712
MAINTAINERS: add MT2712 RTC files

 .../devicetree/bindings/rtc/rtc-mt2712.txt    |  14 +
 MAINTAINERS                                   |   2 +
 arch/arm64/boot/dts/mediatek/mt2712e.dtsi     |   6 +
 drivers/rtc/Kconfig                           |  10 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-mt2712.c                      | 422 ++++++++++++++++++
 6 files changed, 455 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt2712.txt
 create mode 100644 drivers/rtc/rtc-mt2712.c
Signature · 1 line
2.25.0