Synopsys DesignWare APB Timer

Schema identifier ($id): "http://devicetree.org/schemas/timer/snps,dw-apb-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): "snps,dw-apb-timer"

Rule 2

Allowed values (enum): "snps,dw-apb-timer-sp", "snps,dw-apb-timer-osc"

Deprecated (deprecated): true

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Timer ticks reference clock source

Item 2

APB interface clock source

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "timer"

Item 2

Exact value (const): "pclk"

clock-frequency — not listed as required here #

true — No constraints added by this property rule.

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts"

Exactly one of these rules must match (oneOf) #

Rule 1 #

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

Rule 2 #

Required in this object (required): "clock-frequency"

Rule 3 #

Required in this object (required): "clock-freq"

Examples (examples) #

timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clocks = <&timer_clk>, <&timer_pclk>;
  clock-names = "timer", "pclk";
};
timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clocks = <&timer_clk>;
  clock-names = "timer";
};
timer@ffe00000 {
  compatible = "snps,dw-apb-timer";
  interrupts = <0 170 4>;
  reg = <0xffe00000 0x1000>;
  clock-frequency = <25000000>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page