xref: /linux/Documentation/devicetree/bindings/timer/ezchip,nps400-timer.yaml (revision fcad9bbf9e1a7de6c53908954ba1b1a1ab11ef1e)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/ezchip,nps400-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: EZChip NPS400 Timers
8
9maintainers:
10  - Noam Camus <noamca@mellanox.com>
11
12properties:
13  compatible:
14    enum:
15      - ezchip,nps400-timer0
16      - ezchip,nps400-timer1
17
18  interrupts:
19    maxItems: 1
20
21  clocks:
22    maxItems: 1
23
24required:
25  - compatible
26  - clocks
27
28additionalProperties: false
29
30allOf:
31  - if:
32      properties:
33        compatible:
34          contains:
35            const: ezchip,nps400-timer0
36    then:
37      required: [ interrupts ]
38
39examples:
40  - |
41    timer {
42        compatible = "ezchip,nps400-timer0";
43        interrupts = <3>;
44        clocks = <&sysclk>;
45    };
46