Raspberry Pi 5 RTC driver
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v14 Latest3 patches 1 replyApplied
- v133 patches 0 repliesSuperseded
- v123 patches 0 repliesSuperseded
Earlier versions · 11
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v11 | 3 patches | 1 reply | Superseded | |
| v10 | 3 patches | 4 replies | Superseded | |
| v9 | 3 patches | 2 replies | Superseded | |
| v8 | 2 patches | 4 replies | Superseded | |
| v7 | 2 patches | 1 reply | Superseded | |
| v6 | 2 patches | 0 replies | Superseded | |
| v5 | 2 patches | 1 reply | Superseded | |
| v4 | 2 patches | 3 replies | Superseded | |
| v3 | 2 patches | 8 replies | Superseded | |
| v2 | 2 patches | 0 replies | Superseded | |
| v1 | 3 patches | 11 replies | Superseded |
Patches in v14 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: rtc: Add missing type to trickle-voltage-millivoltDocumentation/ | +1 | 0 replies | |
| 2/3 | dt-bindings: rtc: Add property for Raspberry Pi 5 RTCDocumentation/ | +6 | 0 replies | |
| 3/3 | rtc: Add Raspberry Pi 5 RTC driverdrivers/ drivers/ drivers/ +2 more | +317 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Krzysztof Kozlowski | Conor Dooley | Stefan Wahren |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | A-b | A-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v14 0/3] Raspberry Pi 5 RTC driver
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 (3):
dt-bindings: rtc: Add missing type to trickle-voltage-millivolt
dt-bindings: rtc: Add property for Raspberry Pi 5 RTC
rtc: Add Raspberry Pi 5 RTC driver
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 6 + .../devicetree/bindings/rtc/rtc.yaml | 1 + drivers/firmware/raspberrypi.c | 24 ++ drivers/rtc/Kconfig | 12 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-raspberrypi.c | 278 ++++++++++++++++++ include/soc/bcm2835/raspberrypi-firmware.h | 2 + 7 files changed, 324 insertions(+) create mode 100644 drivers/rtc/rtc-raspberrypi.c
base-commit: 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e
Signature · 1 line
2.56.0