xref: /freebsd/sys/contrib/device-tree/Bindings/timer/brcm,kona-timer.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/brcm,kona-timer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom Kona family timer
8
9maintainers:
10  - Florian Fainelli <f.fainelli@gmail.com>
11
12properties:
13  compatible:
14    const: brcm,kona-timer
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    maxItems: 1
21
22  clocks:
23    maxItems: 1
24
25  clock-frequency: true
26
27oneOf:
28  - required:
29      - clocks
30  - required:
31      - clock-frequency
32
33required:
34  - compatible
35  - reg
36  - interrupts
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/clock/bcm281xx.h>
43    #include <dt-bindings/interrupt-controller/arm-gic.h>
44    #include <dt-bindings/interrupt-controller/irq.h>
45
46    timer@35006000 {
47        compatible = "brcm,kona-timer";
48        reg = <0x35006000 0x1000>;
49        interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
50        clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>;
51    };
52...
53