diff mbox series

[v3,1/2] dt-bindings: rtc: new binding for Amlogic VRTC

Message ID 20190812232850.8016-2-khilman@kernel.org
State New
Headers show
Series rtc: add new Amlogic Virtual Wake RTC | expand

Commit Message

Kevin Hilman Aug. 12, 2019, 11:28 p.m. UTC
From: Kevin Hilman <khilman@baylibre.com>


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.

Reviewed-by: Rob Herring <robh@kernel.org>

Signed-off-by: Kevin Hilman <khilman@baylibre.com>

---
 .../bindings/rtc/rtc-meson-vrtc.txt           | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt

-- 
2.22.0

Comments

Alexandre Belloni Aug. 22, 2019, 9:11 p.m. UTC | #1
On 12/08/2019 16:28:49-0700, Kevin Hilman wrote:
> From: Kevin Hilman <khilman@baylibre.com>

> 

> 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.

> 

> Reviewed-by: Rob Herring <robh@kernel.org>

> Signed-off-by: Kevin Hilman <khilman@baylibre.com>

> ---

>  .../bindings/rtc/rtc-meson-vrtc.txt           | 22 +++++++++++++++++++

>  1 file changed, 22 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt

> 

Applied, thanks.

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
diff mbox series

Patch

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..c014f54a9853
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/rtc-meson-vrtc.txt
@@ -0,0 +1,22 @@ 
+* 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 (in seconds) is to be written.
+
+Required properties:
+- compatible: should be "amlogic,meson-vrtc"
+- reg: physical address for the alarm register
+
+The alarm register is a simple scratch register shared between the
+application processors (AP) and the secure co-processor (SCP.)  When
+the AP suspends, the SCP will use the value of this register to
+program an always-on timer before going sleep. When the timer expires,
+the SCP will wake up and will then wake the AP.
+
+Example:
+
+	vrtc: rtc@0a8 {
+		compatible = "amlogic,meson-vrtc";
+		reg = <0x0 0x000a8 0x0 0x4>;
+	};