f4c630cf097469cf1bfe6354048f9b5474f50889
[openwrt/staging/xback.git] /
1 From ff2c2f67689e10ad66c1e33ae6a7552d82ac983c Mon Sep 17 00:00:00 2001
2 From: Dom Cobley <popcornmix@gmail.com>
3 Date: Fri, 7 Jul 2023 20:16:06 +0100
4 Subject: [PATCH] dt-bindings: rtc: new binding for Raspberry Pi RTC driver
5
6 Add binding for the new RTC driver for Raspberry Pi.
7 This platform has an RTC managed by firmware, and this RTC
8 driver provides the simple mailbox interface to access it.
9
10 Signed-off-by: Dom Cobley <popcornmix@gmail.com>
11 ---
12 .../devicetree/bindings/rtc/rtc-rpi.txt | 17 +++++++++++++++++
13 1 file changed, 17 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-rpi.txt
15
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/rtc/rtc-rpi.txt
18 @@ -0,0 +1,17 @@
19 +* Raspberry Pi RTC
20 +
21 +This is a Linux interface to an RTC managed by firmware, hence it's
22 +virtual from a Linux perspective.
23 +
24 +The interface uses the firmware mailbox api to access the RTC registers.
25 +
26 +Required properties:
27 +compatible: should be "raspberrypi,rpi-rtc"
28 +firmware: Reference to the RPi firmware device node.
29 +
30 +Example:
31 +
32 + rpi_rtc: rpi_rtc {
33 + compatible = "raspberrypi,rpi-rtc";
34 + firmware = <&firmware>;
35 + };