From: Sander Speetjens <sander.speetjens@gmail.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Jonathan Bell <jonathan@raspberrypi.com>,
Stefan Wahren <wahrenst@gmx.net>,
linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org, sander.speetjens@gmail.com
Subject: [PATCH 0/3] Raspberry Pi 5 RTC driver
Date: Wed, 9 Sep 2026 16:12:57 +0200 [thread overview]
Message-ID: <20260909141300.1368790-1-sander.speetjens@gmail.com> (raw)
The Raspberry Pi 5 has a battery-backed RTC located on the DA9091 PMIC.
Access to the RTC is provided exclusively through the VideoCore firmware
mailbox interface (not via a direct I2C/SPI register interface).
This series adds:
- a DT binding for the "raspberrypi,rpi-rtc" compatible
- the RTC driver that talks to the firmware
- the corresponding DT node for the Raspberry Pi 5 B
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 formal DT binding and moving the RTC node out of
the /soc node (it is not an MMIO device).
The driver supports time read/write, alarm, and optional trickle
charging voltage configuration via 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
Jonathan Bell (1):
rtc: Add Raspberry Pi 5 RTC driver
Sander Speetjens (2):
dt-bindings: rtc: Add Raspberry Pi 5 RTC binding
arm64: dts: broadcom: Add RTC to Raspberry Pi 5 B
.../bindings/rtc/raspberrypi,rtc-rpi.yaml | 48 +++
.../dts/broadcom/bcm2712-rpi-5-b-base.dtsi | 7 +
drivers/rtc/Kconfig | 11 +
drivers/rtc/Makefile | 1 +
drivers/rtc/rtc-rpi.c | 277 ++++++++++++++++++
5 files changed, 344 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/raspberrypi,rtc-rpi.yaml
create mode 100644 drivers/rtc/rtc-rpi.c
--
2.55.0
next reply other threads:[~2026-09-09 14:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 14:12 Sander Speetjens [this message]
2026-09-09 14:12 ` [PATCH 1/3] dt-bindings: rtc: Add Raspberry Pi 5 RTC binding Sander Speetjens
2026-09-09 14:23 ` sashiko-bot
2026-09-09 15:15 ` Alexandre Belloni
2026-09-09 15:47 ` Krzysztof Kozlowski
2026-09-09 15:54 ` Krzysztof Kozlowski
2026-09-09 20:38 ` Sander Speetjens
[not found] ` <CAAOJLPHNGgC7B=7ESCifZ1FPcR6V=Hcg-q-aaVg_9M_-d6Fh2A@mail.gmail.com>
2026-09-10 7:08 ` Krzysztof Kozlowski
2026-09-10 8:10 ` Sander Speetjens
2026-09-10 16:33 ` Stefan Wahren
2026-09-09 14:12 ` [PATCH 2/3] rtc: Add Raspberry Pi 5 RTC driver Sander Speetjens
2026-09-09 14:34 ` sashiko-bot
2026-09-09 15:20 ` Alexandre Belloni
2026-09-09 15:22 ` Alexandre Belloni
2026-09-09 15:44 ` Krzysztof Kozlowski
2026-09-09 14:13 ` [PATCH 3/3] arm64: dts: broadcom: Add RTC to Raspberry Pi 5 B Sander Speetjens
2026-09-09 14:44 ` sashiko-bot
2026-09-09 15:47 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260909141300.1368790-1-sander.speetjens@gmail.com \
--to=sander.speetjens@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=jonathan@raspberrypi.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-rtc@vger.kernel.org \
--cc=robh@kernel.org \
--cc=wahrenst@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox