xref: /freebsd/sys/contrib/device-tree/Bindings/timer/sprd,sc9860-timer.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/sprd,sc9860-timer.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: Spreadtrum SC9860 timer
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
11*0e8011faSEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
12*0e8011faSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
13*0e8011faSEmmanuel Vadot
14*0e8011faSEmmanuel Vadotdescription:
15*0e8011faSEmmanuel Vadot  The Spreadtrum SC9860 platform provides 3 general-purpose timers.
16*0e8011faSEmmanuel Vadot  These timers can support 32bit or 64bit counter, as well as supporting
17*0e8011faSEmmanuel Vadot  period mode or one-shot mode, and they can be a wakeup source
18*0e8011faSEmmanuel Vadot  during deep sleep.
19*0e8011faSEmmanuel Vadot
20*0e8011faSEmmanuel Vadotproperties:
21*0e8011faSEmmanuel Vadot  compatible:
22*0e8011faSEmmanuel Vadot    enum:
23*0e8011faSEmmanuel Vadot      - sprd,sc9860-timer
24*0e8011faSEmmanuel Vadot      - sprd,sc9860-suspend-timer
25*0e8011faSEmmanuel Vadot
26*0e8011faSEmmanuel Vadot  reg:
27*0e8011faSEmmanuel Vadot    maxItems: 1
28*0e8011faSEmmanuel Vadot
29*0e8011faSEmmanuel Vadot  interrupts:
30*0e8011faSEmmanuel Vadot    maxItems: 1
31*0e8011faSEmmanuel Vadot
32*0e8011faSEmmanuel Vadot  clocks:
33*0e8011faSEmmanuel Vadot    maxItems: 1
34*0e8011faSEmmanuel Vadot
35*0e8011faSEmmanuel Vadotrequired:
36*0e8011faSEmmanuel Vadot  - compatible
37*0e8011faSEmmanuel Vadot  - reg
38*0e8011faSEmmanuel Vadot  - clocks
39*0e8011faSEmmanuel Vadot
40*0e8011faSEmmanuel VadotallOf:
41*0e8011faSEmmanuel Vadot  - if:
42*0e8011faSEmmanuel Vadot      properties:
43*0e8011faSEmmanuel Vadot        compatible:
44*0e8011faSEmmanuel Vadot          contains:
45*0e8011faSEmmanuel Vadot            const: sprd,sc9860-timer
46*0e8011faSEmmanuel Vadot    then:
47*0e8011faSEmmanuel Vadot      required:
48*0e8011faSEmmanuel Vadot        - interrupts
49*0e8011faSEmmanuel Vadot
50*0e8011faSEmmanuel VadotadditionalProperties: false
51*0e8011faSEmmanuel Vadot
52*0e8011faSEmmanuel Vadotexamples:
53*0e8011faSEmmanuel Vadot  - |
54*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
55*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
56*0e8011faSEmmanuel Vadot
57*0e8011faSEmmanuel Vadot    soc {
58*0e8011faSEmmanuel Vadot      #address-cells = <2>;
59*0e8011faSEmmanuel Vadot      #size-cells = <2>;
60*0e8011faSEmmanuel Vadot
61*0e8011faSEmmanuel Vadot      timer@40050000 {
62*0e8011faSEmmanuel Vadot        compatible = "sprd,sc9860-timer";
63*0e8011faSEmmanuel Vadot        reg = <0 0x40050000 0 0x20>;
64*0e8011faSEmmanuel Vadot        interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
65*0e8011faSEmmanuel Vadot        clocks = <&ext_32k>;
66*0e8011faSEmmanuel Vadot      };
67*0e8011faSEmmanuel Vadot    };
68*0e8011faSEmmanuel Vadot...
69