All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] RZ/N1 RTC support
@ 2022-05-09 15:45 Miquel Raynal
  2022-05-09 15:45 ` [PATCH v4 1/5] dt-bindings: rtc: rzn1: Describe the RZN1 RTC Miquel Raynal
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Miquel Raynal @ 2022-05-09 15:45 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Geert Uytterhoeven, Magnus Damm
  Cc: Miquel Raynal, linux-rtc, linux-renesas-soc, devicetree,
	Gareth Williams, Milan Stevanovic, Jimmy Lalande, Pascal Eberhard,
	Thomas Petazzoni, Herve Codina, Clement Leger

Hello,

This small series adds support for the RZ/N1 RTC.

Despite its limitations, I found useful to at least have alarm and
offset support.

The RTC hclk fix has been merged in the renesas-clk-for-v5.19 branch so
I dropped it from the series. Same for the DT patch.

Cheers,
Miquèl

Changes in v4:
* Collected more tags (on the DT bindings).
* Fixed the name of the SoC in the header: RZ/N1 instead of RZN1.
* Dropped the error message when the alarm IRQ is not available (already
  handled by the core)
* Used pm_runtime_put() instead of pm_runtime_put_sync().
* Used pm_runtime_resume_and_get() instead of pm_runtime_get().
* Used devm_pm_runtime_enable() instead of pm_runtime_enable().

Changes in v3:
* Collected tags.
* s/soc:/clk:/ in the clock commit title.
* Dropped the RTC hclk fix which has already been applied.
* Added the power-domain properties both in the bindings and in the DT.
* Used runtime PM to enable the clock instead of using the clk API
  directly. 

Changes in v2:
* Fixed the error path in the clk driver, where I missed to release a
  spin_lock.
* Collected tags.
* Moved the rtc subnode in the dt to keep the nodes ordered by unit
  address.
* Dropped the useless "oneOf" statement in the bindings (compatible
  property).
* Dropped the start-year property in the bindings (already defined).
* Avoided rollover calculations that could be more easily handled (and
  reviewed) with a time64_t conversion.
* Returned ERANGE instead of EOPNOTSUPP when the alarm date is not
  valid.
* Cleared RTC_FEATURE_UPDATE_INTERRUPT to avoid warning from the tools.
* Dropped the sysctl patch adding the reset helper, instead fulfilled
  the description of the RTC clock so that when requesting this clock to
  be enabled, the idle bit is released.
* Avoided rollover calculations that could be more easily handled
  (and reviewed) with a time64_t conversion.
* Fixed the max_range value, after a rtc-range test and looking at other
  implementations.

Michel Pollet (1):
  rtc: rzn1: Add new RTC driver

Miquel Raynal (4):
  dt-bindings: rtc: rzn1: Describe the RZN1 RTC
  rtc: rzn1: Add alarm support
  rtc: rzn1: Add oscillator offset support
  MAINTAINERS: Add myself as maintainer of the RZN1 RTC driver

 .../bindings/rtc/renesas,rzn1-rtc.yaml        |  70 +++
 MAINTAINERS                                   |   8 +
 drivers/rtc/Kconfig                           |   7 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-rzn1.c                        | 423 ++++++++++++++++++
 5 files changed, 509 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/renesas,rzn1-rtc.yaml
 create mode 100644 drivers/rtc/rtc-rzn1.c

-- 
2.27.0


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

end of thread, other threads:[~2022-05-12  7:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-09 15:45 [PATCH v4 0/5] RZ/N1 RTC support Miquel Raynal
2022-05-09 15:45 ` [PATCH v4 1/5] dt-bindings: rtc: rzn1: Describe the RZN1 RTC Miquel Raynal
2022-05-09 15:45 ` [PATCH v4 2/5] rtc: rzn1: Add new RTC driver Miquel Raynal
2022-05-09 21:26   ` kernel test robot
2022-05-10  7:29     ` Miquel Raynal
2022-05-10  7:29       ` Miquel Raynal
2022-05-10 10:06       ` Krzysztof Kozlowski
2022-05-10 10:06         ` Krzysztof Kozlowski
2022-05-12  7:27         ` Miquel Raynal
2022-05-12  7:27           ` Miquel Raynal
2022-05-10 11:40   ` kernel test robot
2022-05-09 15:45 ` [PATCH v4 3/5] rtc: rzn1: Add alarm support Miquel Raynal
2022-05-09 15:45 ` [PATCH v4 4/5] rtc: rzn1: Add oscillator offset support Miquel Raynal
2022-05-09 15:45 ` [PATCH v4 5/5] MAINTAINERS: Add myself as maintainer of the RZN1 RTC driver Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.