Re: [PATCH 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer

2017-11-26 Thread Baolin Wang
Hi,

On 27 November 2017 at 06:17, Rob Herring  wrote:
> On Fri, Nov 24, 2017 at 01:37:47PM +0800, Baolin Wang wrote:
>> This patch adds documentation of device tree bindings for the timers
>> found on Spreadtrum SC9860 platform.
>>
>> Signed-off-by: Baolin Wang 
>> ---
>>  .../bindings/timer/spreadtrum,sprd-timer.txt   |   20 
>> 
>>  1 file changed, 20 insertions(+)
>>  create mode 100644 
>> Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt
>
> Acked-by: Rob Herring 

Thanks Rob.

-- 
Baolin Wang
Best Regards


Re: [PATCH 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer

2017-11-26 Thread Rob Herring
On Fri, Nov 24, 2017 at 01:37:47PM +0800, Baolin Wang wrote:
> This patch adds documentation of device tree bindings for the timers
> found on Spreadtrum SC9860 platform.
> 
> Signed-off-by: Baolin Wang 
> ---
>  .../bindings/timer/spreadtrum,sprd-timer.txt   |   20 
> 
>  1 file changed, 20 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/timer/spreadtrum,sprd-timer.txt

Acked-by: Rob Herring 



[PATCH 1/2] dt-bindings: clocksource: Add Spreadtrum SC9860 timer

2017-11-23 Thread Baolin Wang
This patch adds documentation of device tree bindings for the timers
found on Spreadtrum SC9860 platform.

Signed-off-by: Baolin Wang 
---
 .../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 000..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@4005 {
+   compatible = "sprd,sc9860-timer";
+   reg = <0 0x4005 0 0x20>;
+   interrupts = ;
+   clock-frequency = <32768>;
+   };
-- 
1.7.9.5