xref: /freebsd/sys/contrib/device-tree/Bindings/timer/rockchip,rk-timer.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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
77ef62cebSEmmanuel 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
21*8bab661aSEmmanuel Vadot              - rockchip,rk3128-timer
22354d7675SEmmanuel Vadot              - rockchip,rk3188-timer
23354d7675SEmmanuel Vadot              - rockchip,rk3228-timer
24354d7675SEmmanuel Vadot              - rockchip,rk3229-timer
25354d7675SEmmanuel Vadot              - rockchip,rk3288-timer
26354d7675SEmmanuel Vadot              - rockchip,rk3368-timer
27354d7675SEmmanuel Vadot              - rockchip,px30-timer
28354d7675SEmmanuel Vadot          - const: rockchip,rk3288-timer
29354d7675SEmmanuel Vadot  reg:
30354d7675SEmmanuel Vadot    maxItems: 1
31354d7675SEmmanuel Vadot
32354d7675SEmmanuel Vadot  interrupts:
33354d7675SEmmanuel Vadot    maxItems: 1
34354d7675SEmmanuel Vadot
35354d7675SEmmanuel Vadot  clocks:
36354d7675SEmmanuel Vadot    minItems: 2
37354d7675SEmmanuel Vadot    maxItems: 2
38354d7675SEmmanuel Vadot
39354d7675SEmmanuel Vadot  clock-names:
40354d7675SEmmanuel Vadot    items:
41354d7675SEmmanuel Vadot      - const: pclk
42354d7675SEmmanuel Vadot      - const: timer
43354d7675SEmmanuel Vadot
44354d7675SEmmanuel Vadotrequired:
45354d7675SEmmanuel Vadot  - compatible
46354d7675SEmmanuel Vadot  - reg
47354d7675SEmmanuel Vadot  - interrupts
48354d7675SEmmanuel Vadot  - clocks
49354d7675SEmmanuel Vadot  - clock-names
50354d7675SEmmanuel Vadot
51354d7675SEmmanuel VadotadditionalProperties: false
52354d7675SEmmanuel Vadot
53354d7675SEmmanuel Vadotexamples:
54354d7675SEmmanuel Vadot  - |
55354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
56354d7675SEmmanuel Vadot    #include <dt-bindings/clock/rk3288-cru.h>
57354d7675SEmmanuel Vadot
58354d7675SEmmanuel Vadot    timer: timer@ff810000 {
59354d7675SEmmanuel Vadot        compatible = "rockchip,rk3288-timer";
60354d7675SEmmanuel Vadot        reg = <0xff810000 0x20>;
61354d7675SEmmanuel Vadot        interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
62354d7675SEmmanuel Vadot        clocks = <&cru PCLK_TIMER>, <&xin24m>;
63354d7675SEmmanuel Vadot        clock-names = "pclk", "timer";
64354d7675SEmmanuel Vadot    };
65