2019-06-07 21:44:02

by Kevin Hilman

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: rtc: new binding for Amlogic VRTC

From: Kevin Hilman <[email protected]>

Add binding fo the new VRTC driver for Amlogic SoCs. The 64-bit
family of SoCs only has an RTC managed by firmware, and this VRTC
driver provides the simple, one-register firmware interface.

Signed-off-by: Kevin Hilman <[email protected]>
---
.../devicetree/bindings/rtc/rtc-meson-vrtc.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt

diff --git a/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt b/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt
new file mode 100644
index 000000000000..f02886179788
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt
@@ -0,0 +1,16 @@
+* Amlogic Virtual RTC (VRTC)
+
+This is a Linux interface to an RTC managed by firmware, hence it's
+virtual from a Linux perspective. The interface is 1 register where
+an alarm time is to be written.
+
+Required properties:
+- compatible: should be "amlogic,meson-vrtc"
+- reg: physical address for the alarm register
+
+Example:
+
+ vrtc: rtc@0a8 {
+ compatible = "amlogic,meson-vrtc";
+ reg = <0x0 0x000a8 0x0 0x4>;
+ };
--
2.21.0


2019-07-09 02:09:13

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: rtc: new binding for Amlogic VRTC

On Fri, 7 Jun 2019 12:43:42 -0700, Kevin Hilman wrote:
> From: Kevin Hilman <[email protected]>
>
> Add binding fo the new VRTC driver for Amlogic SoCs. The 64-bit
> family of SoCs only has an RTC managed by firmware, and this VRTC
> driver provides the simple, one-register firmware interface.
>
> Signed-off-by: Kevin Hilman <[email protected]>
> ---
> .../devicetree/bindings/rtc/rtc-meson-vrtc.txt | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt
>

Reviewed-by: Rob Herring <[email protected]>