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