xref: /freebsd/sys/contrib/device-tree/Bindings/timer/nuvoton,npcm7xx-timer.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/nuvoton,npcm7xx-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Nuvoton NPCM7xx timer
8
9maintainers:
10  - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
11  - Tomer Maimon <tmaimon77@gmail.com>
12
13properties:
14  compatible:
15    enum:
16      - nuvoton,wpcm450-timer  # for Hermon WPCM450
17      - nuvoton,npcm750-timer  # for Poleg NPCM750
18      - nuvoton,npcm845-timer  # for Arbel NPCM845
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    items:
25      - description: The timer interrupt of timer 0
26
27  clocks:
28    items:
29      - description: The reference clock for timer 0
30      - description: The reference clock for timer 1
31      - description: The reference clock for timer 2
32      - description: The reference clock for timer 3
33      - description: The reference clock for timer 4
34    minItems: 1
35
36required:
37  - compatible
38  - reg
39  - interrupts
40  - clocks
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/interrupt-controller/irq.h>
47    #include <dt-bindings/interrupt-controller/arm-gic.h>
48    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
49    timer@f0008000 {
50        compatible = "nuvoton,npcm750-timer";
51        interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
52        reg = <0xf0008000 0x50>;
53        clocks = <&clk NPCM7XX_CLK_TIMER>;
54    };
55