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 resets:
28 maxItems: 1
29
30 clocks:
31 minItems: 1
32 items:
33 - description: Timer ticks reference clock source
34 - description: APB interface clock source
35
36 clock-names:
37 minItems: 1
38 items:
39 - const: timer
40 - const: pclk
41
42 clock-frequency: true
43
44 additionalProperties: false
45
46 required:
47 - compatible
48 - reg
49 - interrupts
50
51 oneOf:
52 - required:
53 - clocks
54 - clock-names
55 - required:
56 - clock-frequency
57 - required:
58 - clock-freq
59
60 examples:
61 - |
62 timer@ffe00000 {
63 compatible = "snps,dw-apb-timer";
64 interrupts = <0 170 4>;
65 reg = <0xffe00000 0x1000>;
66 clocks = <&timer_clk>, <&timer_pclk>;
67 clock-names = "timer", "pclk";
68 };
69 - |
70 timer@ffe00000 {
71 compatible = "snps,dw-apb-timer";
72 interrupts = <0 170 4>;
73 reg = <0xffe00000 0x1000>;
74 clocks = <&timer_clk>;
75 clock-names = "timer";
76 };
77 - |
78 timer@ffe00000 {
79 compatible = "snps,dw-apb-timer";
80 interrupts = <0 170 4>;
81 reg = <0xffe00000 0x1000>;
82 clock-frequency = <25000000>;
83 };
84 ...
Cache object: 3c1a7b73e0cf8a29431333aad6b7a77b
|