linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] riscv: rtc: sophgo: add rtc support for CV1800
@ 2023-12-17 11:09 Jingbao Qiu
  2023-12-17 11:09 ` [PATCH v2 1/3] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC Jingbao Qiu
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Jingbao Qiu @ 2023-12-17 11:09 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, robh+dt, krzysztof.kozlowski+dt,
	conor, conor+dt, chao.wei, unicorn_wang, paul.walmsley, palmer,
	aou
  Cc: linux-rtc, devicetree, linux-kernel, dlan, Jingbao Qiu

This series adds rtc support for Sophgo CV1800.

Changes since v1
- fix duplicate names in subject
- using RTC replace RTC controller
- improve the properties of dt-bindings
- using `unevaluatedProperties` replace `additionalProperties`
- dt-bindings passed the test
- using `devm_platform_ioremap_resource()` replace
  `platform_get_resource()` and `devm_ioremap_resource()`
- fix random order of the code
- fix wrong wrapping of the `devm_request_irq()` and map the flag with dts
- using devm_clk_get_enabled replace `devm_clk_get()` and
  `clk_prepare_enable()`
- fix return style
- add rtc clock calibration function
- use spinlock when write register on read/set time

Jingbao Qiu (3):
  dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC
  rtc: sophgo: add rtc support for Sophgo CV1800 SoC
  riscv: dts: sophgo: add rtc dt node for CV1800

 .../bindings/rtc/sophgo,cv1800-rtc.yaml       |  47 ++
 arch/riscv/boot/dts/sophgo/cv1800b.dtsi       |   7 +
 drivers/rtc/Kconfig                           |   6 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-cv1800.c                      | 400 ++++++++++++++++++
 5 files changed, 461 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml
 create mode 100644 drivers/rtc/rtc-cv1800.c

-- 
2.25.1


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

end of thread, other threads:[~2023-12-20 21:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17 11:09 [PATCH v2 0/3] riscv: rtc: sophgo: add rtc support for CV1800 Jingbao Qiu
2023-12-17 11:09 ` [PATCH v2 1/3] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC Jingbao Qiu
2023-12-17 12:26   ` Conor Dooley
2023-12-17 13:16     ` jingbao qiu
2023-12-17 20:46       ` Conor Dooley
2023-12-18  2:06         ` jingbao qiu
2023-12-18  3:41         ` Inochi Amaoto
2023-12-20 21:36           ` Rob Herring
2023-12-17 11:09 ` [PATCH v2 2/3] rtc: sophgo: add rtc support for Sophgo CV1800 SoC Jingbao Qiu
2023-12-17 22:47   ` kernel test robot
2023-12-17 11:09 ` [PATCH v2 3/3] riscv: dts: sophgo: add rtc dt node for CV1800 Jingbao Qiu
2023-12-17 20:47   ` Conor Dooley
2023-12-18  2:05     ` jingbao qiu
2023-12-18  4:15   ` Inochi Amaoto
2023-12-18  5:40 ` [PATCH v2 0/3] riscv: rtc: sophgo: add rtc support " Jisheng Zhang
2023-12-18  7:11   ` Jingbao Qiu

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