xref: /freebsd/sys/contrib/device-tree/Bindings/timer/rockchip,rk-timer.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Rockchip Timer
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Daniel Lezcano <daniel.lezcano@linaro.org>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotproperties:
13354d7675SEmmanuel Vadot  compatible:
14354d7675SEmmanuel Vadot    oneOf:
15354d7675SEmmanuel Vadot      - const: rockchip,rk3288-timer
16354d7675SEmmanuel Vadot      - const: rockchip,rk3399-timer
17354d7675SEmmanuel Vadot      - items:
18354d7675SEmmanuel Vadot          - enum:
19354d7675SEmmanuel Vadot              - rockchip,rv1108-timer
20354d7675SEmmanuel Vadot              - rockchip,rk3036-timer
21354d7675SEmmanuel Vadot              - rockchip,rk3188-timer
22354d7675SEmmanuel Vadot              - rockchip,rk3228-timer
23354d7675SEmmanuel Vadot              - rockchip,rk3229-timer
24354d7675SEmmanuel Vadot              - rockchip,rk3288-timer
25354d7675SEmmanuel Vadot              - rockchip,rk3368-timer
26354d7675SEmmanuel Vadot              - rockchip,px30-timer
27354d7675SEmmanuel Vadot          - const: rockchip,rk3288-timer
28354d7675SEmmanuel Vadot  reg:
29354d7675SEmmanuel Vadot    maxItems: 1
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadot  interrupts:
32354d7675SEmmanuel Vadot    maxItems: 1
33354d7675SEmmanuel Vadot
34354d7675SEmmanuel Vadot  clocks:
35354d7675SEmmanuel Vadot    minItems: 2
36354d7675SEmmanuel Vadot    maxItems: 2
37354d7675SEmmanuel Vadot
38354d7675SEmmanuel Vadot  clock-names:
39354d7675SEmmanuel Vadot    items:
40354d7675SEmmanuel Vadot      - const: pclk
41354d7675SEmmanuel Vadot      - const: timer
42354d7675SEmmanuel Vadot
43354d7675SEmmanuel Vadotrequired:
44354d7675SEmmanuel Vadot  - compatible
45354d7675SEmmanuel Vadot  - reg
46354d7675SEmmanuel Vadot  - interrupts
47354d7675SEmmanuel Vadot  - clocks
48354d7675SEmmanuel Vadot  - clock-names
49354d7675SEmmanuel Vadot
50354d7675SEmmanuel VadotadditionalProperties: false
51354d7675SEmmanuel Vadot
52354d7675SEmmanuel Vadotexamples:
53354d7675SEmmanuel Vadot  - |
54354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
55354d7675SEmmanuel Vadot    #include <dt-bindings/clock/rk3288-cru.h>
56354d7675SEmmanuel Vadot
57354d7675SEmmanuel Vadot    timer: timer@ff810000 {
58354d7675SEmmanuel Vadot        compatible = "rockchip,rk3288-timer";
59354d7675SEmmanuel Vadot        reg = <0xff810000 0x20>;
60354d7675SEmmanuel Vadot        interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
61354d7675SEmmanuel Vadot        clocks = <&cru PCLK_TIMER>, <&xin24m>;
62354d7675SEmmanuel Vadot        clock-names = "pclk", "timer";
63354d7675SEmmanuel Vadot    };
64