Rockchip Timer

Schema identifier ($id): "http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Daniel Lezcano <daniel.lezcano@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3288-timer"

Rule 2

Exact value (const): "rockchip,rk3399-timer"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rv1108-timer", "rockchip,rv1126-timer", "rockchip,rk3036-timer", "rockchip,rk3128-timer", "rockchip,rk3188-timer", "rockchip,rk3228-timer", "rockchip,rk3229-timer", "rockchip,rk3368-timer", "rockchip,rk3576-timer", "rockchip,rk3588-timer", "rockchip,px30-timer"

Item 2

Exact value (const): "rockchip,rk3288-timer"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "timer"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/rk3288-cru.h>

timer: timer@ff810000 {
    compatible = "rockchip,rk3288-timer";
    reg = <0xff810000 0x20>;
    interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cru PCLK_TIMER>, <&xin24m>;
    clock-names = "pclk", "timer";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page