xref: /freebsd/sys/contrib/device-tree/Bindings/timer/nuvoton,npcm7xx-timer.yaml (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
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    maxItems: 1
29
30required:
31  - compatible
32  - reg
33  - interrupts
34  - clocks
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/irq.h>
41    #include <dt-bindings/interrupt-controller/arm-gic.h>
42    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
43    timer@f0008000 {
44        compatible = "nuvoton,npcm750-timer";
45        interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
46        reg = <0xf0008000 0x50>;
47        clocks = <&clk NPCM7XX_CLK_TIMER>;
48    };
49