Xilinx LogiCORE IP AXI Timer

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

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

Maintainers (maintainers): "Sean Anderson <sean.anderson@seco.com>"

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains) #

Exact value (const): "xlnx,xps-timer-1.00.a"

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "s_axi_aclk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

true — No constraints added by this property rule.

xlnx,count-width — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 8, 16, 32

Default value (default): 32

The width of the counter(s), in bits.

xlnx,one-timer-only — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Whether only one timer is present in this block.

Required in this object (required): "compatible", "reg", "xlnx,one-timer-only"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Required in this object (required): "#pwm-cells"

When the condition matches (then) #

All of these rules must match (allOf)

Rule 1

Required in this object (required): "clocks"

Rule 2

Properties and child nodes (properties)

xlnx,one-timer-only — not listed as required here

Exact value (const): 0

When the condition does not match (else) #

Required in this object (required): "interrupts"

Rule 2 #

Condition (if) #

Required in this object (required): "clocks"

When the condition matches (then) #

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

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

false

Not allowed by this rule.

Examples (examples) #

timer@800e0000 {
    clock-names = "s_axi_aclk";
    clocks = <&zynqmp_clk 71>;
    compatible = "xlnx,xps-timer-1.00.a";
    reg = <0x800e0000 0x10000>;
    interrupts = <0 39 2>;
    xlnx,count-width = <16>;
    xlnx,one-timer-only = <0x0>;
};

timer@800f0000 {
    #pwm-cells = <0>;
    clock-names = "s_axi_aclk";
    clocks = <&zynqmp_clk 71>;
    compatible = "xlnx,xps-timer-1.00.a";
    reg = <0x800e0000 0x10000>;
    xlnx,count-width = <32>;
    xlnx,one-timer-only = <0x0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Edit this page