mbox series

[0/4] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC

Message ID 20200923075845.360974-1-git@xen0n.name (mailing list archive)
Headers show
Series rtc: ls2x: Add support for the Loongson-2K/LS7A RTC | expand

Message

WANG Xuerui Sept. 23, 2020, 7:58 a.m. UTC
This patch series adds support for the RTC module found on various
Loongson systems with the Loongson-2K SoC or the LS7A bridge chip.
The driver is rewritten from an out-of-tree version to meet mainline
standards. I write kernel code as a hobby, though, so there might still
be overlooked issues. Any suggestions are welcome.

Note when applying this series: the 3rd patch depends on
commit 262623961478836b from the mips-next tree, so the series should
preferably go in via mips-next. Otherwise the patch will conflict in the
merge window anyway.

WANG Xuerui (4):
  rtc: ls2x: Add support for the Loongson-2K/LS7A RTC
  dt-bindings: rtc: Add bindings for LS2X RTC
  MIPS: Loongson64: DTS: Add RTC support to LS7A
  MIPS: Loongson: Enable LS2X RTC in loongson3_defconfig

 .../devicetree/bindings/rtc/trivial-rtc.yaml  |   2 +
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi     |   5 +
 arch/mips/configs/loongson3_defconfig         |   1 +
 drivers/rtc/Kconfig                           |  11 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-ls2x.c                        | 225 ++++++++++++++++++
 6 files changed, 245 insertions(+)
 create mode 100644 drivers/rtc/rtc-ls2x.c