linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] rtc: m41t93: add new features alarm, clock out, watchdog
@ 2025-09-03 14:23 Akhilesh Patil
  2025-09-03 14:25 ` [PATCH 1/7] rtc: m41t93: add device tree support Akhilesh Patil
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Akhilesh Patil @ 2025-09-03 14:23 UTC (permalink / raw)
  To: alexandre.belloni, krzk+dt, robh, conor+dt
  Cc: skhan, linux-rtc, devicetree, linux-kernel, akhileshpatilvnit

This patch series adds following to m41t93 rtc driver.

Functionalities: 
- Alarm support (support to configure alarm 1)
- Square wave output support
- Watchdog support

Code improvements:
this series migrates existing driver to use standard regmap interface
for spi instead of direct spi calls and uses regmap for new features.

Bug fix: 
Fixes device probe issue after power-on due to incorrect assumptions of
reset values of the registers.

Device tree support:
Adds device tree support to the driver along with binding documentation.

Testing:
This patch series is validated on TI am62x board with m41t93 rtc chip
connected to spi0 bus.
regmap migration is additionally tested by observing spi transfers
with the help of logic analyzer. Short summary of test flow is added in
commit message of respective features.

Datasheet:
https://www.st.com/resource/en/datasheet/m41t93.pdf

patch 4 to 7 depend on patch 3 (regmap patch)

Regards,
Akhilesh

Akhilesh Patil (7):
  rtc: m41t93: add device tree support
  dt-bindings: rtc: add bindings for m41t93
  rtc: m41t93: migrate to regmap api for register access
  rtc: m41t93: Add alarm support
  rtc: m41t93: fix device connection/detection logic during probe
  rtc: m41t93: Add square wave clock provider support
  rtc: m41t93: Add watchdog support

 .../devicetree/bindings/rtc/st,m41t93.yaml    |  43 ++
 drivers/rtc/rtc-m41t93.c                      | 489 ++++++++++++++++--
 2 files changed, 479 insertions(+), 53 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/st,m41t93.yaml

-- 
2.34.1


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

end of thread, other threads:[~2025-09-03 20:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 14:23 [PATCH 0/7] rtc: m41t93: add new features alarm, clock out, watchdog Akhilesh Patil
2025-09-03 14:25 ` [PATCH 1/7] rtc: m41t93: add device tree support Akhilesh Patil
2025-09-03 14:25 ` [PATCH 2/7] dt-bindings: rtc: add bindings for m41t93 Akhilesh Patil
2025-09-03 14:30   ` Krzysztof Kozlowski
2025-09-03 20:33   ` Rob Herring (Arm)
2025-09-03 14:26 ` [PATCH 3/7] rtc: m41t93: migrate to regmap api for register access Akhilesh Patil
2025-09-03 14:26 ` [PATCH 4/7] rtc: m41t93: Add alarm support Akhilesh Patil
2025-09-03 14:27 ` [PATCH 5/7] rtc: m41t93: fix device connection/detection logic during probe Akhilesh Patil
2025-09-03 14:47   ` Alexandre Belloni
2025-09-03 14:27 ` [PATCH 6/7] rtc: m41t93: Add square wave clock provider support Akhilesh Patil
2025-09-03 14:28 ` [PATCH 7/7] rtc: m41t93: Add watchdog support Akhilesh Patil

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