linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] devicetree: cadence_ttc: Document binding for timer width
@ 2014-09-17 14:30 Michal Simek
  2014-09-17 14:30 ` [PATCH 2/2] clocksource: cadence_ttc: Add support for 32bit mode Michal Simek
  2014-09-17 16:17 ` [PATCH 1/2] devicetree: cadence_ttc: Document binding for timer width Mark Rutland
  0 siblings, 2 replies; 6+ messages in thread
From: Michal Simek @ 2014-09-17 14:30 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Peter Crosthwaite, Michal Simek, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Modern TTC implementations can extend the timer width to 32 bit. This
feature is not self identifying so the driver needs to be made aware
via device tree.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt b/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt
index 993695c659e1..5439976eca6b 100644
--- a/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt
+++ b/Documentation/devicetree/bindings/timer/cadence,ttc-timer.txt
@@ -6,6 +6,9 @@ Required properties:
 - interrupts : A list of 3 interrupts; one per timer channel.
 - clocks: phandle to the source clock

+Optional properties:
+- timer-width: Bit width of the timer. Either 16 or 32 (default 16).
+
 Example:

 ttc0: ttc0@f8001000 {
@@ -14,4 +17,5 @@ ttc0: ttc0@f8001000 {
 	compatible = "cdns,ttc";
 	reg = <0xF8001000 0x1000>;
 	clocks = <&cpu_clk 3>;
+	timer-width = <32>;
 };
--
1.8.2.3


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2014-09-19  6:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-17 14:30 [PATCH 1/2] devicetree: cadence_ttc: Document binding for timer width Michal Simek
2014-09-17 14:30 ` [PATCH 2/2] clocksource: cadence_ttc: Add support for 32bit mode Michal Simek
2014-09-17 16:17 ` [PATCH 1/2] devicetree: cadence_ttc: Document binding for timer width Mark Rutland
2014-09-18  5:07   ` Michal Simek
2014-09-18 18:36     ` Mark Rutland
2014-09-19  6:17       ` Michal Simek

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