]> git.karo-electronics.de Git - linux-beck.git/commitdiff
devicetree: cadence_ttc: Document binding for timer width
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 22 Jul 2014 00:25:26 +0000 (17:25 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 28 May 2015 06:45:24 +0000 (08:45 +0200)
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

index 993695c659e18ae1b5ca165b46e032e246be1cb7..eeee6cd51e5ce94985653015c08691cc24e5ed07 100644 (file)
@@ -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, necessary if not 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>;
 };