xref: /linux/Documentation/devicetree/bindings/timer/st,nomadik-mtu.yaml (revision d6513a34926f4f4b331be115819702ca2a4682fb)
1*d6513a34SLinus Walleij# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*d6513a34SLinus Walleij# Copyright 2022 Linaro Ltd.
3*d6513a34SLinus Walleij%YAML 1.2
4*d6513a34SLinus Walleij---
5*d6513a34SLinus Walleij$id: "http://devicetree.org/schemas/timer/st,nomadik-mtu.yaml#"
6*d6513a34SLinus Walleij$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*d6513a34SLinus Walleij
8*d6513a34SLinus Walleijtitle: ST Microelectronics Nomadik Multi-Timer Unit MTU Timer
9*d6513a34SLinus Walleij
10*d6513a34SLinus Walleijmaintainers:
11*d6513a34SLinus Walleij  - Linus Walleij <linus.walleij@linaro.org>
12*d6513a34SLinus Walleij
13*d6513a34SLinus Walleijdescription: This timer is found in the ST Microelectronics Nomadik
14*d6513a34SLinus Walleij  SoCs STn8800, STn8810 and STn8815 as well as in ST-Ericsson DB8500.
15*d6513a34SLinus Walleij
16*d6513a34SLinus Walleijproperties:
17*d6513a34SLinus Walleij  compatible:
18*d6513a34SLinus Walleij    items:
19*d6513a34SLinus Walleij      - const: st,nomadik-mtu
20*d6513a34SLinus Walleij
21*d6513a34SLinus Walleij  reg:
22*d6513a34SLinus Walleij    maxItems: 1
23*d6513a34SLinus Walleij
24*d6513a34SLinus Walleij  interrupts:
25*d6513a34SLinus Walleij    maxItems: 1
26*d6513a34SLinus Walleij
27*d6513a34SLinus Walleij  clocks:
28*d6513a34SLinus Walleij    description: The first clock named TIMCLK clocks the actual timers and
29*d6513a34SLinus Walleij      the second clock clocks the digital interface to the interconnect.
30*d6513a34SLinus Walleij    maxItems: 2
31*d6513a34SLinus Walleij
32*d6513a34SLinus Walleij  clock-names:
33*d6513a34SLinus Walleij    items:
34*d6513a34SLinus Walleij      - const: timclk
35*d6513a34SLinus Walleij      - const: apb_pclk
36*d6513a34SLinus Walleij
37*d6513a34SLinus Walleijrequired:
38*d6513a34SLinus Walleij  - compatible
39*d6513a34SLinus Walleij  - reg
40*d6513a34SLinus Walleij  - interrupts
41*d6513a34SLinus Walleij  - clocks
42*d6513a34SLinus Walleij  - clock-names
43*d6513a34SLinus Walleij
44*d6513a34SLinus WalleijadditionalProperties: false
45*d6513a34SLinus Walleij
46*d6513a34SLinus Walleijexamples:
47*d6513a34SLinus Walleij  - |
48*d6513a34SLinus Walleij    #include <dt-bindings/interrupt-controller/irq.h>
49*d6513a34SLinus Walleij    #include <dt-bindings/interrupt-controller/arm-gic.h>
50*d6513a34SLinus Walleij    #include <dt-bindings/mfd/dbx500-prcmu.h>
51*d6513a34SLinus Walleij    timer@a03c6000 {
52*d6513a34SLinus Walleij      compatible = "st,nomadik-mtu";
53*d6513a34SLinus Walleij      reg = <0xa03c6000 0x1000>;
54*d6513a34SLinus Walleij      interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
55*d6513a34SLinus Walleij
56*d6513a34SLinus Walleij      clocks = <&prcmu_clk PRCMU_TIMCLK>, <&prcc_pclk 6 6>;
57*d6513a34SLinus Walleij      clock-names = "timclk", "apb_pclk";
58*d6513a34SLinus Walleij    };
59