0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Rockchip Timer Device Tree Bindings
0008
0009 maintainers:
0010 - Daniel Lezcano <daniel.lezcano@linaro.org>
0011
0012 properties:
0013 compatible:
0014 oneOf:
0015 - const: rockchip,rk3288-timer
0016 - const: rockchip,rk3399-timer
0017 - items:
0018 - enum:
0019 - rockchip,rv1108-timer
0020 - rockchip,rk3036-timer
0021 - rockchip,rk3188-timer
0022 - rockchip,rk3228-timer
0023 - rockchip,rk3229-timer
0024 - rockchip,rk3288-timer
0025 - rockchip,rk3368-timer
0026 - rockchip,px30-timer
0027 - const: rockchip,rk3288-timer
0028 reg:
0029 maxItems: 1
0030
0031 interrupts:
0032 maxItems: 1
0033
0034 clocks:
0035 minItems: 2
0036 maxItems: 2
0037
0038 clock-names:
0039 items:
0040 - const: pclk
0041 - const: timer
0042
0043 required:
0044 - compatible
0045 - reg
0046 - interrupts
0047 - clocks
0048 - clock-names
0049
0050 additionalProperties: false
0051
0052 examples:
0053 - |
0054 #include <dt-bindings/interrupt-controller/arm-gic.h>
0055 #include <dt-bindings/clock/rk3288-cru.h>
0056
0057 timer: timer@ff810000 {
0058 compatible = "rockchip,rk3288-timer";
0059 reg = <0xff810000 0x20>;
0060 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
0061 clocks = <&cru PCLK_TIMER>, <&xin24m>;
0062 clock-names = "pclk", "timer";
0063 };