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
12properties:
13  compatible:
14    enum:
15      - nuvoton,wpcm450-timer  # for Hermon WPCM450
16      - nuvoton,npcm750-timer  # for Poleg NPCM750
17
18  reg:
19    maxItems: 1
20
21  interrupts:
22    items:
23      - description: The timer interrupt of timer 0
24
25  clocks:
26    maxItems: 1
27
28required:
29  - compatible
30  - reg
31  - interrupts
32  - clocks
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/interrupt-controller/irq.h>
39    #include <dt-bindings/interrupt-controller/arm-gic.h>
40    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
41    timer@f0008000 {
42        compatible = "nuvoton,npcm750-timer";
43        interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
44        reg = <0xf0008000 0x50>;
45        clocks = <&clk NPCM7XX_CLK_TIMER>;
46    };
47