All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] RZN1 RTC support
@ 2022-04-21  9:00 Miquel Raynal
  2022-04-21  9:00 ` [PATCH v2 1/7] dt-bindings: rtc: rzn1: Describe the RZN1 RTC Miquel Raynal
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Miquel Raynal @ 2022-04-21  9:00 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Geert Uytterhoeven, Magnus Damm,
	Michael Turquette, Stephen Boyd
  Cc: Miquel Raynal, linux-rtc, linux-renesas-soc, devicetree,
	linux-clk, Gareth Williams, Milan Stevanovic, Jimmy Lalande,
	Pascal Eberhard, Thomas Petazzoni, Herve Codina, Clement Leger

Hello,

This small series adds support for the RZN1 RTC.

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

As the RTC clock issue was addressed by filling the RTC clock
description in the clock driver, we no longer depend on other series.

Cheers,
Miquèl

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 (6):
  dt-bindings: rtc: rzn1: Describe the RZN1 RTC
  soc: renesas: rzn1-sysc: Fix the RTC hclock description
  rtc: rzn1: Add alarm support
  rtc: rzn1: Add oscillator offset support
  MAINTAINERS: Add myself as maintainer of the RZN1 RTC driver
  ARM: dts: r9a06g032: Describe the RTC

 .../bindings/rtc/renesas,rzn1-rtc.yaml        |  65 +++
 MAINTAINERS                                   |   8 +
 arch/arm/boot/dts/r9a06g032.dtsi              |  12 +
 drivers/clk/renesas/r9a06g032-clocks.c        |   2 +-
 drivers/rtc/Kconfig                           |   7 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-rzn1.c                        | 427 ++++++++++++++++++
 7 files changed, 521 insertions(+), 1 deletion(-)
 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] 18+ messages in thread

end of thread, other threads:[~2022-04-28  9:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21  9:00 [PATCH v2 0/7] RZN1 RTC support Miquel Raynal
2022-04-21  9:00 ` [PATCH v2 1/7] dt-bindings: rtc: rzn1: Describe the RZN1 RTC Miquel Raynal
2022-04-21 11:38   ` Krzysztof Kozlowski
2022-04-28  8:45   ` Geert Uytterhoeven
2022-04-21  9:00 ` [PATCH v2 2/7] soc: renesas: rzn1-sysc: Fix the RTC hclock description Miquel Raynal
2022-04-22 23:16   ` Stephen Boyd
2022-04-27 15:32   ` Geert Uytterhoeven
2022-04-27 15:42     ` Miquel Raynal
2022-04-27 15:43     ` Geert Uytterhoeven
2022-04-21  9:00 ` [PATCH v2 3/7] rtc: rzn1: Add new RTC driver Miquel Raynal
2022-04-28  8:58   ` Geert Uytterhoeven
2022-04-28  9:09     ` Miquel Raynal
2022-04-28  9:28       ` Geert Uytterhoeven
2022-04-21  9:00 ` [PATCH v2 4/7] rtc: rzn1: Add alarm support Miquel Raynal
2022-04-21  9:00 ` [PATCH v2 5/7] rtc: rzn1: Add oscillator offset support Miquel Raynal
2022-04-21  9:00 ` [PATCH v2 6/7] MAINTAINERS: Add myself as maintainer of the RZN1 RTC driver Miquel Raynal
2022-04-21  9:00 ` [PATCH v2 7/7] ARM: dts: r9a06g032: Describe the RTC Miquel Raynal
2022-04-28  8:48   ` Geert Uytterhoeven

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.