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