Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Raspberry Pi 5 RTC driver
@ 2026-09-17 13:58 Sander Speetjens
  2026-09-17 13:58 ` [PATCH v3 1/2] dt-bindings: rtc: Add property for Raspberry Pi 5 RTC Sander Speetjens
  2026-09-17 13:58 ` [PATCH v3 2/2] rtc: Add Raspberry Pi 5 RTC driver Sander Speetjens
  0 siblings, 2 replies; 13+ messages in thread
From: Sander Speetjens @ 2026-09-17 13:58 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
	Jonathan Bell, Stefan Wahren, linux-rtc, devicetree,
	linux-rpi-kernel, linux-arm-kernel, sander.speetjens

The Raspberry Pi 5 has a battery-backed RTC located on the DA9091 PMIC accessed via the I2C bus[1].
Access to the RTC is provided exclusively through the VideoCore firmware
mailbox interface (not via a direct I2C register interface).

As stated by jamesh on the Rasperry Pi forum [2], "There are no plans to release a public datasheet for the DA9091." So we are stuck with the firmware interface for now. PhilE also states that "The firmware needs full control of the DA9091, sometimes with extremely low latency, otherwise there's a risk the supply could just cut the power."

This series adds:
  - a DT property for the charging voltage of the RTC battery
  - the RTC driver that talks to the firmware

The driver and binding are based on (and largely taken from) the
downstream Raspberry Pi kernel. The main changes for upstream are
the addition of a dt binding property for setting the charging voltage and
binding the driver from the raspberrypi-firmware driver instead of from
the DT.

The driver supports time read/write, alarm, and optional trickle
charging voltage configuration via the device-tree.

Testing
-------
- Hardware: Raspberry Pi 5 Model B revC
- Kernel: v7.2
- dt_binding_check: passed
- Basic RTC operations (read/write time, alarm) verified

[1] https://www.raspberrypi.com/news/introducing-raspberry-pi-5/
[2] https://forums.raspberrypi.com/viewtopic.php?t=359073

Sander Speetjens (2):
  dt-bindings: rtc: Add property for Raspberry Pi 5 RTC
  rtc: Add Raspberry Pi 5 RTC driver

 .../arm/bcm/raspberrypi,bcm2835-firmware.yaml |   6 +
 drivers/firmware/raspberrypi.c                |  25 ++
 drivers/rtc/Kconfig                           |  11 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-raspberrypi.c                 | 272 ++++++++++++++++++
 5 files changed, 315 insertions(+)
 create mode 100644 drivers/rtc/rtc-raspberrypi.c


base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
-- 
2.55.0


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

end of thread, other threads:[~2026-09-21 21:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17 13:58 [PATCH v3 0/2] Raspberry Pi 5 RTC driver Sander Speetjens
2026-09-17 13:58 ` [PATCH v3 1/2] dt-bindings: rtc: Add property for Raspberry Pi 5 RTC Sander Speetjens
2026-09-17 14:07   ` sashiko-bot
2026-09-18 11:44   ` Krzysztof Kozlowski
2026-09-18 13:27     ` Stefan Wahren
2026-09-18 19:33       ` Sander Speetjens
2026-09-21 18:51       ` Alexandre Belloni
2026-09-17 13:58 ` [PATCH v3 2/2] rtc: Add Raspberry Pi 5 RTC driver Sander Speetjens
2026-09-17 14:11   ` sashiko-bot
2026-09-18 11:47   ` Krzysztof Kozlowski
2026-09-21 18:59     ` Alexandre Belloni
2026-09-21 19:36       ` Sander Speetjens
2026-09-21 21:23         ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox