xref: /freebsd/sys/contrib/device-tree/Bindings/timer/amlogic,meson6-timer.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1*fac71e4eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*fac71e4eSEmmanuel Vadot%YAML 1.2
3*fac71e4eSEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/amlogic,meson6-timer.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*fac71e4eSEmmanuel Vadot
7*fac71e4eSEmmanuel Vadottitle: Amlogic Meson6 SoCs Timer Controller
8*fac71e4eSEmmanuel Vadot
9*fac71e4eSEmmanuel Vadotmaintainers:
10*fac71e4eSEmmanuel Vadot  - Neil Armstrong <neil.armstrong@linaro.org>
11*fac71e4eSEmmanuel Vadot  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
12*fac71e4eSEmmanuel Vadot
13*fac71e4eSEmmanuel Vadotproperties:
14*fac71e4eSEmmanuel Vadot  compatible:
15*fac71e4eSEmmanuel Vadot    const: amlogic,meson6-timer
16*fac71e4eSEmmanuel Vadot
17*fac71e4eSEmmanuel Vadot  reg:
18*fac71e4eSEmmanuel Vadot    maxItems: 1
19*fac71e4eSEmmanuel Vadot
20*fac71e4eSEmmanuel Vadot  interrupts:
21*fac71e4eSEmmanuel Vadot    maxItems: 4
22*fac71e4eSEmmanuel Vadot    description: per-timer event interrupts
23*fac71e4eSEmmanuel Vadot
24*fac71e4eSEmmanuel Vadot  clocks:
25*fac71e4eSEmmanuel Vadot    maxItems: 2
26*fac71e4eSEmmanuel Vadot
27*fac71e4eSEmmanuel Vadot  clock-names:
28*fac71e4eSEmmanuel Vadot    items:
29*fac71e4eSEmmanuel Vadot      - const: xtal
30*fac71e4eSEmmanuel Vadot      - const: pclk
31*fac71e4eSEmmanuel Vadot
32*fac71e4eSEmmanuel Vadotrequired:
33*fac71e4eSEmmanuel Vadot  - compatible
34*fac71e4eSEmmanuel Vadot  - reg
35*fac71e4eSEmmanuel Vadot  - interrupts
36*fac71e4eSEmmanuel Vadot  - clocks
37*fac71e4eSEmmanuel Vadot  - clock-names
38*fac71e4eSEmmanuel Vadot
39*fac71e4eSEmmanuel VadotadditionalProperties: false
40*fac71e4eSEmmanuel Vadot
41*fac71e4eSEmmanuel Vadotexamples:
42*fac71e4eSEmmanuel Vadot  - |
43*fac71e4eSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
44*fac71e4eSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
45*fac71e4eSEmmanuel Vadot    timer@c1109940 {
46*fac71e4eSEmmanuel Vadot        compatible = "amlogic,meson6-timer";
47*fac71e4eSEmmanuel Vadot        reg = <0xc1109940 0x14>;
48*fac71e4eSEmmanuel Vadot        interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
49*fac71e4eSEmmanuel Vadot                     <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
50*fac71e4eSEmmanuel Vadot                     <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
51*fac71e4eSEmmanuel Vadot                     <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
52*fac71e4eSEmmanuel Vadot        clocks = <&xtal>, <&clk81>;
53*fac71e4eSEmmanuel Vadot        clock-names = "xtal", "pclk";
54*fac71e4eSEmmanuel Vadot    };
55