devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/6] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC
@ 2021-06-28 16:45 WANG Xuerui
  2021-06-28 16:45 ` [PATCH v4 1/6] " WANG Xuerui
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: WANG Xuerui @ 2021-06-28 16:45 UTC (permalink / raw)
  To: linux-rtc; +Cc: WANG Xuerui, linux-mips, devicetree

Here is the 4th revision of the series; the review mail got lost in my
inbox so this is a bit late, sorry for the delay!

The previous revision is tested on Loongson-2K by Jiaxun Yang, and this
revision contains no functional changes so should work on 2K too. I compiled
and tested this revision on a Loongson-3A4000 & LS7A system.

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.

This series is based on next-20210628, but should apply cleanly on rtc-next
too.

v4:
- Rebased on top of next-20210628
- Added Jiaxun's Tested-by tag for Loongson-2K
- Addressed all review comments from v3
  - Rewritten field operations with FIELD_GET/FIELD_PREP
  - Removed all error logs
  - Removed unnecessary spinlocking (RTC core already protects against
    concurrent device file operations)

v3:
- Fixed compile error not discovered after rebase (blame sleep
  deprivation)
- Tested on Loongson-3A4000 (still need testing on Loongson-2K)

v2:
- Rebased on top of latest linux-next
- Updated Huacai's e-mail address to the kernel.org one
- Added collected tags
- Added adaptation for newly upstreamed Loongson-2K platforms

WANG Xuerui (6):
  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
  MIPS: Loongson64: DTS: Add RTC support to Loongson-2K
  MIPS: Loongson: Enable LS2X RTC in loongson2k_defconfig

 .../devicetree/bindings/rtc/trivial-rtc.yaml  |   2 +
 .../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                        | 184 ++++++++++++++++++
 8 files changed, 210 insertions(+)
 create mode 100644 drivers/rtc/rtc-ls2x.c


base-commit: 3579aa488520feeda433ceca23ef4704bf8cd280
-- 
2.30.1


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

end of thread, other threads:[~2021-07-02  6:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 16:45 [PATCH v4 0/6] rtc: ls2x: Add support for the Loongson-2K/LS7A RTC WANG Xuerui
2021-06-28 16:45 ` [PATCH v4 1/6] " WANG Xuerui
2021-07-02  5:52   ` Nobuhiro Iwamatsu
2021-07-02  6:16     ` WANG Xuerui
2021-06-28 16:45 ` [PATCH v4 2/6] dt-bindings: rtc: Add bindings for LS2X RTC WANG Xuerui
2021-06-28 16:45 ` [PATCH v4 3/6] MIPS: Loongson64: DTS: Add RTC support to LS7A WANG Xuerui
2021-06-29  3:25   ` Jiaxun Yang
2021-06-28 16:45 ` [PATCH v4 5/6] MIPS: Loongson64: DTS: Add RTC support to Loongson-2K WANG Xuerui

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