Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: timer: convert rockchip,rk-timer.txt to YAML

Convert Rockchip Timer dt-bindings to YAML.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210506111136.3941-4-ezequiel@collabora.com

authored by

Ezequiel Garcia and committed by
Daniel Lezcano
faa186ad 88183788

+64 -27
-27
Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt
··· 1 - Rockchip rk timer 2 - 3 - Required properties: 4 - - compatible: should be: 5 - "rockchip,rv1108-timer", "rockchip,rk3288-timer": for Rockchip RV1108 6 - "rockchip,rk3036-timer", "rockchip,rk3288-timer": for Rockchip RK3036 7 - "rockchip,rk3066-timer", "rockchip,rk3288-timer": for Rockchip RK3066 8 - "rockchip,rk3188-timer", "rockchip,rk3288-timer": for Rockchip RK3188 9 - "rockchip,rk3228-timer", "rockchip,rk3288-timer": for Rockchip RK3228 10 - "rockchip,rk3229-timer", "rockchip,rk3288-timer": for Rockchip RK3229 11 - "rockchip,rk3288-timer": for Rockchip RK3288 12 - "rockchip,rk3368-timer", "rockchip,rk3288-timer": for Rockchip RK3368 13 - "rockchip,rk3399-timer": for Rockchip RK3399 14 - - reg: base address of the timer register starting with TIMERS CONTROL register 15 - - interrupts: should contain the interrupts for Timer0 16 - - clocks : must contain an entry for each entry in clock-names 17 - - clock-names : must include the following entries: 18 - "timer", "pclk" 19 - 20 - Example: 21 - timer: timer@ff810000 { 22 - compatible = "rockchip,rk3288-timer"; 23 - reg = <0xff810000 0x20>; 24 - interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 25 - clocks = <&xin24m>, <&cru PCLK_TIMER>; 26 - clock-names = "timer", "pclk"; 27 - };
+64
Documentation/devicetree/bindings/timer/rockchip,rk-timer.yaml
··· 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 <daniel.lezcano@linaro.org> 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 + };