Skip to content

rtc: ls2x: Add support for the Loongson-2K/LS7A RTC

Binbin Zhou linux-acpi linux-devicetree linux-mips linux-rtc loongarch 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7rtc: ls2x: Add support for the Loongson-2K/LS7A RTCdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-ls2x.c+378 -00 replies
2/7LoongArch: Enable LS2X RTC in loongson3_defconfigarch/loongarch/configs/loongson3_defconfig+1 -02 replies
3/7dt-bindings: rtc: Add bindings for LS2X RTCDocumentation/devicetree/bindings/rtc/trivial-rtc.yaml+2 -00 replies
4/7MIPS: Loongson64: DTS: Add RTC support to LS7Aarch/mips/boot/dts/loongson/ls7a-pch.dtsi+5 -00 replies
5/7MIPS: Loongson: Enable LS2X RTC in loongson3_defconfigarch/mips/configs/loongson3_defconfig+1 -00 replies
6/7MIPS: Loongson64: DTS: Add RTC support to Loongson-2Karch/mips/boot/dts/loongson/loongson64-2k1000.dtsi+5 -00 replies
7/7MIPS: Loongson: Enable LS2X RTC in loongson2k_defconfigarch/mips/configs/loongson2k_defconfig+1 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchRob HerringJiaxun Yang
1/7
2/7
3/7A-b
4/7A-b
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [PATCH 0/7] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC

Hi all:

The initial DT-base ls2x rtc driver was written by Wang Xuerui, he has released five versions of patchset before, and all related mail records are shown below if you are interested:

https://lore.kernel.org/all/?q=ls2x-rtc

In this series of patches, based on the code above, I have added the following support:

1. Add ACPI-related support, as Loongson-3 + LS7A is now ACPI-base by default on LoonArch;
2. Add rtc alarm/walarm related functions.

Unfortunately, I have only tested the Loongson-3A4000+LS7A1000/LS7A2000 under LoongArch architecture.

NOTE:
The related functions of rtc alarm/walarm depend on ACPI registers, so rtc alarm may not be available on the DT-base environment. Such as Loongson-2k/3 under MIPS.

Thanks.

Binbin Zhou (2):
rtc: ls2x: Add support for the Loongson-2K/LS7A RTC
LoongArch: Enable LS2X RTC in loongson3_defconfig

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

 .../devicetree/bindings/rtc/trivial-rtc.yaml  |   2 +
 arch/loongarch/configs/loongson3_defconfig    |   1 +
 .../boot/dts/loongson/loongson64-2k1000.dtsi  |   5 +
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi     |   5 +
 arch/mips/configs/loongson2k_defconfig        |   1 +
 arch/mips/configs/loongson3_defconfig         |   1 +
 drivers/rtc/Kconfig                           |  11 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-ls2x.c                        | 366 ++++++++++++++++++
 9 files changed, 393 insertions(+)
 create mode 100644 drivers/rtc/rtc-ls2x.c
Signature · 1 line
2.31.1