xref: /linux/Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
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,rv1126-timer
21              - rockchip,rk3036-timer
22              - rockchip,rk3128-timer
23              - rockchip,rk3188-timer
24              - rockchip,rk3228-timer
25              - rockchip,rk3229-timer
26              - rockchip,rk3368-timer
27              - rockchip,rk3576-timer
28              - rockchip,rk3588-timer
29              - rockchip,px30-timer
30          - const: rockchip,rk3288-timer
31  reg:
32    maxItems: 1
33
34  interrupts:
35    maxItems: 1
36
37  clocks:
38    minItems: 2
39    maxItems: 2
40
41  clock-names:
42    items:
43      - const: pclk
44      - const: timer
45
46required:
47  - compatible
48  - reg
49  - interrupts
50  - clocks
51  - clock-names
52
53additionalProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/interrupt-controller/arm-gic.h>
58    #include <dt-bindings/clock/rk3288-cru.h>
59
60    timer: timer@ff810000 {
61        compatible = "rockchip,rk3288-timer";
62        reg = <0xff810000 0x20>;
63        interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
64        clocks = <&cru PCLK_TIMER>, <&xin24m>;
65        clock-names = "pclk", "timer";
66    };
67