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