linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 5/7] clocksource: Add Pistachio SoC general purpose timer binding document
@ 2015-07-27 14:02 Govindraj Raja
  2015-07-27 14:02 ` [PATCH v4 6/7] clocksource: Add Pistachio clocksource-only driver Govindraj Raja
  2015-07-27 14:02 ` [PATCH v4 7/7] mips: pistachio: Allow to enable the external timer based clocksource Govindraj Raja
  0 siblings, 2 replies; 6+ messages in thread
From: Govindraj Raja @ 2015-07-27 14:02 UTC (permalink / raw)
  To: linux-kernel, linux-mips, Daniel Lezcano, devicetree
  Cc: Thomas Gleixner, Andrew Bresticker, James Hartley, Govindraj Raja,
	Damien Horsley, James Hogan, Ezequiel Garcia, Ezequiel Garcia

From: Ezequiel Garcia <ezequiel.garcia@imgtec.com>

Add a device-tree binding document for the clocksource driver provided
by Pistachio SoC general purpose timers.

Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
---
 .../bindings/timer/img,pistachio-gptimer.txt       | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/img,pistachio-gptimer.txt

diff --git a/Documentation/devicetree/bindings/timer/img,pistachio-gptimer.txt b/Documentation/devicetree/bindings/timer/img,pistachio-gptimer.txt
new file mode 100644
index 0000000..7afce80
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/img,pistachio-gptimer.txt
@@ -0,0 +1,28 @@
+* Pistachio general-purpose timer based clocksource
+
+Required properties:
+ - compatible: "img,pistachio-gptimer".
+ - reg: Address range of the timer registers.
+ - interrupts: An interrupt for each of the four timers
+ - clocks: Should contain a clock specifier for each entry in clock-names
+ - clock-names: Should contain the following entries:
+                "sys", interface clock
+                "slow", slow counter clock
+                "fast", fast counter clock
+ - img,cr-periph: Must contain a phandle to the peripheral control
+		  syscon node.
+
+Example:
+	timer: timer@18102000 {
+		compatible = "img,pistachio-gptimer";
+		reg = <0x18102000 0x100>;
+		interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
+		         <&clk_periph PERIPH_CLK_COUNTER_SLOW>,
+			 <&cr_periph SYS_CLK_TIMER>;
+		clock-names = "fast", "slow", "sys";
+		img,cr-periph = <&cr_periph>;
+	};
-- 
1.9.1


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

end of thread, other threads:[~2015-08-04 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-27 14:02 [PATCH v4 5/7] clocksource: Add Pistachio SoC general purpose timer binding document Govindraj Raja
2015-07-27 14:02 ` [PATCH v4 6/7] clocksource: Add Pistachio clocksource-only driver Govindraj Raja
2015-08-04  9:21   ` Daniel Lezcano
2015-08-04 11:37     ` Ezequiel Garcia
2015-08-04 14:23       ` Daniel Lezcano
2015-07-27 14:02 ` [PATCH v4 7/7] mips: pistachio: Allow to enable the external timer based clocksource Govindraj Raja

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