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