1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip Timer
8
9maintainers:
10  - Daniel Lezcano <daniel.lezcano@linaro.org>
11
12properties:
13  compatible:
14    oneOf:
15      - const: rockchip,rk3288-timer
16      - const: rockchip,rk3399-timer
17      - items:
18          - enum:
19              - rockchip,rv1108-timer
20              - rockchip,rk3036-timer
21              - rockchip,rk3128-timer
22              - rockchip,rk3188-timer
23              - rockchip,rk3228-timer
24              - rockchip,rk3229-timer
25              - rockchip,rk3288-timer
26              - rockchip,rk3368-timer
27              - rockchip,px30-timer
28          - const: rockchip,rk3288-timer
29  reg:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34
35  clocks:
36    minItems: 2
37    maxItems: 2
38
39  clock-names:
40    items:
41      - const: pclk
42      - const: timer
43
44required:
45  - compatible
46  - reg
47  - interrupts
48  - clocks
49  - clock-names
50
51additionalProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/arm-gic.h>
56    #include <dt-bindings/clock/rk3288-cru.h>
57
58    timer: timer@ff810000 {
59        compatible = "rockchip,rk3288-timer";
60        reg = <0xff810000 0x20>;
61        interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
62        clocks = <&cru PCLK_TIMER>, <&xin24m>;
63        clock-names = "pclk", "timer";
64    };
65