devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer
@ 2017-12-08  5:03 Baolin Wang
       [not found] ` <1b80566bd849d68b0fc8de54ecbbc7b4efbb1077.1512708743.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Baolin Wang @ 2017-12-08  5:03 UTC (permalink / raw)
  To: daniel.lezcano, tglx, robh+dt, mark.rutland
  Cc: devicetree, linux-kernel, broonie, baolin.wang, baolin.wang

This patch adds documentation of device tree bindings for the timers
found on Spreadtrum SC9860 platform.

Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com>
Acked-by: Rob Herring <robh@kernel.org>
---
Changes since v2:
 - No updates.

Changes since v1:
 - Add acked tag from Rob.
---
 .../bindings/timer/spreadtrum,sprd-timer.txt       |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt

diff --git a/Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt b/Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt
new file mode 100644
index 0000000..f9d5eb9
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt
@@ -0,0 +1,20 @@
+Spreadtrum timers
+
+The Spreadtrum SC9860 platform provides 3 general-purpose timers.
+These timers can support 32bit or 64bit counter, as well as supporting
+period mode or one-shot mode, and they are can be wakeup source
+during deep sleep.
+
+Required properties:
+- compatible: should be "sprd,sc9860-timer" for SC9860 platform.
+- reg: The register address of the timer device.
+- interrupts: Should contain the interrupt for the timer device.
+- clock-frequency: The frequency of the clock that drives the counter, in Hz.
+
+Example:
+	timer@40050000 {
+		compatible = "sprd,sc9860-timer";
+		reg = <0 0x40050000 0 0x20>;
+		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <32768>;
+	};
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-12-12  9:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-08  5:03 [PATCH v3 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer Baolin Wang
     [not found] ` <1b80566bd849d68b0fc8de54ecbbc7b4efbb1077.1512708743.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-12-08  5:03   ` [PATCH v3 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform Baolin Wang
     [not found]     ` <c85f55a434efada592c50f46c0d0532fdb5340b0.1512708743.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-12-08  6:58       ` Daniel Lezcano
2017-12-08  8:20         ` Baolin Wang
     [not found]           ` <CAMz4ku+10jTXe4bykByO_iLM33ACTu9jSnrX=i66MD3F79w9dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-12  9:16             ` Daniel Lezcano
2017-12-12  9:26               ` Baolin Wang
     [not found]                 ` <CAMz4kuLQyD5=X7PEOX98_drt66yc=Fq+KxMFHDW6tp_yZsxtsQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-12  9:41                   ` Baolin Wang
     [not found]                     ` <CAMz4ku+4F6dLSrt=D9mt7=aaQu1G=deiK50YhBDnTN2jKtFGrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-12-12  9:43                       ` Daniel Lezcano
2017-12-12  9:42                   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).