Merge branch 'for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / timer / snps,dw-apb-timer.yaml
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Synopsys DesignWare APB Timer
8
9 maintainers:
10   - Daniel Lezcano <daniel.lezcano@linaro.org>
11
12 properties:
13   compatible:
14     oneOf:
15       - const: snps,dw-apb-timer
16       - enum:
17           - snps,dw-apb-timer-sp
18           - snps,dw-apb-timer-osc
19         deprecated: true
20
21   reg:
22     maxItems: 1
23
24   interrupts:
25     maxItems: 1
26
27   clocks:
28     minItems: 1
29     items:
30       - description: Timer ticks reference clock source
31       - description: APB interface clock source
32
33   clock-names:
34     minItems: 1
35     items:
36       - const: timer
37       - const: pclk
38
39   clock-frequency: true
40
41 additionalProperties: false
42
43 required:
44   - compatible
45   - reg
46   - interrupts
47
48 oneOf:
49   - required:
50       - clocks
51       - clock-names
52   - required:
53       - clock-frequency
54   - required:
55       - clock-freq
56
57 examples:
58   - |
59     timer@ffe00000 {
60       compatible = "snps,dw-apb-timer";
61       interrupts = <0 170 4>;
62       reg = <0xffe00000 0x1000>;
63       clocks = <&timer_clk>, <&timer_pclk>;
64       clock-names = "timer", "pclk";
65     };
66   - |
67     timer@ffe00000 {
68       compatible = "snps,dw-apb-timer";
69       interrupts = <0 170 4>;
70       reg = <0xffe00000 0x1000>;
71       clocks = <&timer_clk>;
72       clock-names = "timer";
73     };
74   - |
75     timer@ffe00000 {
76       compatible = "snps,dw-apb-timer";
77       interrupts = <0 170 4>;
78       reg = <0xffe00000 0x1000>;
79       clock-frequency = <25000000>;
80     };
81 ...