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