0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2022 Linaro Ltd.
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/timer/st,nomadik-mtu.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007
0008 title: ST Microelectronics Nomadik Multi-Timer Unit MTU Timer
0009
0010 maintainers:
0011 - Linus Walleij <linus.walleij@linaro.org>
0012
0013 description: This timer is found in the ST Microelectronics Nomadik
0014 SoCs STn8800, STn8810 and STn8815 as well as in ST-Ericsson DB8500.
0015
0016 properties:
0017 compatible:
0018 items:
0019 - const: st,nomadik-mtu
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 maxItems: 1
0026
0027 clocks:
0028 description: The first clock named TIMCLK clocks the actual timers and
0029 the second clock clocks the digital interface to the interconnect.
0030 maxItems: 2
0031
0032 clock-names:
0033 items:
0034 - const: timclk
0035 - const: apb_pclk
0036
0037 required:
0038 - compatible
0039 - reg
0040 - interrupts
0041 - clocks
0042 - clock-names
0043
0044 additionalProperties: false
0045
0046 examples:
0047 - |
0048 #include <dt-bindings/interrupt-controller/irq.h>
0049 #include <dt-bindings/interrupt-controller/arm-gic.h>
0050 #include <dt-bindings/mfd/dbx500-prcmu.h>
0051 timer@a03c6000 {
0052 compatible = "st,nomadik-mtu";
0053 reg = <0xa03c6000 0x1000>;
0054 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
0055
0056 clocks = <&prcmu_clk PRCMU_TIMCLK>, <&prcc_pclk 6 6>;
0057 clock-names = "timclk", "apb_pclk";
0058 };