xref: /freebsd/sys/contrib/device-tree/Bindings/timer/snps,dw-apb-timer.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Synopsys DesignWare APB Timer
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Daniel Lezcano <daniel.lezcano@linaro.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    oneOf:
15c66ec88fSEmmanuel Vadot      - const: snps,dw-apb-timer
16c66ec88fSEmmanuel Vadot      - enum:
17c66ec88fSEmmanuel Vadot          - snps,dw-apb-timer-sp
18c66ec88fSEmmanuel Vadot          - snps,dw-apb-timer-osc
19c66ec88fSEmmanuel Vadot        deprecated: true
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  reg:
22c66ec88fSEmmanuel Vadot    maxItems: 1
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  interrupts:
25c66ec88fSEmmanuel Vadot    maxItems: 1
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  clocks:
28c66ec88fSEmmanuel Vadot    minItems: 1
29c66ec88fSEmmanuel Vadot    items:
30c66ec88fSEmmanuel Vadot      - description: Timer ticks reference clock source
31c66ec88fSEmmanuel Vadot      - description: APB interface clock source
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  clock-names:
34c66ec88fSEmmanuel Vadot    minItems: 1
35c66ec88fSEmmanuel Vadot    items:
36c66ec88fSEmmanuel Vadot      - const: timer
37c66ec88fSEmmanuel Vadot      - const: pclk
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  clock-frequency: true
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  clock-freq:
42c66ec88fSEmmanuel Vadot    $ref: "/schemas/types.yaml#/definitions/uint32"
43c66ec88fSEmmanuel Vadot    description: |
44c66ec88fSEmmanuel Vadot      Has the same meaning as the 'clock-frequency' property - timer clock
45c66ec88fSEmmanuel Vadot      frequency in HZ, but is defined only for the backwards compatibility
46c66ec88fSEmmanuel Vadot      with the picoxcell platform.
47c66ec88fSEmmanuel Vadot
48*6be33864SEmmanuel VadotadditionalProperties: false
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadotrequired:
51c66ec88fSEmmanuel Vadot  - compatible
52c66ec88fSEmmanuel Vadot  - reg
53c66ec88fSEmmanuel Vadot  - interrupts
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel VadotoneOf:
56c66ec88fSEmmanuel Vadot  - required:
57c66ec88fSEmmanuel Vadot      - clocks
58c66ec88fSEmmanuel Vadot      - clock-names
59c66ec88fSEmmanuel Vadot  - required:
60c66ec88fSEmmanuel Vadot      - clock-frequency
61c66ec88fSEmmanuel Vadot  - required:
62c66ec88fSEmmanuel Vadot      - clock-freq
63c66ec88fSEmmanuel Vadot
64c66ec88fSEmmanuel Vadotexamples:
65c66ec88fSEmmanuel Vadot  - |
66c66ec88fSEmmanuel Vadot    timer@ffe00000 {
67c66ec88fSEmmanuel Vadot      compatible = "snps,dw-apb-timer";
68c66ec88fSEmmanuel Vadot      interrupts = <0 170 4>;
69c66ec88fSEmmanuel Vadot      reg = <0xffe00000 0x1000>;
70c66ec88fSEmmanuel Vadot      clocks = <&timer_clk>, <&timer_pclk>;
71c66ec88fSEmmanuel Vadot      clock-names = "timer", "pclk";
72c66ec88fSEmmanuel Vadot    };
73c66ec88fSEmmanuel Vadot  - |
74c66ec88fSEmmanuel Vadot    timer@ffe00000 {
75c66ec88fSEmmanuel Vadot      compatible = "snps,dw-apb-timer";
76c66ec88fSEmmanuel Vadot      interrupts = <0 170 4>;
77c66ec88fSEmmanuel Vadot      reg = <0xffe00000 0x1000>;
78c66ec88fSEmmanuel Vadot      clocks = <&timer_clk>;
79c66ec88fSEmmanuel Vadot      clock-names = "timer";
80c66ec88fSEmmanuel Vadot    };
81c66ec88fSEmmanuel Vadot  - |
82c66ec88fSEmmanuel Vadot    timer@ffe00000 {
83c66ec88fSEmmanuel Vadot      compatible = "snps,dw-apb-timer";
84c66ec88fSEmmanuel Vadot      interrupts = <0 170 4>;
85c66ec88fSEmmanuel Vadot      reg = <0xffe00000 0x1000>;
86c66ec88fSEmmanuel Vadot      clock-frequency = <25000000>;
87c66ec88fSEmmanuel Vadot    };
88c66ec88fSEmmanuel Vadot...
89