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