Skip to content

Commit faa186a

Browse files
ezequielgarciadlezcano
authored andcommitted
dt-bindings: timer: convert rockchip,rk-timer.txt to YAML
Convert Rockchip Timer dt-bindings to YAML. Signed-off-by: Ezequiel Garcia <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8818378 commit faa186a

File tree

2 files changed

+64
-27
lines changed

2 files changed

+64
-27
lines changed

Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
7+
title: Rockchip Timer Device Tree Bindings
8+
9+
maintainers:
10+
- Daniel Lezcano <[email protected]>
11+
12+
properties:
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,rk3066-timer
22+
- rockchip,rk3188-timer
23+
- rockchip,rk3228-timer
24+
- rockchip,rk3229-timer
25+
- rockchip,rk3288-timer
26+
- rockchip,rk3368-timer
27+
- rockchip,px30-timer
28+
- const: rockchip,rk3288-timer
29+
reg:
30+
maxItems: 1
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
clocks:
36+
minItems: 2
37+
maxItems: 2
38+
39+
clock-names:
40+
items:
41+
- const: pclk
42+
- const: timer
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
- clocks
49+
- clock-names
50+
51+
additionalProperties: false
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/arm-gic.h>
56+
#include <dt-bindings/clock/rk3288-cru.h>
57+
58+
timer: timer@ff810000 {
59+
compatible = "rockchip,rk3288-timer";
60+
reg = <0xff810000 0x20>;
61+
interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
62+
clocks = <&cru PCLK_TIMER>, <&xin24m>;
63+
clock-names = "pclk", "timer";
64+
};

0 commit comments

Comments
 (0)