Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/nuvoton,npcm7xx-timer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Nuvoton NPCM7xx timer
0008 
0009 maintainers:
0010   - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
0011   - Tomer Maimon <tmaimon77@gmail.com>
0012 
0013 properties:
0014   compatible:
0015     enum:
0016       - nuvoton,wpcm450-timer  # for Hermon WPCM450
0017       - nuvoton,npcm750-timer  # for Poleg NPCM750
0018       - nuvoton,npcm845-timer  # for Arbel NPCM845
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     items:
0025       - description: The timer interrupt of timer 0
0026 
0027   clocks:
0028     maxItems: 1
0029 
0030 required:
0031   - compatible
0032   - reg
0033   - interrupts
0034   - clocks
0035 
0036 additionalProperties: false
0037 
0038 examples:
0039   - |
0040     #include <dt-bindings/interrupt-controller/irq.h>
0041     #include <dt-bindings/interrupt-controller/arm-gic.h>
0042     #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
0043     timer@f0008000 {
0044         compatible = "nuvoton,npcm750-timer";
0045         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
0046         reg = <0xf0008000 0x50>;
0047         clocks = <&clk NPCM7XX_CLK_TIMER>;
0048     };