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